DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29197>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29197

PropertyMessageResources behaviour different from PropertyResourceBundle





------- Additional Comments From [EMAIL PROTECTED]  2004-06-25 09:18 -------
No, this is not _that_ problem.

What I mean is the following. Suppose I have the following localization files:
language.properties (English)
language_fr.properties
language_ru.properties

I have two servers where I deploy my applications.

Server 1 resides in France. It's default locale is "fr_FR". I expect that when 
a user comes with unknown locale (say, "uk_UA") then server shows pages in 
French, not in English.

Server 2 resides in Russia. It's default locale is "ru_RU", and I expect "ru" 
to be chosen for clients with unknown locale.

If you call ResourceBundle.get for language.properties on Server1 with 
locale "uk", you get language_fr.properties. But PropertyMessageResources 
returns language.properties.

If you call ResourceBundle.get for language.properties on Server2 with 
locale "uk", you get language_ru.properties. PropertyMessageResources again 
returns language.properties.

In other words, if I run some GUI application on Server1 and then switch it 
interface to "uk", I'll get messages in French. On Server2 - in Russian. But 
web applications will always show pages in English if locale "uk" is requested.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to