Localization and text customization
|
This howto works for iam-app-cas package 0.6 and newer. |
IAM appliance’s CAS offers English and Czech languages by default. Other languages are auto-detected by the application but their translation may be incomplete.
You can add the missing localization strings yourself or even override default localization strings using custom message catalogs in /data/volumes/cas/msgcat/. This directory may contain multiple files:
-
custom_messages.properties- The default message strings file. Also serves for English and as a default fallback when no language-specific string is found. -
custom_messages_xx.properties- A language-specific message file. Thexxstring denotes the language locale (e.g.csfor Czech,esfor Spanish, etc.). If the file is not here, simply create it.
Those files have standard Java properties file syntax.
Caveats
-
If you want to translate some string that is not already mentioned in the files, you have to look up its key directly in the CAS’s Thymeleaf templates.
-
custom_messageshave higher priority than default bundledmessages.-
This means if you want to override some string in English language, you also have to override it in all languages you want to support.
-
Message strings search priority:
-
custom_messages_xx.properties(xxaccording to user’s browser locale) -
custom_messages.properties -
bundled
messages_xx.properties(xxaccording to user’s browser locale) -
bundled
messages.properties
-
-