Foren
Translation Problem
Becas Kostas, geändert vor 10 Jahren.
Translation Problem
Junior Member Beiträge: 28 Beitrittsdatum: 30.08.12 Neueste Beiträge
Hey,
I am facing a strange problem, which i need your help.
I have placed my languages in dockbar with a hook.
My code:
and then
In some layouts when i change the language from one to another the translation is not taking place. And instead of translating i get this url:
?p_p_id=82&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&_82_struts_action=%2Flanguage%2Fview&_82_redirect=%2Fel%2Fregions&languageId=ru_RU
why is that happening? is there a fix?
I am facing a strange problem, which i need your help.
I have placed my languages in dockbar with a hook.
My code:
Locale[] availableLocales = LanguageUtil.getAvailableLocales();
String[] availableLanguageIds = new String[] {"en_US","el_GR","ru_RU"};
//LocaleUtil.toLanguageIds(availableLocales);
String[] languageIds = availableLanguageIds;
and then
<li>
<liferay-ui:language displayStyle="<%=LanguageTag.LIST_ICON%>" languageIds="<%= languageIds %>" />
</li>
In some layouts when i change the language from one to another the translation is not taking place. And instead of translating i get this url:
?p_p_id=82&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&_82_struts_action=%2Flanguage%2Fview&_82_redirect=%2Fel%2Fregions&languageId=ru_RU
why is that happening? is there a fix?