Open GoogleCodeExporter opened 9 years ago
Yeah, I imagine you want to default to English (the default/backup language) in
case something is not translated in Japanese, which is better than displaying
nothing :-)
I used to do this defaulting programatically:
1. Get ResourceBundle for current locale (ex: ja) and get the message (will try
on _ja then root)
2. In case of MissingResourceException, get ResourceBundle for default locale
and retry (will try on _en then root)
This way the root bundle could remain clean, and simply contain non-language
dependent stuff.
You might also use an empty _en file, and always default to root.
But your way of doing is definitely valid too.
The current check is: if resource is identical in > 50% of the languages, but
has at least 1 different value, then warn.
50% is kind of arbitrary :p So the check could simply be ignored in the limit
case of 2 languages + root bundle.
Original comment by romain.q...@gmail.com
on 7 Jul 2014 at 10:35
Original issue reported on code.google.com by
dies...@gmail.com
on 21 Mar 2014 at 1:24