PDA

View Full Version : Multilingual AMS App



Byte
10-28-2005, 02:49 AM
Hi,

is there a easy way to make a AMS App. multilungual?

one file for each language and then define variables for all the text, buttons, labels,...

or is it better to do it with tables?

advantage of the files is, that users can do theire own translations.

byte

yosik
10-28-2005, 06:47 AM
You could definitely do it,. Either use an XML file, or an ini file (or multiple files). Then build and populate a table with the entries/values of xml/ini. Last, give your objects attributes (mainly text) according to your table elements.
:yes

Yossi

Stefan_M
10-28-2005, 09:55 AM
Hi Byte,

i'm using the "dofile" action to load the Translation file.

See page "LangSelection", "On Close"

The translation file contains only variable assignments.


Stefan_M

Byte
10-28-2005, 02:20 PM
hi,

here is my example for a multilinual app.
a couple things i can't get to work.
i want the menu to be checked depending on the value in the ini-file, so i tryed that on page 1 in the onshow event. doesn't work.
also i want the page to show the other language when it is changed in the menu. i have no idea how to do that.

i hope there is someone that can help me on that.

byte

Byte
10-29-2005, 05:04 AM
ok got it fixed.

also the app adds a menu-item when a translation file is added to the language-folder. this way users can do theire own translations and just copy them to the translation-folder.

maybe this is not the exact way to do such a app, but for now it works.
i would appreciate it, if someone can have a look at it and tell me, if it can be done in a better way.

byte

yosik
10-29-2005, 11:18 AM
Byte,
A nifty job! Well done!
What I like about your approach is the dynamics of the project, accepting new languages "on the fly".
:yes
Yossi

Byte
10-29-2005, 11:49 AM
hi,

i changed it again, so now the menu language changes also

byte