Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Brant Levinson
How do remove the localization flags so they don't show up in my website.
20 de agosto de 2008 1:31
Respuesta

Brant Levinson

Ranking: Junior Member

Mensajes: 48

Fecha de incorporación: 12 de julio de 2008

Mensajes recientes

Is there are way to do this via configuration, or do I need to change the code in the theme. If it is a code change, can someone point me where.
Arvind Mishra
RE: How do remove the localization flags so they don't show up in my w
20 de agosto de 2008 6:48
Respuesta

Arvind Mishra

Ranking: Regular Member

Mensajes: 226

Fecha de incorporación: 13 de febrero de 2008

Mensajes recientes

Here is how can you remove language flags from code

go to

<theme>/templates/dock.vm

at the top remove following code lines
1<div class="lang">
2        $taglibLiferay.language()
3    </div>



Regards
arvind
Brant Levinson
RE: How do remove the localization flags so they don't show up in my w
24 de agosto de 2008 11:49
Respuesta

Brant Levinson

Ranking: Junior Member

Mensajes: 48

Fecha de incorporación: 12 de julio de 2008

Mensajes recientes

Okay, thanks for the reply. Now how do I change the types of flags that show up. Like if I just want US and Mexico.
Ray Augé
Re: [Liferay Forums][4. Custom Theme Development] RE: How do remove the loc
24 de agosto de 2008 18:52
Respuesta

Ray Augé

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 1195

Fecha de incorporación: 7 de febrero de 2005

Mensajes recientes

Srikanth Reddy Sanivarapu
RE: How do remove the localization flags so they don't show up in my w
28 de noviembre de 2008 22:16
Respuesta

Srikanth Reddy Sanivarapu

Ranking: Regular Member

Mensajes: 193

Fecha de incorporación: 14 de noviembre de 2008

Mensajes recientes

Can u please tell me the flow . means when we click on flags then what will be happening and to where the control is going and which file will handle that.

can u please reply me daaaa...

i am waiting for ur reply...

Thanks & Regards,
Srikanth Reddy.S
Chirag Suthar
RE: Re: [Liferay Forums][4. Custom Theme Development] RE: How do remove the
11 de diciembre de 2008 21:51
Respuesta

Chirag Suthar

Ranking: Junior Member

Mensajes: 41

Fecha de incorporación: 10 de enero de 2008

Mensajes recientes

Hi Ray,

How you can do in the language Porlet?
Also please let me know how to hide the some flag.
I know how to hide all flags using temples but according my requirement I need only 3 language.

Please help me out.

Thanks in advance.
Majed DAMMAK DAMMAK
RE: Re: [Liferay Forums][4. Custom Theme Development] RE: How do remove the
30 de diciembre de 2008 8:48
Respuesta

Majed DAMMAK DAMMAK

Ranking: New Member

Mensajes: 15

Fecha de incorporación: 18 de septiembre de 2008

Mensajes recientes

Hi Chirag
I have the same problem, I would like to hide or drop some languages, I need only the english and the deutch language.
were you find a solution ? Can you help me ?

Best Regards


Majed
Jack A. Rider / Alfredo Prats
RE: How do remove the localization flags so they don't show up in my w
30 de diciembre de 2008 9:16
Respuesta

Jack A. Rider / Alfredo Prats

Ranking: Regular Member

Mensajes: 139

Fecha de incorporación: 26 de marzo de 2007

Mensajes recientes

Hi all,

I believe Ray's answer is the one you need, you can add or remove localizations, by over writing portal.properties with the same variable in portal-ext.properties.(see in wikis to do this)

You have some examples and cases explained in previous forum posts also, see more or less the same case here:


http://www.liferay.com/web/guest/community/forums/-/message_boards/message/1769460


Hope this helps.
Saludos, Jack.
Majed DAMMAK DAMMAK
RE: How do remove the localization flags so they don't show up in my w
5 de enero de 2009 1:34
Respuesta

Majed DAMMAK DAMMAK

Ranking: New Member

Mensajes: 15

Fecha de incorporación: 18 de septiembre de 2008

Mensajes recientes

Hi all
@ Jack: thank you very much for your help, the link , you have posted in the last message, really helped me.
So, at this moment, I can choice the language number that I have needed in using the following code:

<div class="lfr-dock interactive-mode">
<div class="lang">
<a href="http://localhost:8080/web/guest/home?p_p_id=82&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_count=2&_82_struts_action=%2Flanguage%2Fview&languageId=en_US">English</a>

</div>

for example, if you need to add a french olanguage, you need only to add the same code and changing the "en_US" with "fr_FR" and change the value of this link.

In fact, in my case, I added the arabic language in my theme, but with this language, I encountred the following problem:

When I using the english or frensh language, the portlet style is margin with 130px in the left in order to put the navigation page (with blue color)visible in the left (find the "frensh.bmp" file attached with this message).

the following style code apply the portlet margin left.
<---
#content-wrapper {
margin : 0 0 0 130px ;
.......
........
}
--->

but with arabic language, the portlet changes the position in the right side (because in arabic language we write the sentence from the right to left), but the navigation (with the blue color) becomes invisible and hidden with the portlet because the margin should be apply with 130px in margin-right (see the second files with "arbic.bmp" file).

Therefore, I thought to implement a velocity code, but I can't apply the two conditions, I didn't find a solution.

Can you help me please.
archivos adjuntos: arabic.bmp (697,0k), french.bmp (672,9k)
Jack A. Rider / Alfredo Prats
RE: How do remove the localization flags so they don't show up in my w
5 de enero de 2009 7:03
Respuesta

Jack A. Rider / Alfredo Prats

Ranking: Regular Member

Mensajes: 139

Fecha de incorporación: 26 de marzo de 2007

Mensajes recientes

Hola Dammak,


I dont recall ever having the need to change css depending in language selection, but I would probably consider
to use some of the utilities (languageUtil) in velocity or to insert a value in the velocity context with the actual language.

To access the utilities or to put a value in a velocity variable read:

http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Velocity+for+dummies

then
http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Calling%20a%20service%20in%20velocity

http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Custom+Velocity+Variables


Lastly I would open another thread, because the subject of this one " How do remove the localization flags so they don't sh...." will
not atract people with knowledge of this problem.

See:
http://www.liferay.com/web/guest/community/forums/-/message_boards/message/572822


On what to do when your original post if your question has been answered.

Saludos, Jack