Forum Ametys

Forum de la communauté Ametys

You are not logged in.

#1 05/04/2017 14:12:28

Registered: 05/04/2017
Posts: 1

How to create new language?

Hello friends.

Where i can to create new language (example GR for Greek) or to copy and translate English language to Greek and then to upload it somewhere?

Thank you..


#2 11/04/2017 09:19:59

Laurence Aumeunier
Expert Team
Registered: 10/08/2010
Posts: 147

Re: How to create new language?


Do you want to add the Greek language for yours sites or for the Ametys application ?

To add a new available language for yours sites you have to edit your WEB-INF/param/languages.xml file :

    <language code="fr" i18n="true">plugin.cms:PLUGINS_CMS_LANGUAGES_LABEL_FR</language>
    <language code="en" i18n="true">plugin.cms:PLUGINS_CMS_LANGUAGES_LABEL_EN</language>
    <language code="gr" i18n="true">application:LANGUAGE_LABEL_GR</language>

and translate the i18n "LANGUAGE_LABEL_GR" in yours WEB-INF/i18n/application*.xml files.

To translate the CMS application in Greek, you need to translate i18n files for each existing plugins and put these files into a WEB-INF/i18n/plugins/[pluginName] directory :

  • WEB-INF/i18n/plugins/core/messages_gr.xml

  • WEB-INF/i18n/plugins/cms/messages_gr.xml

  • WEB-INF/i18n/plugins/web/messages_gr.xml

  • etc...

You can download the English translations on our svn :
For example :
Plugin core : … core/i18n/
CMS : … -cms/i18n/
Web : … -web/i18n/

Laurence Aumeunier
Ametys Expert


Board footer

Powered by FluxBB