Re: Full language names in #metanavi?
Simon Rönnqvist <[email protected]> Tue, 25 Jul 2006 00:56:34 +0300
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
This is a reply to this very old post by Christian Stocker:
http://lists.bitflux.ch/pipermail/bitflux-cms/2005-November/001660.html
> On 18.11.2005 0:33 Uhr, Simon Rönnqvist wrote:
> > For some people just having the language codes such as "de" or "en" in the
> > language menu (#metanavi) is a bit confusing. I'd like to make the language
> > names shown in full.
> > The way of making this work that I come to think of is just making
> > master.xsl translate these language codes into full language names (within
> > the <xsl:for-each select="$langsAvail/langs/entry[not(.=$lang)]"> loop).
>
> Just use the i18n functionality
>
> <xsl:for-each select="$langsAvail/langs/entry[not(.=$lang)]">
> [ <i18n:text><xsl:value-of select="."/></i18n:text> ]
> </xsl:for-each>
>
> and then put the language translations into lang/master_xx.xml
What should these "translations" look like?
I tried:
<message key="sv">Pa svenska<message>
<message key="en">In English<message>
<message key="fi">Suomeksi<message>
...without any luck.
Can I btw. put it into lang/master.xml? ...since I don't want the
language names translated differently depending on the presently used
language. I mean, I want "Suomeksi" to be "Suomeksi" (which means "In
Finnish", in the Finnish language :-) no matter what language is
presently used.
cheers, Simon
--
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms