Foren
getting error while adding new locale in liferay 6.2
Sachin Aware, geändert vor 10 Jahren.
getting error while adding new locale in liferay 6.2
New Member Beiträge: 23 Beitrittsdatum: 19.07.12 Neueste Beiträge
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, geändert vor 10 Jahren.
RE: getting error while adding new locale in liferay 6.2
Liferay Master Beiträge: 728 Beitrittsdatum: 05.01.10 Neueste Beiträge
Hi Sachin,
can you see anything in the log file?
Regards,
Zsigmond
can you see anything in the log file?
Regards,
Zsigmond
Sachin Aware, geändert vor 10 Jahren.
RE: getting error while adding new locale in liferay 6.2
New Member Beiträge: 23 Beitrittsdatum: 19.07.12 Neueste Beiträge
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, geändert vor 10 Jahren.
RE: getting error while adding new locale in liferay 6.2
Liferay Master Beiträge: 654 Beitrittsdatum: 06.01.09 Neueste Beiträge
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, geändert vor 10 Jahren.
RE: getting error while adding new locale in liferay 6.2
New Member Beiträge: 9 Beitrittsdatum: 29.10.11 Neueste Beiträge
Thanks Tejas. It helped.
Sachin Aware, geändert vor 10 Jahren.
RE: getting error while adding new locale in liferay 6.2
New Member Beiträge: 23 Beitrittsdatum: 19.07.12 Neueste Beiträge
Thanks Tejas,
It worked...
It worked...
Palak Chordiya, geändert vor 3 Jahren.
RE: getting error while adding new locale in liferay 6.2
New Member Beiträge: 6 Beitrittsdatum: 06.04.20 Neueste Beiträge
<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, geändert vor 10 Jahren.
RE: getting error while adding new locale in liferay 6.2
Junior Member Beiträge: 28 Beitrittsdatum: 07.04.11 Neueste Beiträge
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