The isCOBOL text messages displayed by the compiler, debugger and runtime can be customized or translated into the language of your choice.
iscobol.jar file contains text resource files for the following locales:
ar, de, el, en, es, fr, it, ja, nl, pt, ru, zh_CN, zh_TW
The above are ISO 639-1 codes listed on http://www.loc.gov/standards/iso639-2/php/code_list.php optionally followed by an underscore and an ISO 3166-1 country code listed at http://www.iso.org/iso/country_codes/iso_3166_code_lists/english_country_names_and_code_elements.htm
You'll find a properties file for each of the above locales named "IscobolMessage_xx.properties", with the locale name replacing the xx, in the "iscobol.jar" library.
You can look at these files with an archive tool such as WinRAR or 7zip.
The following screenshot shows the locale files included in iscobol.jar
jar xvf iscobol.jar com/iscobol/rts/IscobolMessages_xx.propertieswhere xx is one of the codes listed above. For example, to extract the default message file
jar xvf iscobol.jar com/iscobol/rts/IscobolMessages.propertiesTo customize the English language message file
jar xvf iscobol.jar com/iscobol/rts/IscobolMessages_en.properties
jar cvf mymessages.jar com/iscobol/rts/IscobolMessages_xx.propertiesreplacing xx with the appropriate code and "mymessages.jar" with your preferred name.
jar uvf iscobol.jar com/iscobol/rts/IscobolMessages_en.propertiesNote: that text resource files must be written using ISO 8859-1 encoding. To insert characters that cannot be represented by the ISO encoding, Unicode escape sequences must be used. The escape sequence is written as a \u followed by the utf-16 representation of the character (the same you would use with NX syntax in the COBOL source).
Article ID: 140
Created: July 22, 2010
Last Updated: May 13, 2022
Author: Support KB Author
Online URL: https://support.veryant.com/phpkb/article.php?id=140