Eelco Hillenius wrote:
Juergen Donnerstag wrote:
we've discussed it already and agreed on waiting for Matej to come up
with a first draft to proof that the idea works, and it obviously does
very well.
But I guess I'm the only one, who thinks there must be a better
solution. I guess the reason why I'm not especially keen on the idea
is because it'll allow users to insert not only text but basically
everything (html, javascript, etc.) in there. You may use it for
localizing text, but you can basically use it for several more. It is
not limited to attributes or tag, not even to (x)html. It is a
templating engine providing the markup to wicket. You can do includes,
you can convert from XUL to HTML (just an example, not sure this is
realy possible). I do like the templating approach as part of that
larger picture (templating engine providing markup or the commons
virtual file system providing the markup), and yes it does provide a
means for localization as well. It'll than be one of several
approaches for localization (depending on the reqs one might fit
better than another).
This was meant just to be as simple as possible to do the basic
localization, without the need for maintaining different html files for
each language. I didn't aimed for more. It's just a proof of concept.
Being able to do the stuff you have described would be great, but it
would require (at least small) changes to wicket, for the implementation
to look elegant.
Localization is a very important topic and I believe Wicket should
have a wicket-like solution without the need for a syntax like
$(xxx.yy) which feels (just my gutt feeling) like a debris (looked it
up in a dictionary: foreign body) in the wicket context.
I do agree here. It's different approach. But It's much easier tu put
$(something) in html that usign <wicket:component or whatever else. I
didn't want it to be verbose.
I have/ had the same concerns. However, I think the option of easily and
non-verbosely including localized strings is very important to many
people. I think we have enough remarks about that on this list to prove
it is.
I agree that it is foreign to the usual Wicket approach, which is
probably a good indicator that it should be an extension. If users want
it, we give them the option, but not before they made a weigthed
consideration first.
Eelco
Exactly my opinion. This doesn't break anything in wicket, it's merely
an add-on. It is simple solution for users that don't want to manage
bunch of markup files for each language. It's not wicket-like enough to
be in core, but it might be and extension IMHO.
-Matej
Juergen
On 7/23/05, Johan Compagner <[EMAIL PROTECTED]> wrote:
i also like the idea that you have one html file, X number of property
files and then at load time of the markup file
for a specific locale the property file for that locale is merged in to
the html. And that html is stored for that locale in the cache.
At least i think tht is the complete idea?
What does juergen say about this? Shouldn't be to hard to implement i
think.
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_idt77&alloc_id492&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