Closed plavjanik closed 4 years ago
What needs to be done for Czech accented characters on the mainframe:
IJO="$IJO -Duser.language=cs -Duser.country=CZ"
in the JCLexport JZOS_OUTPUT_ENCODING="IBM-870"
needs to be added to the JCL as well. IBM-870 is the EBCDIC Latin-2 charset used in Czechia and other central European countries. JZOS_OUTPUT_ENCODING
causes JZOS to convert the Unicode output from Java to IBM-870 when it is being written to a single-byte encoding in STDOUT DDCodepage conversion can be difficult in z/OS UNIX without JZOS so there is -Dorg.zowe.commons.logging.stripAccents=true
option to remove such characters.
This a first pull request for #39.
The documentation and instructions are in https://github.com/zowe/sample-spring-boot-api-service/pull/68/files?short_path=d9af631#diff-d9af6310659c7ac8fee1baf3ab693bd1.
The Swagger/Springfox localization is not in this PR and it will be delivered in another PR. This one is over 700 lines now which a high number already.
The Czech localization is not complete and it is not the goal - the purpose is only for testing, not to provide a complete localization.
I realized that some things in the original error messages functionality from the old SDK could be done nicer (e.g. use ResourceBundles, or same formatting using curly braces
{}
as the Spring instead of C-style) but I tried to preserve the existing API and messages.yml format and just add new functionality on top of it so existing users are not affected.ErrorService
)Suggestions:
.properties
files) with unlocalized and commented text that can be easily translated without going back and forth to the original one and verifies that the translation is complete - added as https://github.com/zowe/sample-spring-boot-api-service/issues/70