Re: Full language names in #metanavi?

Christian Stocker <[email protected]> Tue, 25 Jul 2006 07:36:32 +0200
Newsgroups gmane.comp.cms.bitflux.general
Organization Bitflux GmbH
Message-ID <[email protected]>

On 24.7.2006 23:56 Uhr, Simon Rönnqvist wrote:
> 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.

What happens then? No output at all? Or still just sv,en,fi?
Does it go into that loop?


> Can I btw. put it into lang/master.xml? ...since I don't want the

As long as you include master.xml in master_xx.xml, yes:

<xi:include href="master.xml#xpointer(//catalogue/message)" parse="xml"/>


chregu


> 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

-- 
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 44 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch | [email protected] |  GPG 0x5CE1DECB
-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms