Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
Dikie Rendra Aditya
Changing locale in theme for user without Administration Role
25 de agosto de 2009 21:22
Respuesta

Dikie Rendra Aditya

Ranking: New Member

Mensajes: 8

Fecha de incorporación: 11 de marzo de 2009

Mensajes recientes

Hi everyone.. I've been creating theme with 2 links to change the local inside the portal_normal.vm like this
1
2<a href="?p_p_id=82&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_count=1&_82_struts_action=%2Flanguage%2Fview&languageId=in_ID" >Bahasa</a>
3 |
4<a href="?p_p_id=82&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_count=1&_82_struts_action=%2Flanguage%2Fview&languageId=en_US" >English</a>


Then add the locale inside portal-ext.properties file.

I've also define the language .properties file in liferay-hook.xml inside my theme.. it has been working like a charm. I can change the language as a guest user or without log in to the system.

The problem is that when I'm logged in to the system using user with no Administration Role.. it seems like those two link don't work anymore.

Hope someone can help or point me where to look for this