Skip to content
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-17544 In en, remove yMd in chinese calendar availableFormats #3696

Conversation

macchiati
Copy link
Member

CLDR-17544

This removes a value from root that isn't really needed, and fixes the example cited in the ticket.

It also adds an option to SearchCLDR to locate these kinds of issues, but doesn't address them all.
For that I'll clone the ticket.

  • This PR completes the ticket.

ALLOW_MANY_COMMITS=true

pedberg-icu
pedberg-icu previously approved these changes May 7, 2024
@macchiati
Copy link
Member Author

Please review

@macchiati macchiati requested a review from stenshamn May 8, 2024 22:27
Copy link
Member

@srl295 srl295 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM though suggestions for improvement

Comment on lines +309 to 311
if (path.contains("yMd") && path.contains("chinese")) {
int debug = 0;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (path.contains("yMd") && path.contains("chinese")) {
int debug = 0;
}

you should be able to do these with a conditional breakpoint, anyway

if (rootUncovered) {
if (stringValue != null) {
// Record any cases where there are non-null, non-inherited values
if (!stringValue.equals("↑↑↑")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (!stringValue.equals("↑↑↑")) {
if (!stringValue.equals(CldrUtility.INHERITANCE_MARKER)) {

for (Iterator<String> it = file.iterator(); it.hasNext(); ) {
String path = it.next();
if (extraPaths.contains(path)) {
if (isExemptLocale && path.equals(exemptPathIfLocale)) {
logKnownIssue("CLDR-17544", "Can't reproduce locally");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ the message isn't clear as to what's happening.

@macchiati macchiati merged commit ee35e91 into unicode-org:main May 8, 2024
10 checks passed
@macchiati macchiati deleted the CLDR-17544-In-en,-remove-yMd-in-chinese-availableFormats branch May 8, 2024 23:46
@macchiati
Copy link
Member Author

I'll make a followup PR with the tool improvements, thanks.

Comment on lines +142 to 143
logKnownIssue("CLDR-17544", "Can't reproduce locally");
continue;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Post script: This should have been if(logKnownIssue(…)) continue; - only continue if logKnownIssue returns true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants