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

Wrong translation for the month of May in ar_JO, ar_LB and ar_SY

    Details

      Backports

        Description

        Wrong translations of month name for Arabic locale in COMPAT (JRE) provider.

        Test:
        import java.util.Locale;
        import java.util.Date;
        import java.util.GregorianCalendar;
        import java.text.SimpleDateFormat;

        public class Test {
          public static void main(String[] args) {
            SimpleDateFormat sdf = new SimpleDateFormat("MMMM", new Locale("ar", "JO"));
            String d = sdf.format(new GregorianCalendar(2020, 4,1).getTime()); // 0-based
            System.out.println(d);
          }
        }

        Expected:
        Here is the complete list of wrong Arabic month names.
        (0 - Jan, 4 - May)

        ar_JO

        correct 4 : \u0623\u064A\u0627\u0631
        incorrect 4 : \u0646\u0648\u0627\u0631

        ar_LB

        correct 4 : \u0623\u064A\u0627\u0631
        incorrect 4 : \u0646\u0648\u0627\u0631

        ar_SY

        correct 4 : \u0623\u064A\u0627\u0631
        incorrect 4 : \u0646\u0648\u0627\u0631\u0627\u0646

        correct 5 : \u062D\u0632\u064A\u0631\u0627\u0646
        incorrect 5 : \u062D\u0632\u064A\u0631

        Please notice that the month of June has the wrong translation for June too.
        This was addressed in Java bug 4164160 which I previously linked here, but it
        was not fixed for ar_SY.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ljiang Leo Jiang
                  Reporter:
                  shadowbug Shadow Bug
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: