Difference between revisions of "Update the Localisation Files"
From IMSMA Wiki
Line 1: | Line 1: | ||
− | {{Warning | The two original files IMessage.properties and ITerms.properties should '''not''' be edited. If you would like to change the English terms and messages then you have to create an English copy of the files. Be very careful with Search and Replace function while editing the files. The KEY names (value on the left of the '''<nowiki>=</nowiki>''' sign) should '''not''' be replaced.}} | + | {{Warning | The two original files IMessage.properties and ITerms.properties should '''not''' be edited. If you would like to '''change the English''' terms and messages then you have to create an '''English copy''' of the files. Be very careful with Search and Replace function while editing the files. The KEY names (value on the left of the '''<nowiki>=</nowiki>''' sign) should '''not''' be replaced.}} |
{{Note | To modify the localisation files, you '''should''' use Rosetta-J. Contact your [[Information Management Team | GICHD IM advisor]] who will provide guidance. You may download Rosetta-J from this '''[http://mwiki.gichd.org/mediawiki/images/0/00/Rosetta_J.zip link]'''.}} | {{Note | To modify the localisation files, you '''should''' use Rosetta-J. Contact your [[Information Management Team | GICHD IM advisor]] who will provide guidance. You may download Rosetta-J from this '''[http://mwiki.gichd.org/mediawiki/images/0/00/Rosetta_J.zip link]'''.}} | ||
Line 18: | Line 18: | ||
==ITerms.properties==__NOEDITSECTION__ | ==ITerms.properties==__NOEDITSECTION__ | ||
The ITerms.Properties file contains terms used in menus, tooltips and field names in {{IMSMANG}}. The file is located in the ''C:\IMSMAng\client\resources\com\fgm\imsma\lexicon'' folder. | The ITerms.Properties file contains terms used in menus, tooltips and field names in {{IMSMANG}}. The file is located in the ''C:\IMSMAng\client\resources\com\fgm\imsma\lexicon'' folder. | ||
− | # Copy the existing ITerms.properties to e.g. | + | # Copy the existing ITerms.properties to e.g. ITerms_km.properties or ITerms_en.properties for English. |
# Edit the ITerms.properties copy with Rosetta-J. | # Edit the ITerms.properties copy with Rosetta-J. | ||
Latest revision as of 19:07, 18 August 2021
To modify the localisation files, you should use Rosetta-J. Contact your GICHD IM advisor who will provide guidance. You may download Rosetta-J from this link. |
The three files that are used for localisation need to be created for each new language. Each language has a unique language code. IMSMA is using the Window's codes. See which code should be used in the Data Inventory Manager.
- In the Customisation menu → Data Inventory Manager.
- Click on the Translate button in the Data Category pane of the Data Inventory Manager window.
- Find the desired language in the Language list and note the code e.g. km for Khmer.
IMessages.properties
The IMessage.properties file contains the error messages and warning messages used by IMSMANG. The file is located in the C:\IMSMAng\client\resources\com\fgm\imsma\lexicon folder.
- Copy the existing IMessage.properties to e.g. IMessage_km.properties or IMessage_en.properties for English.
- Edit the IMessage.properties copy with Rosetta-J.
ITerms.properties
The ITerms.Properties file contains terms used in menus, tooltips and field names in IMSMANG. The file is located in the C:\IMSMAng\client\resources\com\fgm\imsma\lexicon folder.
- Copy the existing ITerms.properties to e.g. ITerms_km.properties or ITerms_en.properties for English.
- Edit the ITerms.properties copy with Rosetta-J.
There are two terms that should not be translated and affects how dates are written in IMSMANG, see more details here. |
trans.properties
The third files contains Data Inventory categories, enumeration values, Custom Defined Fields' labels, etc.
- export the English translations
- rename the file (e.g. trans_km)
- update the first row in the file to the new language code
- create translations with Rosetta-J
- import the file into the database.
|