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-11535 Fixes incorrect spacing in currency examples #3976

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

e-ikwut
Copy link
Contributor

@e-ikwut e-ikwut commented Aug 20, 2024

CLDR-11535

  • This PR completes the ticket.

ALLOW_MANY_COMMITS=true

Before:
image

After:
image

@e-ikwut
Copy link
Contributor Author

e-ikwut commented Aug 20, 2024

I plan to add examples for local currency back (in addition to EUR/USD).

@jira-pull-request-webhook
Copy link

Hooray! The files in the branch are the same across the force-push. 😃

~ Your Friendly Jira-GitHub PR Checker Bot

@macchiati
Copy link
Member

Looking good. You'll just need to add back the old examples.

NOTE: The background settings may be confusing; they are supposed to hide the stuff that isn't controlled by the pattern or entity. I will comment more on that in slack.

example = addExampleResult(formatNumber(df_usd, sampleAmount), example, showContexts);
example = addExampleResult(formatNumber(df_usd, -sampleAmount), example, showContexts);

DecimalFormat df = icuServiceBuilder.getCurrencyFormat(currency, "¤", numberSystem);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Passing "¤" is ugly but seems to work since it is not one of the characters that triggers space insertion

@srl295
Copy link
Member

srl295 commented Sep 3, 2024

  • can use the squash button to fix the commit messages. But, you will need to merge in from main to deal with conflicts. Write me on slack if you need help with these.

addExampleResult(
formatNumber(df, -sampleAmount).replace("¤", currencySymbol),
example,
showContexts);
Copy link
Member

Choose a reason for hiding this comment

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

Where do things stand with this draft PR? it adds more examples, using df_eur and df_usd...

@srl295 I see you made a more recent commit (91e1079) to this method: it returned String but is now void and ends with examples.add(example)

Emiyare also made a more recent commit (00e1fc2) inserting a few lines into this method. It looks like the old changes could be wrapped into the current code fairly easy but not just by rebasing...

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.

4 participants