Re: Re: Full language names in #metanavi?
Simon Rönnqvist <[email protected]> Thu, 28 Sep 2006 23:24:17 +0300
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <1159475057.5762.647.camel@dedaa> |
Hi!
I finally found what was wrong, can't believe I missed it all the time.
I had used <message key="??">??<message> (missing the leading / in the
closing tag).
Now it works if I keep the <message key="??"</message> lines in the
master_??.xml files, but if I include master.xml and keep it there, it
doesn't work. While this is a minor issue, I'll post my master.xml
content just for you to comment if there's anything wrong with it.
<?xml version="1.0"?>
<catalogue xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="contact.xml#xpointer(//catalogue/message)" parse="xml"/>
<message key="sv">På svenska</message>
<message key="en">In English</message>
<message key="fi">Suomeksi</message>
</catalogue>
And the beginning of my master_??.xml files contain an include:
<?xml version="1.0"?>
<catalogue xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="contact.xml#xpointer(//catalogue/message)" parse="xml"/>
<xi:include href="master.xml#xpointer(//catalogue/message)" parse="xml"/>
cheers, Simon
On Tue, 2006-09-26 at 18:57 +0300, Simon Rönnqvist wrote:
> On Thu, 2006-07-27 at 11:39 +0200, Christian Stocker wrote:
> >
> > On 27.7.2006 0:03 Uhr, Simon Rönnqvist wrote:
> > > On Tue, 2006-07-25 at 07:36 +0200, Christian Stocker wrote:
> > >> What happens then? No output at all? Or still just sv,en,fi?
> > >> Does it go into that loop?
> > >
> > > Just sv, en, fi, so I guess that means that it goes into the loop...
> >
> > <i18n:text><xsl:value-of select="."/></i18n:text>
> >
> > Works for me :)
> >
> > is the i18n prefix defined in your master.xsl? Like
> >
> > xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
> >
> > chregu
>
>
> Hi!
>
> I got back to this problem again... (See archive if you don't
> rememeber.) No matter how I try to change the default metanavi's en, de,
> whatever to ie. "English", "Deutsch", whatever... nothing happends. Any
> ideas?
>
> I've got the link in all of my master_??.xml to master.xml, the
> 'translations' in master.xml and the namespace for i18n in master.xsl as
> well as the <i18n:text> around the langlink texts that I'd like to
> change. The only thing that I can see is differing from what you
> suggested is that I've made my metanavi an unordered list. But I also
> tried experimenting by putting <i18n:text>fi</i18n:text> somewhere else
> in the template, and that didn't work.
>
> cheers, Simon
>
>
> PS. Here's my metanavi:
> <ul id="metanavi">
> <xsl:for-each select="$langsAvail/langs/entry[not(.=$lang)]">
> <li><xsl:choose>
> <xsl:when test="text() = $defaultLanguage">
> <a href="{concat($webrootW,$collectionUri)}">
> <i18n:text><xsl:value-of select="."/></i18n:text>
> </a>
> </xsl:when>
> <xsl:otherwise>
> <a href="{concat($webroot,.,$collectionUri)}">
> <i18n:text><xsl:value-of select="."/></i18n:text>
> </a>
> </xsl:otherwise>
> </xsl:choose></li>
> </xsl:for-each>
> </ul>
>
>
--
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms