i8n

UI Components for JSF
Post Reply
marcelo.borba
Posts: 5
Joined: 12 Apr 2010, 15:16

12 Apr 2010, 15:25

Hi, I tryed to find any thread related to this subject in the forum, but didnt locate what I need. If the question was already answered, pls link the thread :)

I'm need to translate some components texts, for example the title on a sortable datatable column 'Click to sort descending' to another text or language.
Same case for the paginator links "<< first" to an image ou another text. I want to change this globally, is there any configuration file for this?

For the paginator I saw a javascript configuration, but can't make it work right.

Thks. :)

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

12 Apr 2010, 22:01

Hi,

DataTable has attributes for i18n like sortAscMessage, sortDescMessage, nextPageLinkLabel and more.

User's guide has the full list of attributes you can refer to.

marcelo.borba
Posts: 5
Joined: 12 Apr 2010, 15:16

14 Apr 2010, 15:09

I know, but this attributes change only an especific datatable, I wanna make this changes globally, that all datables on my project extends. Not only datatables, but other components too. Is there any properties file?

thks

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

18 Apr 2010, 23:54

There is no global option for these at the moment, it is per datatable based.

Feel free to create a feature request in our issue tracker and we can take a look at it.

nessa_uepa
Posts: 7
Joined: 16 Jun 2010, 17:01

16 Jun 2010, 20:04

I guess that the best thing to do is to use properties file messages, but writing the attributes "previousPageLinkLabel", etc in each dataTable.
=\

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests