Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Manuel Salvatori
[SOLVED & SUGGESTION] Internazionalization of mb priority
May 9, 2008 7:17 AM
Answer

Manuel Salvatori

Rank: Junior Member

Posts: 60

Join Date: January 29, 2008

Recent Posts

Hi, in the message board is possible to define the priority level of the 3d, the name of those and the value are defined in the file "portlet-custom.xls", and in this file there is something like this:

<preference>
<name>priorities</name>
<value>Urgent,/message_boards/priority_urgent.png,3.0</value>
<value>Sticky,/message_boards/priority_sticky.png,2.0</value>
<value>Announcement,/message_boards/priority_announcement.png,1.0</value>
</preference>

In the edit page the select has the values Urgent, Sticky and Announcement.

I'd like to internazionalize it, there is any way to do that? i've seen that now use the method _getPrefsKey of the class LocalizationUtil but i don't know how its works exatly.

Any information and sugestion are appriciate.

ty Manuel
Manuel Salvatori
RE: Internazionalization of mb priority
May 9, 2008 7:16 AM
Answer

Manuel Salvatori

Rank: Junior Member

Posts: 60

Join Date: January 29, 2008

Recent Posts

Is possible to introduce the interazionalization using this workaround.

1) modify a jsp
Replace the line 320 of edit_message.jsp with this:
<option <%= (threadPriority == priorityValue) ? "selected" : "" %> value="<%= priorityValue %>"><liferay-ui:message key="<%= priorityName %>" /></option>

2) add to the language_xx.properties file the lines (can be used ofcorse the ext files)
Urgent=XXX
Sticky=YYY
Announcement=ZZZ

3) add to the Language.properties
Urgent=Urgent
Sticky=Sticky
Announcement=Announcement

O propose to add this function to the nex version of liferay.

ty