掲示板
getting error while adding new locale in liferay 6.2
10年前 に Sachin Aware によって更新されました。
getting error while adding new locale in liferay 6.2
New Member 投稿: 23 参加年月日: 12/07/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
10年前 に Zsigmond Rab によって更新されました。
RE: getting error while adding new locale in liferay 6.2
Liferay Master 投稿: 728 参加年月日: 10/01/05 最新の投稿
Hi Sachin,
can you see anything in the log file?
Regards,
Zsigmond
can you see anything in the log file?
Regards,
Zsigmond
10年前 に Sachin Aware によって更新されました。
RE: getting error while adding new locale in liferay 6.2
New Member 投稿: 23 参加年月日: 12/07/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.
10年前 に Tejas Kanani によって更新されました。
RE: getting error while adding new locale in liferay 6.2
Liferay Master 投稿: 654 参加年月日: 09/01/06 最新の投稿
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
10年前 に Ravi M によって更新されました。
RE: getting error while adding new locale in liferay 6.2
New Member 投稿: 9 参加年月日: 11/10/29 最新の投稿
Thanks Tejas. It helped.
10年前 に Sachin Aware によって更新されました。
RE: getting error while adding new locale in liferay 6.2
New Member 投稿: 23 参加年月日: 12/07/19 最新の投稿
Thanks Tejas,
It worked...
It worked...
3年前 に Palak Chordiya によって更新されました。
RE: getting error while adding new locale in liferay 6.2
New Member 投稿: 6 参加年月日: 20/04/06 最新の投稿
<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>
10年前 に Richard SINELLE によって更新されました。
RE: getting error while adding new locale in liferay 6.2
Junior Member 投稿: 28 参加年月日: 11/04/07 最新の投稿
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