You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Loic Descotte <lo...@gmail.com> on 2009/02/23 10:15:17 UTC
Datatable Internationalization
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 Model<LabelModelObject>(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
Re: Datatable Internationalization
Posted by Loic Descotte <lo...@gmail.com>.
Nobody knows how to do that?
In the source code i've found this comment :
The message can be overridden using the <code>NavigatorLabel</code> property
key, the default message is used is of the
format <code>Showing ${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 <lo...@gmail.com>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.
>
> 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 Model<LabelModelObject>(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
Re: Datatable Internationalization
Posted by loicd <lo...@gmail.com>.
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Datatable Internationalization
Posted by TahitianGabriel <gl...@piti.pf>.
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org