Versions Compared

Key

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


Info
titleValid from 4.4

The documentation below is valid from Datafari 4.4 upwards

For now Datafari is preconfigured to display its menu and functionalities (not to be mixed up with the languages that can be analysed at the indexing phase) for English, French, German, Italian, Arabic, Brazilian Portuguese and Russian. See further below for the default languages that can be analysed at the indexing and search phases.

Step-by-step guide

For the internationalization of the user interface, we use the i18n java library:

  1. The folder to store the i18n config files is here : datafari/WebContent/js/AjaxFranceLabs/locale. Just open it and add your new language. For example if you add German translation, put here a file named de.json.
    Also add a new entry in all the i18n files corresponding to your new language. For example to add Spanish language, we added the following entry in all the i18n files :

    Code Block
    "es_locale" : "Español" 


  2.  Add the new langage in the Java class com.francelabs.datafari.utils.LanguageUtils.java :

    Code Block
    public static final List<String> availableLanguages = Arrays.asList("en", "fr", "it", "ar", "ru");


  3. Add the new language in WebContent/js/AjaxFranceLabs/i18njs.js :

    Code Block
    availableLanguages : [ 'en', 'fr', 'it', 'ar', 'ru' ],


  4. For Datafari Enterprise Edition only :  create a file with the new language : LOCALE.json , for example es.json into the folder /opt/datafari/tomcat/webapps/Datafari/customs/i18n
    Add this content into it :

    Code Blocklanguagebash

    \

    {

    \

    }

  5. Finally launch the ant script datafari-dev.xml to take into Datafari the modifications (if you are in development mode).

...