PDA

View Full Version : How to configure different languages?


thuree
19th of June 2004 (Sat), 05:25
Hej

First, this 1.5 RC4 looks very very good Pekka. Congratulations.

and...

I have downloaded English and Swedish language pack, and managed to change between english and swedish php languages files with out any problems.

My questions are as follows:

1) How to configure EE to automatically change to the by the browser specified language.
I have specified Swedish as my language of choice, and this works fine when I go to www.google.com for instance.

2) How do I translate the categories to a different language? I can only see a titel bar indicating MultiLingual, and a reference from Pekka that I should change Editor Language. But where do I do that?

Thanks in advance...

/bengt

Pekka
19th of June 2004 (Sat), 17:08
Hej

First, this 1.5 RC4 looks very very good Pekka. Congratulations.

and...

I have downloaded English and Swedish language pack, and managed to change between english and swedish php languages files with out any problems.

My questions are as follows:

1) How to configure EE to automatically change to the by the browser specified language.
I have specified Swedish as my language of choice, and this works fine when I go to www.google.com for instance.

There are methods of guessing visitor country, one is available inphp.net which includes

http://www.php.net/source.php?url=/include/countries.inc
http://www.php.net/source.php?url=/include/languages.inc
http://www.php.net/source.php?url=/include/langchooser.inc and
http://www.php.net/source.php?url=/include/ip-to-country.inc

This kind of systems are not high on my todo list (although it is there) because you simply cannot tell what language the user needs, only guesses based on IP and browser installation info.

2) How do I translate the categories to a different language? I can only see a titel bar indicating MultiLingual, and a reference from Pekka that I should change Editor Language. But where do I do that?

In editor there is dropdown menu for language (top right and bottom left). This language is the one you are currently editing. The "multilingual" label in fields show which fields take multilingual data this way.

You can add or remove languages in language editor.

When language is set to "lazy" the above database fields are not used, but the data is taken from primary language (usually English) and only user-interface gets translated.

thuree
19th of June 2004 (Sat), 20:39
:D
:-) How easy it was :)
Thanks. I was completly blind

/Bengt