Forums de discussion

$theme.language with no effect for some pages...

A. E., modifié il y a 10 années.

$theme.language with no effect for some pages...

New Member Publications: 5 Date d'inscription: 26/07/10 Publications récentes
Hi all,

I developed a liferay website for our company. After finishing I visited all pages for a last check. Everything works fine but changing language (german / english) via $theme.language in portal_normal.vm doesn't work for some pages. If I use the language portlet there is no problem.

I really don't know what causes this behaviour. The only thing i discovered is the wrong page url: the affected pages don't get the "de" or "en" in front of "web/guest".

And the problem only occurs for the guest user!

Any hints?

BTW: I'm using Liferay 6.1.1 CE GA2, Tomcat Bundle!


Thx
lanix
Leonardo Martinez, modifié il y a 10 années.

RE: $theme.language with no effect for some pages...

New Member Envoyer: 1 Date d'inscription: 15/02/13 Publications récentes
Same problem with English and Spanish.

I'm using Liferay 6.1.2 CE GA3, Glassfish Bundle.

Thanks.
Markus Mohoritsch, modifié il y a 10 années.

RE: $theme.language with no effect for some pages...

New Member Envoyer: 1 Date d'inscription: 14/11/13 Publications récentes
I have the exacly same problem. In my case it's en_US and de_DE and i'm using 6.1.2 GA3.

Please help!!!
João Gomes, modifié il y a 10 années.

RE: $theme.language with no effect for some pages...

New Member Publications: 9 Date d'inscription: 12/03/13 Publications récentes
I have the same problem.
Does anyone knows how to fix it?
thumbnail
Dusan Klobasa, modifié il y a 10 années.

RE: $theme.language with no effect for some pages...

New Member Publications: 2 Date d'inscription: 17/06/12 Publications récentes
I have the same problem.
I figured that it is working if you add language portlet to a page. Then it is working even if you remove portlet, but you have to do this action for every page. :/

This is temporary workaround for me.
thumbnail
Dusan K., modifié il y a 10 années.

RE: $theme.language with no effect for some pages...

New Member Publications: 2 Date d'inscription: 17/06/12 Publications récentes
I found solution. I include language portlet this way:

#set ($VOID = $velocityPortletPreferences.setValue('displayStyle', '2'))
$theme.runtime("82", "", $velocityPortletPreferences.toString())
#set ($VOID = $velocityPortletPreferences.reset())