Skip to content

[Intl] Blacklist invalid languages #28833

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

Merged
merged 1 commit into from
Oct 12, 2018
Merged

[Intl] Blacklist invalid languages #28833

merged 1 commit into from
Oct 12, 2018

Conversation

ro0NL
Copy link
Contributor

@ro0NL ro0NL commented Oct 12, 2018

Q A
Branch? master
Bug fix? yes?
New feature? yes?
BC breaks? no?
Deprecations? no
Tests pass? yes
Fixed tickets #...
License MIT
Doc PR symfony/symfony-docs#...

see https://en.wikipedia.org/wiki/ISO_639-3#Special_codes

@ro0NL
Copy link
Contributor Author

ro0NL commented Oct 12, 2018

i tend to add a changelog note and go with master.. let me know.

edit: done

@ro0NL
Copy link
Contributor Author

ro0NL commented Oct 12, 2018

for consistency, we could apply the same for scripts. E.g. Zzzz is an "unknown script" code... but i've never really worked with scripts, so i dont mind. But let me know :) i think it wouldnt hurt.

@fabpot
Copy link
Member

fabpot commented Oct 12, 2018

Thank you @ro0NL.

@fabpot fabpot merged commit 4f5404b into symfony:master Oct 12, 2018
fabpot added a commit that referenced this pull request Oct 12, 2018
This PR was merged into the 4.2-dev branch.

Discussion
----------

[Intl] Blacklist invalid languages

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes?
| New feature?  | yes?
| BC breaks?    | no?
| Deprecations? | no
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

see https://en.wikipedia.org/wiki/ISO_639-3#Special_codes

Commits
-------

4f5404b [Intl] Blacklist invalid languages
@ro0NL ro0NL deleted the language branch October 12, 2018 16:06
This was referenced Nov 3, 2018
fabpot added a commit that referenced this pull request Mar 17, 2019
This PR was merged into the 3.4 branch.

Discussion
----------

[Intl] Add compile binary

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no-ish
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Compile the Intl data by invoking a single command, and make it work out-of-the-box. (Split from #28831)

```bash
$ src/Symfony/Component/Intl/Resources/bin/compile
```

run in repository root because of

https://github.com/symfony/symfony/blob/b7e798ef745a09ca2e76fba4afad0a04fcbd9195/src/Symfony/Component/Intl/Data/Generator/LocaleDataGenerator.php#L141

3.4 is ok, 4.2 is not because of #28833 but new locales are introduced in https://github.com/symfony/symfony/pull/28977/files#diff-f52da32e1ee6b93598814090d0749aa6R1

So as long as 3.4 is supported, but branches above add filters etc. during generation we're risking this discrepancy. I suggest after merge in upper branches to re-run `compile` (potential for automating, but run if needed :))

Commits
-------

426b92f [Intl] Add compile binary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants