Home
eXo Community...
eXo WCM
[Resolved] New...
Search:
eXo WCM : (Includes DMS and Workflow extensions for eXo Content) Installation, configuration, development and administration questions.
Search this topic
User
Join Date:08/26/2010
Posts:4
Last post: 12/02/2010, 10:22 AM
Last Login:10/06/2010, 11:30 AM
[Resolved] New languages with eXo WCM
Posted:Fri,Aug 27,2010, 12:29 PM

Hi

How could I add new languages to eXo WCM ?

thanks

Last edited by romain.denarie on Tue,Nov 02,2010, 04:20 PM
Reason: Mark as resolved and change icon
User
Join Date:08/27/2010
Posts:6
Last post: 01/25/2011, 11:13 AM
Last Login:03/14/2011, 04:28 PM
Re: New languages with eXo WCM
Posted:Fri,Sep 03,2010, 01:39 PM

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.
 

Last edited by medamine_bz_exo on Tue,Sep 14,2010, 09:04 AM
Reason: add url links
Rules
You can not create topics
You can not post replies
You can not post attachments
You can not edit your posts
Copyright © 2012. All rights reserved,eXo Platform SAS