Create the default resource file for the message that defined in
above step. The file name must be identical with the XML UI definition file
and must be ended with .properties. And this file must be in the same place
with the XML UI definition file. This file contains the message in the default
locale, and it will be used when the XML UI Engine can’t find the resource
file in required locale. For example: file I18n.properties, add code name.locale=name
Translate the above property file to desired language. For example:
in file I18n.tran.properties name.locale=名字
Transfer the above locale property file to ascii with native2ascii
of JDK. The name of the new file must be identical with the XML UI definition
file and must be end with _LocalName.properties. And this file must be in
the same place with the XML UI definition file. This file contains the message
in the locale, and the XML UI Engine will find the resource file according
to its locale. For example, the name of the file is native2ascii.exe
I18n.tran.properties I18n_zh_CN.properties
Define the default global resource file in the global settings
of XML UI Engine
Create the default resource file for global like in step 2. This
file contains the message in the default locale, and it will be used when
the XML UI Engine can’t find the global resource file in required locale and
can’t find it in the resource file defined in above step 2.
Translate the above global property file to desired language.
Transfer the above global locale property file to ascii with native2ascii
of JDK as step 4. This file contains the message in the locale, and the XML
UI Engine will find the resource file according to its locale when XML UI
Engine can’t find the resource file defined in above step 4.