Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Fabian Socarras
Display currently selected language.
December 18, 2012 12:02 PM
Answer

Fabian Socarras

Rank: New Member

Posts: 2

Join Date: December 18, 2012

Recent Posts

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
Anonymous
RE: Display currently selected language.
December 18, 2012 12:48 PM
Answer

Anonymous

change the number in the function to I think 3 that is the display style of the portlet
Anonymous
Re: [Liferay Forums][1. Themes in 6.x] Display currently selected language.
December 18, 2012 12:49 PM
Answer

Anonymous

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
December 18, 2012 1:24 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

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
December 19, 2012 7:16 AM
Answer

Fabian Socarras

Rank: New Member

Posts: 2

Join Date: December 18, 2012

Recent Posts

Thanks Bradley, that worked! emoticon