Hi Vincent,
> In my case information is loaded from a database.
That shouldn't stop you from making a DatabaseResourceBundle. B)
> The thing I'm
> considering is that it would be easiest to access the information in a
> property kind of way, like normal Velocity code:
>
> $product.title
>
> but this would infact invoke:
>
> String product.getTitle(usersLocale);
>
> or something of the sort. This would be how I would attempt to do it.
If you make a POJO with the method get(String property), it will be
called. ie. $product.title will invoke product.get("title").
(assuming that product is what is in $product.) Now, all you have to
do is go ahead and make it. ;)
> I'm sure other people have struggled with the same problem, and I wish
> to know what their solution would be. Anyone has attempted to do the same?
Of course, I've only worked with one-language applications, so it
might not be the best practice.
## I do have a link inside me from i18n to ResourceBundle, though.
Best regards,
-- Shinobu Kawai
--
Shinobu Kawai <[EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]