For now Datafari is preconfigured for English and French, French, Italian, Arabic and Brazilian Portuguese. Still, its aim is to have a global reach, so the steps to enable additional languages is rather straightforward and can be found here. In case you did it, please contact us so that we can integrate it in the next releases of Datafari !
...
For the internationalization of the user interface, we use the i18n java library:
- We use two locations The folder to store the i18n config files is here : datafari/WebContent/js/AjaxFranceLabs/locale. Just open them it and add your new language. If you are using github, the files are located here datafari/src/com/francelabs/i18n/ and here datafari/For example if you add German translation, put here a file named de.json.
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");
Add the new language in WebContent/js/AjaxFranceLabs/
locale. If you are just curious and want to do the modifications on the i18n files coming with your installed datafari, go here DATAFARI_HOME/tomcat/webapps/Datafari/WEB-INF/classes/com/francelabs/i18n and here DATAFARI_HOME/tomcat/webapps/Datafari/js/AjaxFranceLabs/localei18njs.js :
Code Block availableLanguages : [ 'en', 'fr', 'it', 'ar' ],
Finally launch the ant script datafari-dev.xml to take into Datafari the modifications.
For the internationalization of the language detection, indexing and search by the Datafari Solr engine, follow these steps:
...
Page Properties | ||
---|---|---|
| ||
|