Add a Link, in the onClick method, add the code to set the local setting for
this session.  That's it.
add(new Link("french_wicket_tag")
{
public void onClick()
{
getSession().setLocale(Locale.FRENCH);
}
});
<a hreh="#" wicket:id="french_wicket_tag">French version<\a>

Maybe there is something I didn't understand in the question, but it seem's
really just that.

On 4/4/07, Jan Kriesten <[EMAIL PROTECTED]> wrote:


hi,

i'm quite new to wicket and am impressed. :-)

i just stumbled over the i18n/l10n questions, which are relevant in most
of our
projects. if anyone could enlighten me how the following can be resolved
with
wickets:

we have a database driven approach localizing our application. so there is
a
config telling the app, which languages are available. all pages are
available
in all configured languages, a nav-link is available on any page to switch
language.

this said, how can i dynamically create links to a specific language of
the same
page? can i define/map distinct url-path to languages (e.g.
/en/index.html,
/de/index.html)?

thanks for your time! :-)

--- jan.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to