Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Fabian Socarras
Display currently selected language.
18 dicembre 2012 12.02
Risposta

Fabian Socarras

Punteggio: New Member

Messaggi: 2

Data di Iscrizione: 18 dicembre 2012

Messaggi recenti

I managed to create a language picker using the following function: $theme.language("fm",null,"languageId",1).

What I can't figure out is how to display the currently selected language. There a way to convert the $language_id gives me en_US when what I need to return is " English (United States)".

Thanks,

Fabian
Anonimo
RE: Display currently selected language.
18 dicembre 2012 12.48
Risposta

Anonimo

change the number in the function to I think 3 that is the display style of the portlet
Anonimo
Re: [Liferay Forums][1. Themes in 6.x] Display currently selected language.
18 dicembre 2012 12.49
Risposta

Anonimo

change the number in the function to I think 3 that is the display style of
the portlet

Bradley Wood
Software Engineer
Bradley.Wood@liferay.com

---

liferay.com/spain2012 <http://www.liferay.com/spain2012>

16 November 2012 |* Liferay **Italy Symposium* |
liferay.com/italy2012<http://www.liferay.com/italy2012>


Visit Us: www.liferay.com | Like Us: facebook.com/liferay | Follow Us:
twitter.com/liferay



On Tue, Dec 18, 2012 at 12:02 PM, Fabian Socarras from liferay.com <
forums@liferay.com> wrote:

> I managed to create a language picker using the following function:
> $theme.language("fm",null,"languageId",1).
>
> What I can't figure out is how to display the currently selected language.
> There a way to convert the $language_id gives me en_US when what I need to
> return is " English (United States)".
>
> Thanks,
>
> Fabian
>
>
> To view the thread, follow the link below:
>
> http://www.liferay.com/web/guest/community/forums/-/message_boards/view_message/18714801
> --
> Thanks, Liferay.com Forums <http://http://www.liferay.com>
Hitoshi Ozawa
RE: Re: [Liferay Forums][1. Themes in 6.x] Display currently selected langu
18 dicembre 2012 13.24
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7990

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

Bradley, did you repost your reply twice because you've forgotten to add ads for liferay.com? emoticon
Fabian Socarras
RE: Re: [Liferay Forums][1. Themes in 6.x] Display currently selected langu
19 dicembre 2012 7.16
Risposta

Fabian Socarras

Punteggio: New Member

Messaggi: 2

Data di Iscrizione: 18 dicembre 2012

Messaggi recenti

Thanks Bradley, that worked! emoticon