Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-823

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.3-plugins
    • 1.2.5-plugins
    • None
    • None

    Description

      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.

      Attachments

        1. xrtsStubs2.patch
          5 kB
          Bud Osterberg

        Activity

          People

            matzew Matthias Wessendorf
            bud.osterberg Bud Osterberg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: