[Bug 1544104] [NEW] Locales available through the API are not equal to the ones in the Struts UI

Public bug reported:

The uiLocale values that are returned from the API and are used for the
selection box for the "new" translation dialog has less locales than the
dropdown in the struts module.

The selectbox in the struts module has 36 languages while the API
endpoint just returns 24 languages. I would expect the API endpoint to
return the same languages?

API Options
https://play.dhis2.org/demo/api/locales/ui.json

Version:
2.22
Build revision:
21811

** Affects: dhis2
     Importance: Undecided
         Status: New

** Tags: api

** Attachment added: "Screen Shot 2016-02-10 at 16.14.06.png"
   https://bugs.launchpad.net/bugs/1544104/+attachment/4568557/+files/Screen%20Shot%202016-02-10%20at%2016.14.06.png

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1544104

Title:
  Locales available through the API are not equal to the ones in the
  Struts UI

Status in DHIS:
  New

Bug description:
  The uiLocale values that are returned from the API and are used for
  the selection box for the "new" translation dialog has less locales
  than the dropdown in the struts module.

  The selectbox in the struts module has 36 languages while the API
  endpoint just returns 24 languages. I would expect the API endpoint to
  return the same languages?

  API Options
  https://play.dhis2.org/demo/api/locales/ui.json

  Version:
  2.22
  Build revision:
  21811

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1544104/+subscriptions

TranslateAction and LocaleCotnroller uses two different sources for
locale listing, one is using ResouceBundleManager and the other is using
LocaleUtils (which again uses commons locale).

I'm not entirely sure which one is correct, Lars would know more about
that.

** Changed in: dhis2
   Importance: Undecided => Low

** Changed in: dhis2
       Status: New => Confirmed

** Changed in: dhis2
     Assignee: (unassigned) => Lars Helge Øverland (larshelge)

** Changed in: dhis2
    Milestone: None => 2.23

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1544104

Title:
  Locales available through the API are not equal to the ones in the
  Struts UI

Status in DHIS:
  Confirmed

Bug description:
  The uiLocale values that are returned from the API and are used for
  the selection box for the "new" translation dialog has less locales
  than the dropdown in the struts module.

  The selectbox in the struts module has 36 languages while the API
  endpoint just returns 24 languages. I would expect the API endpoint to
  return the same languages?

  API Options
  https://play.dhis2.org/demo/api/locales/ui.json

  Version:
  2.22
  Build revision:
  21811

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1544104/+subscriptions

Marked invalid as the /api/locales/db exposes the correct locale list

** Changed in: dhis2
       Status: Confirmed => Invalid

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1544104

Title:
  Locales available through the API are not equal to the ones in the
  Struts UI

Status in DHIS:
  Invalid

Bug description:
  The uiLocale values that are returned from the API and are used for
  the selection box for the "new" translation dialog has less locales
  than the dropdown in the struts module.

  The selectbox in the struts module has 36 languages while the API
  endpoint just returns 24 languages. I would expect the API endpoint to
  return the same languages?

  API Options
  https://play.dhis2.org/demo/api/locales/ui.json

  Version:
  2.22
  Build revision:
  21811

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1544104/+subscriptions

** Changed in: dhis2
    Milestone: 2.23 => None

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1544104

Title:
  Locales available through the API are not equal to the ones in the
  Struts UI

Status in DHIS:
  Invalid

Bug description:
  The uiLocale values that are returned from the API and are used for
  the selection box for the "new" translation dialog has less locales
  than the dropdown in the struts module.

  The selectbox in the struts module has 36 languages while the API
  endpoint just returns 24 languages. I would expect the API endpoint to
  return the same languages?

  API Options
  https://play.dhis2.org/demo/api/locales/ui.json

  Version:
  2.22
  Build revision:
  21811

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1544104/+subscriptions

** Changed in: dhis2
     Assignee: Lars Helge Øverland (larshelge) => (unassigned)

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1544104

Title:
  Locales available through the API are not equal to the ones in the
  Struts UI

Status in DHIS:
  Invalid

Bug description:
  The uiLocale values that are returned from the API and are used for
  the selection box for the "new" translation dialog has less locales
  than the dropdown in the struts module.

  The selectbox in the struts module has 36 languages while the API
  endpoint just returns 24 languages. I would expect the API endpoint to
  return the same languages?

  API Options
  https://play.dhis2.org/demo/api/locales/ui.json

  Version:
  2.22
  Build revision:
  21811

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1544104/+subscriptions