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

ICU-22726 Add new CLDR 45 currency code XCG also to gCurrencyList #2961

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

roubert
Copy link
Member

@roubert roubert commented Apr 12, 2024

@pedberg-icu This seems to have been forgotten in PR #2811.

Checklist
  • Required: Issue filed: https://unicode-org.atlassian.net/browse/ICU-22726
  • Required: The PR title must be prefixed with a JIRA Issue number.
  • Required: The PR description must include the link to the Jira Issue, for example by completing the URL in the first checklist item
  • Required: Each commit message must be prefixed with a JIRA Issue number.
  • Issue accepted (done by Technical Committee after discussion)
  • Tests included, if applicable
  • API docs and/or User Guide docs changed or added, if applicable

Copy link
Member

@markusicu markusicu left a comment

Choose a reason for hiding this comment

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

Thanks!!
@roubert @pedberg-icu @yumaoka do we need a similar change in Java?

@markusicu
Copy link
Member

do we need a similar change in Java?

Using GitHub repo search for the adjacent XDR:

Do we have instructions for how to add a currency code?
I found https://github.com/unicode-org/icu/blob/main/tools/currency/readme.txt but it refers to "ant", and it's not clear that the tool would update all of the relevant files.

Adding @dra8an FYI

@roubert
Copy link
Member Author

roubert commented Apr 12, 2024

Thanks!! @roubert @pedberg-icu @yumaoka do we need a similar change in Java?

I can't find any such hardcoded list of currencies in ICU4J.

@markusicu
Copy link
Member

do we need a similar change in Java?

Using GitHub repo search for the adjacent XDR:

Do we have instructions for how to add a currency code? I found https://github.com/unicode-org/icu/blob/main/tools/currency/readme.txt but it refers to "ant", and it's not clear that the tool would update all of the relevant files.

Adding @dra8an FYI

@roubert could you please add XCG to the two additional hardcoded lists that I found? Or else note why it doesn't belong there?

@dra8an @DraganBesevic @pedberg-icu please take a look at the questions here.

@markusicu
Copy link
Member

do we need a similar change in Java?

Using GitHub repo search for the adjacent XDR:

Do we have instructions for how to add a currency code? I found https://github.com/unicode-org/icu/blob/main/tools/currency/readme.txt but it refers to "ant", and it's not clear that the tool would update all of the relevant files.
Adding @dra8an FYI

@roubert could you please add XCG to the two additional hardcoded lists that I found? Or else note why it doesn't belong there?

Actually, looking at the list in measunit.cpp:

  • It's a list of measurement units, not just currencies. We may not want to insert a currency code manually, in case the array indexes are meaningful and need to be kept in sync with some other data that indexes into here.
  • Is there a tool or process, or docs, for how this list gets updated?
  • @younies @sffc @richgillam @pedberg-icu

And about NumericCodeData.java:

@dra8an @DraganBesevic @pedberg-icu please take a look at the questions here.

So... maybe we just claim that this PR is good enough for ICU 75 and merge it? @richgillam

@richgillam
Copy link
Contributor

@DraganBesevic wanted to ask @pedberg-icu , but if we can't raise him, we both say go for it.

@macchiati
Copy link
Member

macchiati commented Apr 15, 2024 via email

@markusicu markusicu merged commit d8ee684 into unicode-org:maint/maint-75 Apr 15, 2024
97 checks passed
@roubert roubert deleted the 22726-xcg branch April 16, 2024 14:00
@pedberg-icu
Copy link
Contributor

pedberg-icu commented Apr 17, 2024

@markusicu @roubert @richgillam @dra8an @DraganBesevic One problem is that the CLDR-ICU integration instructions say nothing about how to handle updating hard-coded lists in ICU such as for new currencies, and also for new language or territory codes especially if needed for newly-added locales. I have filed ICU-22741 to update the instructions to mention this (until these things become fully data-driven).

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.

6 participants