I think the functionality is more important that the actual source code.
This example was supposed to be a simple one.
It certainly can be implemented in a different way than I have done it.
If anyone knows better place where to hook the translation please let me
know.
-Matej
Eelco Hillenius wrote:
I like it (haven't look at the source code, but I like the
functionality). What about having a vote whether and where (which
project) this should be integrated?
I'm off to bed soon, but I'll certainly take a look tomorrow!
Eelco
Matej Knopp wrote:
Hi.
I've made a demo showing internationalization using only one html file
(instead of one for each language) with syntax like
$(prefix=Page1)
<html>
<body>
$(foo.bar)
</body>
</html>
and property files containg the strings that looks like this
Page1.foo.bar = Foo Bar String
I think it's quite handy and I would be nice if wicket had something
like this by default.
source code: http://knopp.sk/WicketI18N-src.zip
war: http://knopp.sk/WicketI18N.war
(It's a modified form input example. I've removed the graphic buttons
and made a classic submit button instead to demonstrate, that it's
also possible to translate tag attributes.)
-Matej
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user