You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Bud Osterberg (JIRA)" <de...@myfaces.apache.org> on 2007/11/16 02:09:43 UTC

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

     [ 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.