Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Fabian Socarras
Display currently selected language.
18 de Dezembro de 2012 12:02
Resposta

Fabian Socarras

Ranking: New Member

Mensagens: 2

Data de entrada: 18 de Dezembro de 2012

Mensagens recentes

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
Anônimo
RE: Display currently selected language.
18 de Dezembro de 2012 12:48
Resposta

Anônimo

change the number in the function to I think 3 that is the display style of the portlet
Anônimo
Re: [Liferay Forums][1. Themes in 6.x] Display currently selected language.
18 de Dezembro de 2012 12:49
Resposta

Anônimo

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 de Dezembro de 2012 13:24
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 7990

Data de entrada: 23 de Março de 2010

Mensagens recentes

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 de Dezembro de 2012 07:16
Resposta

Fabian Socarras

Ranking: New Member

Mensagens: 2

Data de entrada: 18 de Dezembro de 2012

Mensagens recentes

Thanks Bradley, that worked! emoticon