留言板
getting error while adding new locale in liferay 6.2
Sachin Aware,修改在10 年前。
getting error while adding new locale in liferay 6.2
New Member 帖子: 23 加入日期: 12-7-19 最近的帖子
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
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
Zsigmond Rab,修改在10 年前。
RE: getting error while adding new locale in liferay 6.2
Liferay Master 帖子: 728 加入日期: 10-1-5 最近的帖子
Hi Sachin,
can you see anything in the log file?
Regards,
Zsigmond
can you see anything in the log file?
Regards,
Zsigmond
Sachin Aware,修改在10 年前。
RE: getting error while adding new locale in liferay 6.2
New Member 帖子: 23 加入日期: 12-7-19 最近的帖子
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.
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.
Tejas Kanani,修改在10 年前。
RE: getting error while adding new locale in liferay 6.2
Liferay Master 帖子: 654 加入日期: 09-1-6 最近的帖子
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
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
Ravi M,修改在10 年前。
RE: getting error while adding new locale in liferay 6.2
New Member 帖子: 9 加入日期: 11-10-29 最近的帖子
Thanks Tejas. It helped.
Sachin Aware,修改在10 年前。
RE: getting error while adding new locale in liferay 6.2
New Member 帖子: 23 加入日期: 12-7-19 最近的帖子
Thanks Tejas,
It worked...
It worked...
Palak Chordiya,修改在3 年前。
RE: getting error while adding new locale in liferay 6.2
New Member 帖子: 6 加入日期: 20-4-6 最近的帖子
<p>Hi Tejas,</p>
<p> </p>
<p>i am using 7.2 liferay version , in that i am unable to remove languages from "Current " beacause the default 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>
<p> </p>
<p>i am using 7.2 liferay version , in that i am unable to remove languages from "Current " beacause the default 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>
Richard SINELLE,修改在10 年前。
RE: getting error while adding new locale in liferay 6.2
Junior Member 帖子: 28 加入日期: 11-4-7 最近的帖子
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
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