Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update translator fallback example to include ICU parents#10122

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@thewilkybarkid
Copy link
Contributor

Changes the example to showsymfony/symfony#28070.

@javiereguiluzjaviereguiluz added Translation Waiting Code MergeDocs for features pending to be merged labelsJul 27, 2018
symfony-splitter pushed a commit to symfony/translation that referenced this pull requestAug 28, 2018
…s (thewilkybarkid)This PR was squashed before being merged into the 4.2-dev branch (closes #28070).Discussion----------[Translator] Use ICU parent locales as fallback locales| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | #12319| License       | MIT| Doc PR        |symfony/symfony-docs#10122Currently the `Translator` fall backs based on the locale separator (eg `es_AR` to `es`), but the ICU data contains parent locales (eg `es_AR` is a child of `es_419`, as is `es_BO`, `es_EC` etc).This makes use of the ICU data to add add in these fallbacks. This means the specific locales can be used, but the translations can stored in these groupings (eg `es_419` for Latin American Spanish), as well as adding other sensible fallbacks (eg Cape Verdean Portuguese to `pt_PT`).Commits-------e0f402fc29 [Translator] Use ICU parent locales as fallback locales
symfony-splitter pushed a commit to symfony/intl that referenced this pull requestAug 28, 2018
…s (thewilkybarkid)This PR was squashed before being merged into the 4.2-dev branch (closes #28070).Discussion----------[Translator] Use ICU parent locales as fallback locales| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | #12319| License       | MIT| Doc PR        |symfony/symfony-docs#10122Currently the `Translator` fall backs based on the locale separator (eg `es_AR` to `es`), but the ICU data contains parent locales (eg `es_AR` is a child of `es_419`, as is `es_BO`, `es_EC` etc).This makes use of the ICU data to add add in these fallbacks. This means the specific locales can be used, but the translations can stored in these groupings (eg `es_419` for Latin American Spanish), as well as adding other sensible fallbacks (eg Cape Verdean Portuguese to `pt_PT`).Commits-------e0f402fc29 [Translator] Use ICU parent locales as fallback locales
fabpot added a commit to symfony/symfony that referenced this pull requestAug 28, 2018
…s (thewilkybarkid)This PR was squashed before being merged into the 4.2-dev branch (closes#28070).Discussion----------[Translator] Use ICU parent locales as fallback locales| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#12319| License       | MIT| Doc PR        |symfony/symfony-docs#10122Currently the `Translator` fall backs based on the locale separator (eg `es_AR` to `es`), but the ICU data contains parent locales (eg `es_AR` is a child of `es_419`, as is `es_BO`, `es_EC` etc).This makes use of the ICU data to add add in these fallbacks. This means the specific locales can be used, but the translations can stored in these groupings (eg `es_419` for Latin American Spanish), as well as adding other sensible fallbacks (eg Cape Verdean Portuguese to `pt_PT`).Commits-------e0f402f [Translator] Use ICU parent locales as fallback locales
@javiereguiluzjaviereguiluz added Status: Reviewed and removed Status: Needs Review Waiting Code MergeDocs for features pending to be merged labelsSep 4, 2018
@javiereguiluzjaviereguiluz added this to the4.2 milestoneSep 4, 2018
@javiereguiluz
Copy link
Member

javiereguiluz commentedSep 4, 2018
edited
Loading

@thewilkybarkid a very nice feature! Thanks for contributing it, including the doc update!

@javiereguiluzjaviereguiluz merged commit7ccf603 intosymfony:masterSep 4, 2018
javiereguiluz added a commit that referenced this pull requestSep 4, 2018
…s (thewilkybarkid, javiereguiluz)This PR was merged into the master branch.Discussion----------Update translator fallback example to include ICU parentsChanges the example to showsymfony/symfony#28070.Commits-------7ccf603 Reworded and added the versionadded directive54631df Update translator fallback example to include ICU parents
@thewilkybarkidthewilkybarkid deleted the icu-parent-locales branchSeptember 4, 2018 13:51
SerhiyMytrovtsiy added a commit to SerhiyMytrovtsiy/translation that referenced this pull requestOct 19, 2022
…s (thewilkybarkid)This PR was squashed before being merged into the 4.2-dev branch (closes #28070).Discussion----------[Translator] Use ICU parent locales as fallback locales| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | #12319| License       | MIT| Doc PR        |symfony/symfony-docs#10122Currently the `Translator` fall backs based on the locale separator (eg `es_AR` to `es`), but the ICU data contains parent locales (eg `es_AR` is a child of `es_419`, as is `es_BO`, `es_EC` etc).This makes use of the ICU data to add add in these fallbacks. This means the specific locales can be used, but the translations can stored in these groupings (eg `es_419` for Latin American Spanish), as well as adding other sensible fallbacks (eg Cape Verdean Portuguese to `pt_PT`).Commits-------e0f402fc29 [Translator] Use ICU parent locales as fallback locales
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

3 participants

@thewilkybarkid@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp