8000 [Intl] nl language can be represented as dut and nld · Issue #50142 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Intl] nl language can be represented as dut and nld #50142

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

Closed
oleg-andreyev opened this issue Apr 24, 2023 · 4 comments · Fixed by #50943
Closed

[Intl] nl language can be represented as dut and nld #50142

oleg-andreyev opened this issue Apr 24, 2023 · 4 comments · Fixed by #50943

Comments

@oleg-andreyev
Copy link
Contributor

Symfony version(s) affected

6.1.4

Description

Found an issue with ISO-3 alias

ER:
ISO-3 dut
ISO-2 nl

AR:
Couldn't read the indices [Alpha3ToAlpha2][dut] for the locale "meta"

https://www.loc.gov/standards/iso639-2/php/langcodes-keyword.php?SearchTerm=dut&SearchType=ALL
https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes

How to reproduce

  1. install symfony/intl
Languages::getAlpha2Code('dut')

Possible Solution

No response

Additional Context

No response

@ro0NL
Copy link
Contributor
ro0NL commented Apr 24, 2023

the reverse mapping needs to be preserved in

'Alpha3ToAlpha2' => $this->generateAlpha3ToAlpha2Mapping($metadataBundle),

@oleg-andreyev
Copy link
Contributor Author

recently found one more case

Couldn't read the indices [Alpha3ToAlpha2][fre] for the locale "meta"

https://www.loc.gov/standards/iso639-2/php/English_list.php

and fre stand for French same as fra

@oleg-andreyev
Copy link
Contributor Author

nicolas-grekas added a commit that referenced this issue Jul 13, 2023
…andreyev)

This PR was merged into the 5.4 branch.

Discussion
----------

[Intl] Taking into account bibliographic + overlong

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #50142
| License       | MIT
| Doc PR        | -

When building Alpha3 and aliases take into account `bibliographic` type.

Commits
-------

b5c8489 update Intl component to take into account B-variant when converting Alpha3 to Alpha2. fixing issue with Darwin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
0