PDA

View Full Version : 2 language site


azbeen
09-25-2008, 06:58 PM
hi.......
i want to make a site that will be viewable in two different languages
english and greek and i am stuck as to how i will organize this.( at the moment im thinking of making 2 different versions fla files, you choose a language at the beggining and the coresponding one loads)
is this a good way of doing it .........could you suggest something else?

rawmantick
09-26-2008, 07:41 AM
You make two xml files, where every message that can appear is like this:
<message name="windowCloseMessage" value="Close window"/>
<message name="windowCloseMessage" value="Zakryt' okno"/>

When you load your swf, you simple pass a parameter to it, like lang=Greek. By analyzing th value of lang you simply load corresponding xml file, and get the messages by the same names. But their value will be in desired language.

It is a pretty standard colution.

Hope it helps...