We're updating the issue view to help you get more done. 

Define parentLocale algorithmically for scripts

Description

Deleted Component: xxx-test

I think we should define in LDML, that for all locales "xx_Yyyy":

  • if xx_Yyyy is the default content, the parent is xx.

  • if not, the parent is root.

Then the current line in supplemental data is simply an expression of that (limited to current locales):

<parentLocale parent="root" locales="az_Cyrl bs_Cyrl en_Dsrt ha_Arab mn_Mong pa_Arab shi_Latn sr_Latn uz_Arab uz_Latn vai_Latn zh_Hant"/>

And we should have the unittest that:

For every locale L in CLDR of the form xx_Yyyy:
L is in parentLocale[@locales=] iff and only if L is not in defaultContent[@locales=]

See also http://bugs.icu-project.org/trac/ticket/10004

Environment

None

xpath

None

locale

None

Status

Assignee

John Emmons

Reporter

Mark Davis

Labels

None

tracReporter

mark

tracOwner

emmons

tracResolution

fixed

tracStatus

closed

Reviewer

Mark Davis

phase

rc

tracCc

None

tracCreated

Mar 01, 2013, 12:28 PM

Fix versions

Priority

minor