Message Boards

getting error while adding new locale in liferay 6.2

thumbnail
Sachin Aware, modified 10 Years ago.

getting error while adding new locale in liferay 6.2

New Member Posts: 23 Join Date: 7/19/12 Recent Posts
Hi

I am trying to add new local in liferay 6.2 ie locales like es_US en_NL as these locales are not in liferay's available locale list for that I followed following steps .
- added the locale list in liferay portal-ext.properties file in locales property ie
locales=en_NL,es_US
-Then restarted the server..
- the added locales are now showing in available locale list ..ie from controlpanel->display settings
-Then i moved the available locales to current locale list using liferays control panel.
-but when i clicked on save button I am getting the current locale is not valid.

Am I missing something here..How can I configure these locales ie locales ie not available in available locale list.

Thanks
thumbnail
Zsigmond Rab, modified 10 Years ago.

RE: getting error while adding new locale in liferay 6.2

Liferay Master Posts: 728 Join Date: 1/5/10 Recent Posts
Hi Sachin,

can you see anything in the log file?

Regards,
Zsigmond
thumbnail
Sachin Aware, modified 10 Years ago.

RE: getting error while adding new locale in liferay 6.2

New Member Posts: 23 Join Date: 7/19/12 Recent Posts
Hi Zsigmond,

I am getting the following messages after clicking on save button

"Your request failed to complete."

"Please enter a valid locale."

There is no logs on console.
thumbnail
Tejas Kanani, modified 10 Years ago.

RE: getting error while adding new locale in liferay 6.2

Liferay Master Posts: 654 Join Date: 1/6/09 Recent Posts
Sachin,

Looks like issue is with number of Languages you are selecting from Display Settings. As after adding only 2 locales(en_NL,es_US) from portal-ext.properties, when you go to Control Panel -> Display Settings, it's displaying around 10+ languages in Current. So after adding English(Netherlands) to current and save it's trying to validate all the languages including "English(Netherlands)" with the locales= values provided in portal-ext.properties.

And when it tries to validate language other than the one you've provided in portal-ext.properties it will give error.
What you can do here is,
- First remove all the entries from Current back to Available
- Add only "English(Netherlands)" to Current one
- Save

It should resolve your issue.

Thanks,
Tejas Kanani
thumbnail
Ravi M, modified 10 Years ago.

RE: getting error while adding new locale in liferay 6.2

New Member Posts: 9 Join Date: 10/29/11 Recent Posts
Thanks Tejas. It helped.
thumbnail
Sachin Aware, modified 10 Years ago.

RE: getting error while adding new locale in liferay 6.2

New Member Posts: 23 Join Date: 7/19/12 Recent Posts
Thanks Tejas,
It worked...emoticon
Palak Chordiya, modified 3 Years ago.

RE: getting error while adding new locale in liferay 6.2

New Member Posts: 6 Join Date: 4/6/20 Recent Posts
<p>Hi Tejas,</p>

<p>&nbsp;</p>

<p>i am using 7.2 liferay version ,&nbsp; in that i am unable to remove languages from &quot;Current &quot; beacause&nbsp; the default&nbsp; set langauge is english, even though i tried to removed default language from portal-setup-wizard properties file, but still default its showing , kindly guide me how to achieve this</p>
thumbnail
Richard SINELLE, modified 10 Years ago.

RE: getting error while adding new locale in liferay 6.2

Junior Member Posts: 28 Join Date: 4/7/11 Recent Posts
Hello

You need to add custom locale to web.xml in Liferay webapps (ROOT)

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

Richard