Re: Full language names in #metanavi?

Christian Stocker <[email protected]>
Newsgroups gmane.comp.cms.bitflux.general
Organization Bitflux GmbH
Message-ID <[email protected]>

On 18.11.2005 0:33 Uhr, Simon Rönnqvist wrote:
>   Hi!
> 
> 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

chregu

> Before I do this I just wanted to make sure that there isn't any other 
> smarter way.
> 
>   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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.