Hi ramzi,
To add a new language to tomcat eXo WCM 2.X , you could :
1)Create an xml file named for example common-configuration.xml under ecmdemo.war:/WEB-INF/conf/ :
<?xml version="1.0" encoding="ISO-8859-1"?>
<configuration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.exoplaform.org/xml/ns/kernel_1_1.xsd http://www.exoplaform.org/xml/ns/kernel_1_1.xsd"
xmlns="http://www.exoplaform.org/xml/ns/kernel_1_1.xsd">
<component>
<key>org.exoplatform.services.resources.LocaleConfigService</key>
<type>org.exoplatform.services.resources.impl.LocaleConfigServiceImpl</type>
<init-params>
<value-param>
<name>locale.config.file</name>
<value>locales-config.xml</value>
</value-param>
</init-params>
</component>
</configuration>
2)Create the locales-config.xml file which will contain the new locale under ecmdemo.war:/WEB-INF/conf/.
This file should contain the same locales as portal.war:/WEB-INF/conf/common/locales-config.xml in addition to the new one.
So, copy the content of portal.war:/WEB-INF/conf/common/locales-config.xml ,
paste it into ecmdemo.war:/WEB-INF/conf/locales-config.xml and add the following tag:(we choose for example the latin locale).
<locales-config>
.
.
.
<locale-config>
<locale>la</locale>
<output-encoding>UTF-8</output-encoding>
<input-encoding>UTF-8</input-encoding>
<description>Default configuration for the latin locale</description>
</locale-config>
</locales-config>
The locale to be added has to be defined using ISO 639. For more details see http://ftp.ics.uci.edu/pub/ietf/http/related/iso639.txt.
3)Import common-configuration.xml into configuration.xml by editing the ecmdemo.war:/WEB-INF/conf/configuration.xml file and adding the following tag :
<import>war:/conf/common-configuration.xml</import>.
4)Create new resource files (navigation resources,classpath resources, init resources, portal resource names, and portlet resource files)
for the newly added locale as well explained here :
http://wiki.exoplatform.org/xwiki/bin/view/Portal/Internationalization%20Configuration
http://docs.jboss.com/gatein/portal/3.1.0-FINAL/reference-guide/en-US/html/chap-Reference_Guide-Development.html#sect-Reference_Guide-Internationalization_Configuration
5)Run server and type this url http://localhost:8080/ecmdemo/. You must see the latin language in the change language menu.
Best Regards.