[jira] Updated: (TRINIDAD-823) Maven-xrts-plugin should generate stub ResourceBundles for default locale

2007-11-24 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/TRINIDAD-823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matthias Weßendorf updated TRINIDAD-823:


Resolution: Fixed
Status: Resolved  (was: Patch Available)

thx to Bud for his patch

 Maven-xrts-plugin should generate stub ResourceBundles for default locale
 -

 Key: TRINIDAD-823
 URL: https://issues.apache.org/jira/browse/TRINIDAD-823
 Project: MyFaces Trinidad
  Issue Type: Bug
Affects Versions:  1.2.3-plugins
Reporter: Bud Osterberg
Assignee: Matthias Weßendorf
 Fix For: 1.2.5-plugins

 Attachments: xrtsStubs2.patch


 The base string resource files are written in English. Translations are done 
 from there. Unfortunately this leads to a weird bug when the server is in a 
 non-English locale (say ja). When American English (en-US) resources are 
 requested, Java RescourceBundle will do a lookup in this order:
 1. Res_en_US
 2. Res_en
 3. Res_ja (according to default locale, say this is Japanese here)
 4. Res
 In this case, #3 gets a hit and returns, where we were really expecting #4.
 A simple fix is to generate stub _en ResourceBundles which simply extend the 
 base (English) bundle.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (TRINIDAD-823) Maven-xrts-plugin should generate stub ResourceBundles for default locale

2007-11-15 Thread Bud Osterberg (JIRA)

 [ 
https://issues.apache.org/jira/browse/TRINIDAD-823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bud Osterberg updated TRINIDAD-823:
---

Status: Patch Available  (was: Open)

 Maven-xrts-plugin should generate stub ResourceBundles for default locale
 -

 Key: TRINIDAD-823
 URL: https://issues.apache.org/jira/browse/TRINIDAD-823
 Project: MyFaces Trinidad
  Issue Type: Bug
Affects Versions:  1.2.3-plugins
Reporter: Bud Osterberg
 Fix For: 1.2.4-plugins

 Attachments: xrtsStubs.patch


 The base string resource files are written in English. Translations are done 
 from there. Unfortunately this leads to a weird bug when the server is in a 
 non-English locale (say ja). When American English (en-US) resources are 
 requested, Java RescourceBundle will do a lookup in this order:
 1. Res_en_US
 2. Res_en
 3. Res_ja (according to default locale, say this is Japanese here)
 4. Res
 In this case, #3 gets a hit and returns, where we were really expecting #4.
 A simple fix is to generate stub _en ResourceBundles which simply extend the 
 base (English) bundle.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.