cancel
Showing results for 
Search instead for 
Did you mean: 

localization

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (0)