Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Milan Kostoláni
Writing from Language.properties
December 13, 2012 2:44 AM
Answer

Milan Kostoláni

Rank: Junior Member

Posts: 92

Join Date: July 26, 2012

Recent Posts

Hello everyone,

is it possible to write something in JSP from Language.properties.

Actually what I mean is something like this:

in Language.properties: euro=€

and is there something in JSP to write that "€" ?
Apoorva Prakash
RE: Writing from Language.properties
December 13, 2012 4:46 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Milan Kostoláni:
Hello everyone,

is it possible to write something in JSP from Language.properties.

Actually what I mean is something like this:

in Language.properties: euro=€

and is there something in JSP to write that "€" ?



Hello Milan,

you need to create Hook for this purpose. See this link.

Hope this will help you.

Thanks and Regards,
Apoorva Prakash
Milan Kostoláni
RE: Writing from Language.properties
December 13, 2012 5:04 AM
Answer

Milan Kostoláni

Rank: Junior Member

Posts: 92

Join Date: July 26, 2012

Recent Posts

Hi,

thanks for responding.

And how will I call something from Language.properties to JSP then?
Apoorva Prakash
RE: Writing from Language.properties
December 13, 2012 9:06 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Milan Kostoláni:
Hi,

thanks for responding.

And how will I call something from Language.properties to JSP then?



Hello Milan,

Use the following:
1<liferay-ui:message key="key" />


Hope this will help..

Thanks and Regards,
Apoorva Prakash
Milan Kostoláni
RE: Writing from Language.properties
December 14, 2012 6:16 AM
Answer

Milan Kostoláni

Rank: Junior Member

Posts: 92

Join Date: July 26, 2012

Recent Posts

Hi Apoorva,

Thank you for responding. That was just what I need.
Apoorva Prakash
RE: Writing from Language.properties
December 14, 2012 6:21 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Milan Kostoláni:
Hi Apoorva,

Thank you for responding. That was just what I need.


Welcome Milan...