To add a language to EnterWorks:
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 the Data Model Objects or Message Files 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 in the Language List, see Edit a Language in the Language List.
Import the translated Messages .csv file. The instructions for importing the translated Messages .csv file include instructions to copy the two new eMessage files to every folder that contains a sharedConfig.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 the Messages .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.
Restart EnterWorks services.
Clear the cache.
Rebuild the snapshot tables for all repositories that have multi-language snapshot table support.