Content of this page applies to Apache Syncope >= 2.0.X
Let's take an example: consider that you want to add support for French language in the admin console UI.
Checkout project sources from ASF GIT or fork the GitHub mirror.
From inside the directory where you have checked out the sources:
Add support for new Locale
Change the following in client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java from
If your language is not in the default Java set of locale constants, it is possible to add it as shown above for Brazilian Portuguese.
Add actual translations
The admin console is a plain Apache Wicket web application, empowering Wicket's i18n support: see all details about this mechanism.
Basically, for each
*_it.properties file found under
- copy it in the same place by adding
_frto file name (for example, copy
SyncopeConsoleApplication_fr.properties, or using another example, for Portuguese translations for each
*_it.propertiesfile found under
client/console/src/main/resources/org/apache/syncope/console/, copy it in the same place by adding
_pt_BRto file name (for example, copy
- edit the newly added files by translating all messages to French or to corresponding language.
Check the (partial) result
In order to check if you are doing well, from inside the directory where you have checked out the sources:
or, better, if you have JRebel configured:
You should now be able to browse the admin console at http://localhost:9080/syncope-console/, choose 'French' from the dropdown on the login form and see if the provided translation is working.