New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate resource bundles #531

worm333 opened this Issue Apr 20, 2017 · 0 comments


None yet
3 participants

worm333 commented Apr 20, 2017

Translation guide.

oxTrust contains the following resource bundles:, and

These properties files store the translatable text of the messages to be displayed.
The default properties file, which is called, contains the following lines:

home.welcome = Welcome to your Gluu Identity Appliance {0} !
home.freeMemory = Free Memory
home.freeDiskSpace = Free Disk Space

Now that the messages are in a properties file, they can be translated into various languages. No changes to the source code are required. For example to use the French version of the oxTrust the should contains these lines:

home.welcome = Bienvenue dans votre Gluu Identity Appliance {0} !
home.freeMemory = Mémoire libre
home.freeDiskSpace = Espace disque libre

Notice that the values to the right side of the equal sign have been translated but that the keys on the left side have not been changed. These keys must not change, because they will be referenced when oxTrust fetches the translated text.

To add translation for not yet supported languages, just create new properties file in resource folder and name it oxtrust_[language_code].properties, then make sure that values to the right side of the equal sign have been translated.

@yurem yurem added this to the CE 3.1.2 milestone Oct 9, 2017

@willow9886 willow9886 modified the milestones: CE 3.1.2, CE 3.2.0 Nov 7, 2017

@yurem yurem modified the milestones: 3.2.0, 3.1.4 Mar 22, 2018

@willow9886 willow9886 modified the milestones: 3.1.4, 4.0 Aug 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment