You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by "zcy@ejustcn.com" <zc...@ejustcn.com> on 2015/05/05 12:28:51 UTC
How about i18n of WicketSignInPage?
Hi
How can I do internationalization of Sing In Page ?�
Ofcouse I have done i18n of Domain service ,but login page still not.
Thanks.
James�
Re: How about i18n of WicketSignInPage?
Posted by Chuangyu <zh...@gmail.com>.
Dan,
This really helpful for me.
Thank you very much.
James
2015-05-06 18:18 GMT+08:00 Martin Grigorov <mg...@apache.org>:
> Right.
> The benefit is that you can use utf as encoding and write in your native
> language.
> With .properties you'll have to use unicode escaping : e.g. \u1234
> On May 6, 2015 1:15 PM, "Dan Haywood" <da...@haywood-associates.co.uk>
> wrote:
>
> > Isis is leveraging Wicket here, so I checked the Wicket docs for you;
> > apparently the syntax is actually standard Java format.
> >
> > see https://wicket.apache.org/guide/guide/i18n.html#i18n_2, specifically
> > "Using XML files as resource bundles"
> >
> > HTH
> > Dan
> >
> >
> >
> > On 6 May 2015 at 09:31, Chuangyu <zh...@gmail.com> wrote:
> >
> > > Hi
> > >
> > > Where to get schema of YourApplication_locale.properties.xml ?
> > >
> > >
> > > 2015-05-05 18:36 GMT+08:00 Martin Grigorov <mg...@apache.org>:
> > >
> > > > Hi,
> > > >
> > > > You can copy the entries from
> > > >
> > > >
> > >
> >
> https://github.com/apache/isis/blob/master/core/viewer-wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/pages/login/WicketSignInPage.properties
> > > > into YourApplication_locale.properties.xml.
> > > >
> > > > There is a ticket to make it possible to Isis localization files for
> > > Wicket
> > > > UI but it is not implemented yet.
> > > >
> > > > Martin Grigorov
> > > > Wicket Training and Consulting
> > > > https://twitter.com/mtgrigorov
> > > >
> > > > On Tue, May 5, 2015 at 1:28 PM, zcy@ejustcn.com <zc...@ejustcn.com>
> > wrote:
> > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Hi
> > > > > How can I do internationalization of Sing In Page ?
> > > > > Ofcouse I have done i18n of Domain service ,but login page still
> not.
> > > > > Thanks.
> > > > > James
> > > > >
> > > > >
> > > >
> > >
> >
>
Re: How about i18n of WicketSignInPage?
Posted by Martin Grigorov <mg...@apache.org>.
Right.
The benefit is that you can use utf as encoding and write in your native
language.
With .properties you'll have to use unicode escaping : e.g. \u1234
On May 6, 2015 1:15 PM, "Dan Haywood" <da...@haywood-associates.co.uk> wrote:
> Isis is leveraging Wicket here, so I checked the Wicket docs for you;
> apparently the syntax is actually standard Java format.
>
> see https://wicket.apache.org/guide/guide/i18n.html#i18n_2, specifically
> "Using XML files as resource bundles"
>
> HTH
> Dan
>
>
>
> On 6 May 2015 at 09:31, Chuangyu <zh...@gmail.com> wrote:
>
> > Hi
> >
> > Where to get schema of YourApplication_locale.properties.xml ?
> >
> >
> > 2015-05-05 18:36 GMT+08:00 Martin Grigorov <mg...@apache.org>:
> >
> > > Hi,
> > >
> > > You can copy the entries from
> > >
> > >
> >
> https://github.com/apache/isis/blob/master/core/viewer-wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/pages/login/WicketSignInPage.properties
> > > into YourApplication_locale.properties.xml.
> > >
> > > There is a ticket to make it possible to Isis localization files for
> > Wicket
> > > UI but it is not implemented yet.
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > > On Tue, May 5, 2015 at 1:28 PM, zcy@ejustcn.com <zc...@ejustcn.com>
> wrote:
> > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Hi
> > > > How can I do internationalization of Sing In Page ?
> > > > Ofcouse I have done i18n of Domain service ,but login page still not.
> > > > Thanks.
> > > > James
> > > >
> > > >
> > >
> >
>
Re: How about i18n of WicketSignInPage?
Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Isis is leveraging Wicket here, so I checked the Wicket docs for you;
apparently the syntax is actually standard Java format.
see https://wicket.apache.org/guide/guide/i18n.html#i18n_2, specifically
"Using XML files as resource bundles"
HTH
Dan
On 6 May 2015 at 09:31, Chuangyu <zh...@gmail.com> wrote:
> Hi
>
> Where to get schema of YourApplication_locale.properties.xml ?
>
>
> 2015-05-05 18:36 GMT+08:00 Martin Grigorov <mg...@apache.org>:
>
> > Hi,
> >
> > You can copy the entries from
> >
> >
> https://github.com/apache/isis/blob/master/core/viewer-wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/pages/login/WicketSignInPage.properties
> > into YourApplication_locale.properties.xml.
> >
> > There is a ticket to make it possible to Isis localization files for
> Wicket
> > UI but it is not implemented yet.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Tue, May 5, 2015 at 1:28 PM, zcy@ejustcn.com <zc...@ejustcn.com> wrote:
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi
> > > How can I do internationalization of Sing In Page ?
> > > Ofcouse I have done i18n of Domain service ,but login page still not.
> > > Thanks.
> > > James
> > >
> > >
> >
>
Re: How about i18n of WicketSignInPage?
Posted by Chuangyu <zh...@gmail.com>.
Hi
Where to get schema of YourApplication_locale.properties.xml ?
2015-05-05 18:36 GMT+08:00 Martin Grigorov <mg...@apache.org>:
> Hi,
>
> You can copy the entries from
>
> https://github.com/apache/isis/blob/master/core/viewer-wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/pages/login/WicketSignInPage.properties
> into YourApplication_locale.properties.xml.
>
> There is a ticket to make it possible to Isis localization files for Wicket
> UI but it is not implemented yet.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Tue, May 5, 2015 at 1:28 PM, zcy@ejustcn.com <zc...@ejustcn.com> wrote:
>
> >
> >
> >
> >
> >
> >
> > Hi
> > How can I do internationalization of Sing In Page ?
> > Ofcouse I have done i18n of Domain service ,but login page still not.
> > Thanks.
> > James
> >
> >
>
Re: How about i18n of WicketSignInPage?
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
You can copy the entries from
https://github.com/apache/isis/blob/master/core/viewer-wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/pages/login/WicketSignInPage.properties
into YourApplication_locale.properties.xml.
There is a ticket to make it possible to Isis localization files for Wicket
UI but it is not implemented yet.
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Tue, May 5, 2015 at 1:28 PM, zcy@ejustcn.com <zc...@ejustcn.com> wrote:
>
>
>
>
>
>
> Hi
> How can I do internationalization of Sing In Page ?
> Ofcouse I have done i18n of Domain service ,but login page still not.
> Thanks.
> James
>
>