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-17812 v46 vxml: Add {0} for de speed-light-speed one, fix error wording in TestCheckCLDR/TestPlaceholders #3887

Conversation

pedberg-icu
Copy link
Contributor

@pedberg-icu pedberg-icu commented Jul 18, 2024

CLDR-17812

  • This PR completes the ticket.

merge into #3880

de added unit data for speed-light-speed in which the "one" case has no placeholder; per discussion that reflects a misunderstanding of how this data is intended to be used, so add a placeholder so tests pass (the data will be deleted soon anyway). Also fix the wording of an error message in TestCheckCLDR/TestPlaceholders.

ALLOW_MANY_COMMITS=true

@pedberg-icu pedberg-icu self-assigned this Jul 18, 2024
Copy link
Member

@macchiati macchiati left a comment

Choose a reason for hiding this comment

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

Thanks for taking this. I think the solution is a bit different.

The LOCALE_DEPENDENT path means that there is an extra test on the locale's plural rules to make sure that it behaves like Arabic (and other languages); that is, where a particular plural form is unique and therefore does not need a placeholder. For example, "1 book" in Arabic is just "كتاب".

So for this case, the error message is misleading, and the German should be fixed to prefix the values with
"{0} "

@pedberg-icu
Copy link
Contributor Author

pedberg-icu commented Jul 18, 2024

Thanks for taking this. I think the solution is a bit different.
...
So for this case, the error message is misleading, and the German should be fixed to prefix the values with "{0} "

@macchiati Hmm. What German currently has is

  • one: Lichtgeschwindigkeit = Speed of light
  • other: {0}-fache Lichtgeschwindigkeit = {0} times the speed of light

That seems very sensible to me. Saying "1 times the speed of light" is certainly awkward in English and I would think in German too. The particle is traveling at lightspeed, or the particle is traveling at 0.3 times the speed of light.

Here the particular plural form for 1 is unique, for this unit.

In any case the test was bad because if there was no placeholder it was failing before even checking whether the status was LOCALE_DEPENDENT. We did not get an error for Arabic because the cases for the test currently only used en and de.

@macchiati
Copy link
Member

I think there are significant issues with the data for a number of locales (will outline in email), so we probably want to retract the data for light-speed across locales. However, I suggest that we have a quick fix to the data and merge it into main before retracting so that we have a copy we can return to as needed.

So the quick fix I'm proposing is to add {0} before Lichtgeschwindigkeit

@pedberg-icu
Copy link
Contributor Author

So the quick fix I'm proposing is to add {0} before Lichtgeschwindigkeit

Literally just "{0}" before, or "{0}-fache" before as with the other case?

@macchiati
Copy link
Member

macchiati commented Jul 19, 2024 via email

@pedberg-icu pedberg-icu force-pushed the CLDR-17812-Fix-TestPlaceholders-for-LOCALE_DEPENDENT-missing-placeholder branch from 56eb27b to 1582f91 Compare July 19, 2024 02:05
@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

@pedberg-icu pedberg-icu changed the title CLDR-17812 v46 vxml: Fix TestCheckCLDR/TestPlaceholders, missing placeholder is OK for LOCALE_DEPENDENT CLDR-17812 v46 vxml: Add {0} for de speed-light-speed one, fix error wording in TestCheckCLDR/TestPlaceholders Jul 19, 2024
@pedberg-icu
Copy link
Contributor Author

@macchiati OK I think I fixed as requested, PTAL. The error message wording was still backwards, needed fixing (see the previous error message by viewing more context above).

@srl295 srl295 merged commit 5f124f6 into unicode-org:brs/v46vxml Jul 19, 2024
7 of 9 checks passed
srl295 added a commit that referenced this pull request Jul 20, 2024
32eea30 CLDR-17812 move to -z FINAL_TESTING (#3890)
b9780d0 CLDR-17812 yo_BJ: regen from yo (#3892)
c7b9d67 CLDR-17812 blo: drop incomplete groups (#3891)
9f3f4d8 CLDR-17812 v46 vxml fixes for ddls (#3889)
587bde6 CLDR-17812 v46 vxml: Update TestExampleGenerator/TestUnicodeSetExamples to match hi change in #3883 (#3888)
5f124f6 CLDR-17812 v46 vxml: Add {0} for de speed-light-speed one, fix error wording in TestCheckCLDR/TestPlaceholders (#3887)
dec0953 CLDR-17812 v46 vxml: update locale for TestAliases/testCountBase (#3886)
9d5d8a8 CLDR-17812 v46 vxml: annotations: ff: reinstate empty file (#3882)
e11c389 CLDR-17812 v46 vxml: Regenerate personName test data (#3885)
93ab67c CLDR-17812 v46 vxml: update exemplars to match vetter input (#3883)
2575193 CLDR-17812 v46 vxml: update testdata to match vetter input (#3884)
a51bdf0 CLDR-17812 ii: drop yiii numbering system (#3881)
ee497ab CLDR-17812 Generate VXML (#3879)

Co-authored-by: Steven R. Loomis <[email protected]>
Co-authored-by: Peter Edberg <[email protected]>
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