Re: Datatable Internationalization

2009-02-25 Thread TahitianGabriel

Add this in your YourPage.properties file : 

NavigatorLabel=Lignes ${from} à ${to} sur ${of} 

In case you use the NoRecordToolBar (include in DefaultDataTable) :
dataTableName.no-records-found=Aucun enregistrement trouvé


It works for me.

Et voilà!



Loic Descotte wrote:
 
 Hi all,
 I have a question about Wicket Datatable Component Internationalization.
 In the datatable, in don't find how to change the text Showing 1 to 10 of
 N in the navigation toolbar.
 
 NavigatorLabel = Lignes ${from} à ${to} sur ${of}
 and
 NavigatorLabel = Lignes ${0} à ${1} sur ${2}
 

-- 
View this message in context: 
http://www.nabble.com/Datatable-Internationalization-tp22157950p22214277.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Datatable Internationalization

2009-02-25 Thread loicd

Thanks a lot i'm going to try this!
I was using MyApp.properties file, not MyPage.properties, maybe it's the
reason why it didn't work.
I'm already using dataTableName.no-records-found=Aucun enregistrement
trouvé for the NoRecordToolBar, it works fine in MyApp.properties file.


Thanks again!


TahitianGabriel wrote:
 
 Add this in your YourPage.properties file : 
 
 NavigatorLabel=Lignes ${from} à ${to} sur ${of} 
 
 In case you use the NoRecordToolBar (include in DefaultDataTable) :
 dataTableName.no-records-found=Aucun enregistrement trouvé
 
 
 It works for me.
 
 Et voilà!
 
 
 
 Loic Descotte wrote:
 
 Hi all,
 I have a question about Wicket Datatable Component Internationalization.
 In the datatable, in don't find how to change the text Showing 1 to 10
 of
 N in the navigation toolbar.
 
 NavigatorLabel = Lignes ${from} à ${to} sur ${of}
 and
 NavigatorLabel = Lignes ${0} à ${1} sur ${2}
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Datatable-Internationalization-tp22157950p22218845.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Datatable Internationalization

2009-02-24 Thread Loic Descotte
Nobody knows how to do that?
In the source code i've found this comment :

The message can be overridden using the codeNavigatorLabel/code property
key, the default message is used is of the
 format codeShowing ${from} to ${to} of ${of}/code
So i guess it should work, i must have missed something...



On Mon, Feb 23, 2009 at 10:15 AM, Loic Descotte loic.desco...@gmail.comwrote:

 Hi all,
 I have a question about Wicket Datatable Component Internationalization.
 In the datatable, in don't find how to change the text Showing 1 to 10 of
 N in the navigation toolbar.

 The Datatable component is associated to a NavigatorToolBar component, wich
 is associated to a NavigatorLabel.
 I've found this code in the NavigatorLabel.java file :

 new StringResourceModel(NavigatorLabel, this,
 new ModelLabelModelObject(new LabelModelObject(table)),
 Showing ${from} to ${to} of ${of})

 I've tried to redefine NavigatorLabel in my properties files, but it
 does'nt work, the text the Showing 1 to 10 of N does'nt change.

 I've tried this :

 NavigatorLabel = Lignes ${from} à ${to} sur ${of}
 and

 NavigatorLabel = Lignes ${0} à ${1} sur ${2}

 Do anyone knows how to make this work?

 Thanks a lot

 --
 Loïc Descotte
 9 rue Sébastien Gryphe
 69007 Lyon

 06 23 23 36 80




-- 
Loïc Descotte
9 rue Sébastien Gryphe
69007 Lyon

06 23 23 36 80


Datatable Internationalization

2009-02-23 Thread Loic Descotte
Hi all,
I have a question about Wicket Datatable Component Internationalization.
In the datatable, in don't find how to change the text Showing 1 to 10 of
N in the navigation toolbar.

The Datatable component is associated to a NavigatorToolBar component, wich
is associated to a NavigatorLabel.
I've found this code in the NavigatorLabel.java file :

new StringResourceModel(NavigatorLabel, this,
new ModelLabelModelObject(new LabelModelObject(table)),
Showing ${from} to ${to} of ${of})

I've tried to redefine NavigatorLabel in my properties files, but it
does'nt work, the text the Showing 1 to 10 of N does'nt change.

I've tried this :

NavigatorLabel = Lignes ${from} à ${to} sur ${of}
and

NavigatorLabel = Lignes ${0} à ${1} sur ${2}

Do anyone knows how to make this work?

Thanks a lot

-- 
Loïc Descotte
9 rue Sébastien Gryphe
69007 Lyon

06 23 23 36 80