Warning: If you add a language, enable
a language, or change a language's padding factor, after you save the language, you
must rebuild the snapshot tables for any repositories that have multi-language
snapshot table support. To reduce the impact of adding a language or editing a
language, you may want to wait until after typical work hours.
-
Create the
eMessage
files for Tomcat and Wildfly. Each language supported by EnterWorks has two language files titled:-
eMessages_<language-extension>.properties
-
eMessages_<language-extension>_utf8.properties
where <language-extension> is the language extension code. For example, the
eMessages
files for Italian are named:-
eMessages_it.properties
-
eMessages_it_utf8.properties
Copies of these two files are located in every folder where there is a
sharedConfig.properties
file.Create new
eMessage
files for the new language:- Follow the instructions in Export Data Model Objects or Messages for Translation to export
a language that EnterWorks already supports. In the field Selecting
Other Sub-Systems, select Messages.
Exporting the
.csv
message files will create a file with a name in the format:Messages_<language-extension>_utf8.csv
- Rename the exported
Messages
.csv
file by replacing <language-extension> with the language extension code for the new language. The extension code you use must be the same as the extension code the language will use when you add the language to the Language List. - Translate the renamed Message .csv file.
-
Import the translated Messages .csv
file. The instructions for importing the translated Messages
.csv
file include instructions to copy the two neweMessage
files to every folder that contains asharedConfig.properties
file.
-
-
Create a language
.json
file for the microservices. Messages used by the microservices are contained in a.json
file named:<language-extension>.json
where
<language-extension>
is the language extension code. The<language-extension>.json
files are located in the folder:Enterworks\enable2020\enable2020\assets\i18n
To create a new
<language-extension>.json
file:- Copy an existing
<language-extension>.json
and rename the new file by replacing<language-extension>
with the same language extension code you used for theMessages
.csv
file. - Edit the new
<language-extension>.json
file and translate the message strings into the new language. - Save the new
<language-extension>.json
file.
- Copy an existing
- Add the language to the Language List and enable it.
- If you want to translate the names of data model objects:
- Restart EnterWorks services.
- Clear the cache.
- Rebuild the snapshot tables for all repositories that have multi-language snapshot table support.