-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLDR-11874 Test to verify Subdivisions vs Common #4349
CLDR-11874 Test to verify Subdivisions vs Common #4349
Conversation
The common/main is primary, so the json generation code should just skip paths in a common/subdivisions locale that have values in the corresponding common/main locale. |
The generation code just takes a CLDRFile, it would have to do some
acrobatics in order to pull from the other file. We don’t have any thing
that does that sort of loading.
It might be a lot simpler and better from a data perspective to copy from
common/main into subdivisions - would that work?
|
that would work. I commented yesterday in response to a slack question. Copying here:
|
New tool, CopyMainToSubdivisions - run it after other CLDRModify passes but before JSON generation New test in TestSubdivisions, with a logknownissue on CLDR-18296 for data that is missing from common/main
- update the approval status of items - copy items from common/main into subdivisions
@@ -421,7 +421,7 @@ CLDR data files are interpreted according to the LDML specification (http://unic | |||
<subdivision type="gbdur" draft="provisional">Durham-graafskap</subdivision> | |||
<subdivision type="gbedh" draft="provisional">Edinburg</subdivision> | |||
<subdivision type="gbels" draft="provisional">Buite-Hebride</subdivision> | |||
<subdivision type="gbeng" draft="provisional">Engeland</subdivision> | |||
<subdivision type="gbeng">Engeland</subdivision> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approval status copied from common/main (via survey) into subdivisions
@@ -1615,7 +1615,7 @@ CLDR data files are interpreted according to the LDML specification (http://unic | |||
<subdivision type="gbwkf" draft="provisional">cité de Wakefield</subdivision> | |||
<subdivision type="gbwll" draft="provisional">district métropolitain de Walsall</subdivision> | |||
<subdivision type="gbwln" draft="provisional">West Lothian</subdivision> | |||
<subdivision type="gbwls" draft="provisional">pays de Galles</subdivision> | |||
<subdivision type="gbwls">Pays de Galles</subdivision> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an actual change (and approval) from common/main
<subdivision type="gbeng">Ĩgratéra</subdivision> | ||
<subdivision type="gbsct">Enhkósija</subdivision> | ||
<subdivision type="gbwls">Vares</subdivision> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data in a new locale
with this change cldr json generation works properly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good.
One request: could you file a ticket to make CLDRFile.make be thread-safe, to avoid
synchronized (CLDRFile.class) {
mainF = mainFactory.make(loc, true);
subF = subFactory.make(par.getBaseName(), true);
}
I'm sure there are other places in the code that aren't as careful as you are!
Couldn't reproduce the issue now, i thought I had put a stack trace somewhere but can't find it. |
CLDR-11874
test to verify common/subdivisions vs common/main
tool to copy from common/main to common/subdivisions
logKnownIssue on CLDR-18296 for any data in common/subdivisions missing from common/main
This PR completes the ticket.
ALLOW_MANY_COMMITS=true