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-17719 update v46 charts #3800

Merged
merged 6 commits into from
Jun 13, 2024

Conversation

macchiati
Copy link
Member

@macchiati macchiati commented Jun 12, 2024

CLDR-17719

I found that the coverage_goals.html chart was omitting Meta. I put in a fix so that it would be driven by the Organization.getTCOrgs().

I also generate a .tsv that reformats the Locales.txt data. The reformatted data sorts TC locales first, then others. It does not overwrite Locales.txt, but rather creates the .tsv with the staging charts.

The format looks like:

#Organization	;	Locale	;	Level	;	Locale Name

google	;	*	;	moderate	;	ALL
google	;	af	;	modern	;	Afrikaans
google	;	ak	;	moderate	;	Akan
google	;	am	;	modern	;	Amharic
google	;	ar	;	modern	;	Arabic
google	;	as	;	modern	;	Assamese
google	;	az	;	modern	;	Azeri
google	;	be	;	modern	;	Belarusian
google	;	bg	;	modern	;	Bulgarian
  • This PR completes the ticket.

ALLOW_MANY_COMMITS=true

@AEApple
Copy link
Contributor

AEApple commented Jun 12, 2024

re: Airbnb they are focusing on specific data types. Will it lead to any confusion if we include them?

srl295
srl295 previously approved these changes Jun 12, 2024
@macchiati
Copy link
Member Author

macchiati commented Jun 12, 2024 via email

@macchiati macchiati requested a review from srl295 June 12, 2024 18:44
srl295
srl295 previously approved these changes Jun 12, 2024
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.

OK for now but i have a uRL comment

.addColumn(
"Code",
"class='source'",
"<a href=\"http://www.unicode.org/cldr/data/common/main/{0}.xml\">{0}</a>",
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
"<a href=\"http://www.unicode.org/cldr/data/common/main/{0}.xml\">{0}</a>",
"<a href=\"https://www.unicode.org/cldr/data/common/main/{0}.xml\">{0}</a>",
  1. http should be https
  2. should use a CLDRURLS constant anyway
  3. this URL looks wrong and doesn't seem to work. were you wanting something such as https://github.com/unicode-org/cldr/blob/main/common/main/fr.xml etc?

@macchiati
Copy link
Member Author

macchiati commented Jun 12, 2024 via email

@macchiati
Copy link
Member Author

macchiati commented Jun 12, 2024

After making the fix you recommended, I searched for https://github.com/unicode-org/cldr and got the following hits in our source:

ConsoleCheckCLDR.java
2,010: "<a href='https://github.com/unicode-org/cldr/tree/main/common/main/"

CLDRModify.java
2,680: // https://github.com/unicode-org/cldr/pull/2659

GenerateTransformCharts.java
370: + "For the latest snapshot of the data files, see <a href='https://github.com/unicode-org/cldr/tree/main/common/transforms'>Transform XML Data</a>. "

ShowLanguages.java
1,404: "<a href=\"https://github.com/unicode-org/cldr/blob/main/common/main/{0}.xml\">{0}</a>",

ShowLocaleCoverage.java

70: "https://github.com/unicode-org/cldr-staging/blob/main/docs/charts/" 
CLDRURLS.java (2 matches)
13: public static final String CLDR_REPO_BASE = "https://github.com/unicode-org/cldr"; 
25: public static final String CLDR_REPO_ROOT = "https://github.com/unicode-org/cldr"; 

TestCheckCLDR.java
639: * https://github.com/unicode-org/cldr-staging/blob/main/births/41.0/fr.txt (for the current

NOTE

  1. CLDR_REPO_BASE is only used in DEFAULT_COMMIT_BASE = CLDR_REPO_BASE + "/commit/";
  2. CLDR_REPO_ROOT is only used in Chart.java.GITHUB_ROOT = CLDRURLS.CLDR_REPO_ROOT + "/blob/main/";
  3. It feels like it would be better to add a constant:
    CLDRURLS.CLDR_REPO_MAIN = CLDR_REPO_BASE + "/blob/main";
  4. Then fix the above to use one of the two CLDR_REPO_xxxx

What do you think?

@macchiati
Copy link
Member Author

FYI CLDR_REPO_ROOT and CLDR_REPO_BASE have the same definition currently

@srl295
Copy link
Member

srl295 commented Jun 12, 2024

@macchiati

CLDRURLS.CLDR_REPO_MAIN = CLDR_REPO_BASE + "/blob/main"

this is probably the best way to do it. Maybe include a trailing slash (/blob/main/) so you can do CLDRURLS.CLDR_REPO_MAIN + "common/main/fr.xml"

@macchiati
Copy link
Member Author

macchiati commented Jun 12, 2024 via email

@macchiati macchiati requested a review from srl295 June 12, 2024 23:39
@macchiati
Copy link
Member Author

This works now, after the change in constants that Steven noted. So it's ready to go.

@macchiati
Copy link
Member Author

Could someone approve this?

@macchiati macchiati merged commit 22afc9b into unicode-org:main Jun 13, 2024
10 checks passed
@macchiati macchiati deleted the CLDR-17719-update-v46-charts branch June 13, 2024 16:54
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