Language File
Java supports multilingualism
(Internationalisation).
If the checkbox Create Language File
is set in the generator, a file <Programname>.properties will be created,
in which all texts of the programs are saved. Every single text in the file has
its own line and the following structure:
<Text-Code> = <Text>
<Text-Code> is generated by Ebus-J.
In order to realise multilingualism the
language and the country are specified in Java:
Examples for language codes:
de German
en English
it Italien
fr French
es Spanish
ja Japanese
The entire list of language codes can be found
under the link:
http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt
Examples for country codes:
DE Germany
GB Great Britain
IT Italy
FR France
ES Spain
JP Japan
US USA
The entire list of country codes can be found
under the link
http://www.chemie.f-berlin.de/diverse/doc/ISO_3166.html
If a program is to run in a different language,
the file <Programname>.properties has to be copied into
<Programname>_<Language>_<Country>.properties. In
<Programname>_<Language>_<Country>.properties the texts right
of <Text-Code> = must be translated into the required language. The
translation can be done with an editor or by the program Plocale.
In the Java program the required language must
be specified. This can either be done in the Configuration mask or in the program with the instruction SET_LOCALE.
NOTE: The
checkbox Create Language File must be set with the generation if
the program is to run in other languages. If the checkbox is not set, many
texts will not be translated even if they have been translated in the properties
file.