On 11/21/05, David Leangen <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I did some searching, but could only find info about i18n at the message
> level. I am interested in i18n at the page level.
>
> In other words, I have a site that needs to support more than one
> locale. The user should be able to switch between them from any point in
> the site.
>
>
> This is how I am thinking of proceeding, but I would really appreciate
> comments from anybody who has done extensive i18n before.
>
>
> Using this approach:
>   http://www.wicket-wiki.org.uk/wiki/index.php/Multiple_markups_per_page
>

Actually this article talks about "variations" which something slighty
different. In order to use I18n on page level simply append the locale
to the markup file name. E.g.
MyPanel.java
MyPanel.html (default)
MyPanel_de.html (German)
MyPanle_de_DE.html (German)
MyPanel_nl.html (Netherlands)
etc. No need to do anything. It is supported out of the box. Please
see the examples as well.

> Each page will (perhaps) have one variant for each locale. I say
> "perhaps" because in most cases, there should be a version of the page
> for each locale. However, this is not always the case. So, the page
> should provide an alternate target for any page that is missing.
>
> All this should be strictly type-checked (if possible at compile time)
> to avoid as many errors as possible.
>

same rules. nothing changes.

> Pages that use components (such as forms) should be able to pass in the
> locale as a parameter and the component should support l10n.
>

There are default locale to be set with the Application. Locale can be
changed by session/user and by http request, depending on whether the
browser provide the locale requested or not.

Juergen


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to