on 2006 Feb 24 9:33 AM
Hi,
When building a multilanguage add-ons, what is the recommended way to make localized versions of the forms, menus? If the forms are stored in XML files should I create a XML file for each language? Is it possible to create a XML file which point to several language resource files and retrieve data when the add-on is launched?
Thanks,
f b
Hi,
What I advise, if you are developing with .NET, is that you store all the items descriptions and captions in a .RESX file. At start time or when the user changes the display language (catch the aet_LanguageChanged event), you have to merge that file with the .SRF file.
Fortunately both are XML so you can use XSLT!
Then you have to manage in memory a ready to be loaded localized version of your xml (as a XmlDocument object for instance).
You will pass it as a xml string (OuterXml property) to the LoadBatchAction method of the UI API Application object when you wan't to load your form (instead of the SRF file).
Beware that you have to size up all your items when you are designing your form in Screen Painter (so that the longest string will fit).
Please also note that this won't manage all the possible situations that way (for instance languages written from the left to the right such as Hebrew) but you will get along with most European languages.
Hope this helps,
Cyril
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
105 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.