Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None
    • Environment:
      1.4 RC1

      Description

      In 1.4RC1 the default *.properties files were renamed to *_en.properties. Because there is no base properties defined anymore, MissingResourceException are being thrown if the neither the specified or default locale are available.

      To fix this we can make a copy of the *_en.properties as *.properties. Thus two english localizations will be available, the base *.properties and *_en.properties.

        Activity

        Hide
        Malcolm Edgar added a comment -

        Hi Bob,

        I have restored the *.properties files. What would be good is to have an Ant script to copy the *.properties files to *_en.properties at build time, so we only have to maintain one set of English files.

        regards Malcolm

        Show
        Malcolm Edgar added a comment - Hi Bob, I have restored the *.properties files. What would be good is to have an Ant script to copy the *.properties files to *_en.properties at build time, so we only have to maintain one set of English files. regards Malcolm
        Hide
        Bob Schellink added a comment -

        I did a test and we can also fix this issue by having empty *_en.properties files.

        As long as the ResourceBundle finds the *_en.properties files on the classpath it will load it, and any properties not found will be inherited from its parent property. The parent in this case will be *.properties.

        Show
        Bob Schellink added a comment - I did a test and we can also fix this issue by having empty *_en.properties files. As long as the ResourceBundle finds the *_en.properties files on the classpath it will load it, and any properties not found will be inherited from its parent property. The parent in this case will be *.properties.

          People

          • Assignee:
            Malcolm Edgar
            Reporter:
            Bob Schellink
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development