Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

From inside the directory where you have checked out the sources:

Code Block

$ mvn -PskipTests

Add support in the Java code

You need to change the following List in SyncopeSession (trunk /
(1_1_X / 1_0_X) from

Code Block
languagejava

    public static final List<Locale> SUPPORTED_LOCALES = Arrays.asList(new Locale[] {
        Locale.ENGLISH, Locale.ITALIAN});

to

Code Block
languagejava

    public static final List<Locale> SUPPORTED_LOCALES = Arrays.asList(new Locale[] {
        Locale.ENGLISH, Locale.ITALIAN, Locale.FRENCH});
Note

If your language is not in the default Java set of locale constants, it is possible to add it as shown below for Brazilian Portuguese, for example:

Code Block
languagejava

    public static final List<Locale> SUPPORTED_LOCALES = Arrays.asList(new Locale[] {
        Locale.ENGLISH, Locale.ITALIAN, new Locale("pt", "BR")});

...

In order to check if you are doing well, from inside the directory where you have checked out the sources:

Code Block

$ cd console
$ mvn -PdevPdebug

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.

...