Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8039301

[ja] Host Locale Provider uses non-translated Calendar field names

    Details

    • Subcomponent:
    • Introduced In Version:
      8
    • Resolved In Build:
      b101

      Description

       When Host Locale Provider was used and OS is configured as Japanese Imperial
      Calendar, a non-translated Era name is retrieved. The Windows OS uses the
      translated Era name if Japanese Imperial Calendar is used, so the Host locale
      provider should do the same.
       
      Host Locale Provider is a new function of JDK 8, and supports only Windows
      Vista onwards. The function retrieves the OS's locale definitions. Era name
      is one of them.
       
      Also note that if the locale provider is "JRE", the Era name is displayed
      correctly in Japanese.
       
      -------------------------------------------------------------------------------------------------------------------------------------------
      2014/09/15

      This also happens in all the other calendar fields including month, weekday and am pm marker.

      Attached is the test log. The pattern and symbols are correct. Only calendar fields are not localized when locale provider is HOST.

      - Windows' locale for formatting
      Japanese

      - Windows' locale for UI language
      Japanese. When the UI language is not Japanese but the format language is Japanese, the result is the same.

      - Windows' system locale
      Japanese for non-unicode application

      - Windows' Japanese calendar's language (English or Japanese)
      It should be Japanese. Please refer to the attached snapshot of windows control panel

      - Java runtime's locales (if any, e.g., -Duser.*).
      It's not specified. The locale was got from the windows. Locale.getDefault(Locale.Category.FORMAT) is used in the test.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                naoto Naoto Sato
                Reporter:
                asaha Abhijit Saha
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: