View Full Version : Multilingual AMS App
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.
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.
10-28-2005, 09:55 AM
i'm using the "dofile" action to load the Translation file.
See page "LangSelection", "On Close"
The translation file contains only variable assignments.
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.
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.
10-29-2005, 11:18 AM
A nifty job! Well done!
What I like about your approach is the dynamics of the project, accepting new languages "on the fly".
i changed it again, so now the menu language changes also
Powered by vBulletin™ Version 4.0.6 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.