掲示板

Adding Additional Languages/Locales

14年前 に Luc Foisy によって更新されました。

Adding Additional Languages/Locales

New Member 投稿: 9 参加年月日: 09/11/11 最新の投稿
I have two files, Language_en_CA.properties and Language_fr_CA.properties

Do these need to go into the portal-impl.jar, or can I put them somewhere else that the system will read?

I have found a portal-ext.properties here: /usr/java/vennware/liferay-portal-5.2.3/tomcat-6.0.18/webapps/ROOT/WEB-INF/classes
Does that look like it would be the right file to add locales to? There is no existing locales line, so adding just the new locales would be correct?

Do I need to restart anything to get them to be loaded?

The system that I am implementing these new locales on is already in use, is there a quick way to change all existing data over to these new locales, from just the regular en and fr locales?

What database fields would I be looking for to modify if I have to manually make changes?

Where are those language/locale icons located?
thumbnail
14年前 に Lisa Simpson によって更新されました。

RE: Adding Additional Languages/Locales

Liferay Legend 投稿: 2034 参加年月日: 09/03/05 最新の投稿
You probably do need to add them to the portal-ext.properties.

And you'll have to restart Liferay to get it to take effect.
thumbnail
14年前 に Nidhi Singh によって更新されました。

RE: Adding Additional Languages/Locales

Regular Member 投稿: 155 参加年月日: 09/10/07 最新の投稿
Luc Foisy:
I have two files, Language_en_CA.properties and Language_fr_CA.properties

Do these need to go into the portal-impl.jar, or can I put them somewhere else that the system will read?

I have found a portal-ext.properties here: /usr/java/vennware/liferay-portal-5.2.3/tomcat-6.0.18/webapps/ROOT/WEB-INF/classes
Does that look like it would be the right file to add locales to? There is no existing locales line, so adding just the new locales would be correct?

Do I need to restart anything to get them to be loaded?

The system that I am implementing these new locales on is already in use, is there a quick way to change all existing data over to these new locales, from just the regular en and fr locales?

What database fields would I be looking for to modify if I have to manually make changes?

Where are those language/locale icons located?


Hi

1. stop server and copy portal-impl.jar file from liferay-portal-5.2.3\tomcat-6.0.18\webapps\ROOT\WEB-INF\lib
2. extract portal-impl.jar.

3. change language file(portal-impl/content).

4. start the server.

5. changes will be reflect.

Thanks
Nidhi Singh
thumbnail
14年前 に Mohd Hanafi によって更新されました。

RE: Adding Additional Languages/Locales

Junior Member 投稿: 83 参加年月日: 10/01/18 最新の投稿
Luc Foisy:

Where are those language/locale icons located?


Answer: html/themes/classic/images/language
13年前 に Mihael Palfi によって更新されました。

RE: Adding Additional Languages/Locales

New Member 投稿: 3 参加年月日: 10/11/15 最新の投稿
Hello

I have a problem when adding a new language. i my case a slovenian language. I have added the locales variable to the portal-ext.properties file

locales=en_US,sl_SI,de_DE,fr_FR,hu_HU,it_IT


and added the new languge file Languages_sl.properties to the ROOT/WEB-INF/lib/portal-impl.jar/content folder.

I am geting somekind of URL loop : http://localhost:10400/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/master
and the page is not displayed.


Does somewone have a solution for this problem???

Miha
12年前 に Camila Inostroza によって更新されました。

RE: Adding Additional Languages/Locales

New Member 投稿: 1 参加年月日: 11/10/19 最新の投稿
Hi!
Shouldn't the selected language translate everything? I mean, the web contents too...
Because its only translating the user menu,the panel control.
Is any plugin that do that, all the translation?
10年前 に Marcial Calvo によって更新されました。

RE: Adding Additional Languages/Locales

New Member 投稿: 4 参加年月日: 12/02/07 最新の投稿
Mihael Palfi:
Hello

I have a problem when adding a new language. i my case a slovenian language. I have added the locales variable to the portal-ext.properties file

locales=en_US,sl_SI,de_DE,fr_FR,hu_HU,it_IT


and added the new languge file Languages_sl.properties to the ROOT/WEB-INF/lib/portal-impl.jar/content folder.

I am geting somekind of URL loop : http://localhost:10400/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/sl/master
and the page is not displayed.


Does somewone have a solution for this problem???

Miha



Hi Michael,

You need to modify the file "/ROOT/WEB-INF/web.xml" adding new lines of your new language.

Regards
thumbnail
6年前 に Shahbaz Khan によって更新されました。

RE: Adding Additional Languages/Locales

Junior Member 投稿: 40 参加年月日: 14/11/18 最新の投稿
Hi Mihael

Each language that Liferay supports, has its own servlet-mapping and url-pattern defined for the same in "web.xml" (which is inside LIFERAY_HOME\tomcat-<version>\webapps\ROOT\WEB-INF).
You need to add this mapping in web.xml file like

<servlet-mapping>
           <servlet-name>I18n Servlet</servlet-name>
             <url-pattern>/YOUR_NEW_LANGUAGE_KEY/*</url-pattern>
 </servlet-mapping>

<url-pattern>/YOUR_NEW_LANGUAGE_KEY/c/portal/protected</url-pattern>