Translating JAMS
Line 3: | Line 3: | ||
First of all, make sure you have the JDK java development package installed. The files that I am referring to are part of the new JAMS version which has a new package structure. Please install the current version of JAMS that is available at http://jams.uni-jena.de. Afterwards, you can edit the language files by following the these steps: | First of all, make sure you have the JDK java development package installed. The files that I am referring to are part of the new JAMS version which has a new package structure. Please install the current version of JAMS that is available at http://jams.uni-jena.de. Afterwards, you can edit the language files by following the these steps: | ||
− | + | # open a DOS command prompt | |
− | + | # change into the directory containing the JAMS *.jar files | |
(e.g. "cd c:\program files\jams\lib") | (e.g. "cd c:\program files\jams\lib") | ||
− | + | # extract the JAMS language file by running | |
jar -xf jams-main.jar resources/JAMSBundle_pt.properties | jar -xf jams-main.jar resources/JAMSBundle_pt.properties | ||
4. edit the file resources\JAMSBundle_pt.properties as you like | 4. edit the file resources\JAMSBundle_pt.properties as you like |
Revision as of 19:05, 22 October 2009
You can translate the JAMS graphical user interfaces by editing language files. Those files contain lines of the format <key>=<value>, where key is some string identifier and value a term in a certain language. An example would be "ExplorerDisabled=JAMS Explorer is diabled in this version!". The interfaces are translated by replacing the right part with the translated terms. In order to preserve a proper generation of combined terms, leading and trailing whitespace characters must be kept.
First of all, make sure you have the JDK java development package installed. The files that I am referring to are part of the new JAMS version which has a new package structure. Please install the current version of JAMS that is available at http://jams.uni-jena.de. Afterwards, you can edit the language files by following the these steps:
- open a DOS command prompt
- change into the directory containing the JAMS *.jar files
(e.g. "cd c:\program files\jams\lib")
- extract the JAMS language file by running
jar -xf jams-main.jar resources/JAMSBundle_pt.properties 4. edit the file resources\JAMSBundle_pt.properties as you like 5. write the modified file back to the archive by running jar -uf jams-main.jar resources/JAMSBundle_pt.properties 6. delete the extracted files by running rmdir /s/q resources 7. extract the JUICE language file by running the command jar -xf jams-ui.jar resources/JUICEBundle_pt.properties 8. edit the file resources\JUICEBundle_pt.properties as you like 9. write the modified file back to the archive by running jar -uf jams-ui.jar resources/JUICEBundle_pt.properties 10. delete the extracted files by running rmdir /s/q resources