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

[Translator][fallback catalogues] fixed circular reference.#15527

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

@aitboudad
Copy link
Contributor

QA
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Fixed tickets~
Tests pass?yes
LicenseMIT

@kimausloos
Copy link

This fixes issue#15522

@aitboudadaitboudad changed the title[Translator][fallback catalogues] fixed circular reference.[WIP][Translator][fallback catalogues] fixed circular reference.Aug 17, 2015
@aitboudadaitboudadforce-pushed thetranslator_circular_reference branch fromea9c63d to79e29c1CompareSeptember 2, 2015 10:03
@aitboudadaitboudad changed the title[WIP][Translator][fallback catalogues] fixed circular reference.[Translator][fallback catalogues] fixed circular reference.Sep 2, 2015
@aitboudad
Copy link
ContributorAuthor

@symfony/deciders can someone review please :)

@stof
Copy link
Member

stof commentedSep 2, 2015

what happens if you definedarray('fr', 'en') as fallback locales and you load either fr or en as fallback locales. what would be the fallbacks for each of them ?

@aitboudad
Copy link
ContributorAuthor

@stof
fr -> en as fallback
en -> fr as fallback

@stof
Copy link
Member

stof commentedSep 2, 2015

well, this looks weird to me though, as the fr fallback of en will be different from the fr catalogue used anywhere else. But it is indeed one of the possible implementations. the other one could be to consider thaten does not fallback to anything here, as it is itself the last fallback locale.

Anyway it is a different topic (and a behavior change, so not for 2.3), so it should be discussed separately.

👍 for this
status: reviewed

@fabpot
Copy link
Member

Thank you@aitboudad.

@fabpotfabpot merged commit79e29c1 intosymfony:2.3Sep 2, 2015
fabpot added a commit that referenced this pull requestSep 2, 2015
…. (aitboudad)This PR was merged into the 2.3 branch.Discussion----------[Translator][fallback catalogues] fixed circular reference.| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Fixed tickets  | ~| Tests pass?   | yes| License       | MITCommits-------79e29c1 [Translator][fallback catalogues] fixed circular reference.
@aitboudadaitboudad deleted the translator_circular_reference branchSeptember 2, 2015 15:10
@c960657
Copy link
Contributor

I believe this caused a regression:#17596

fabpot added a commit that referenced this pull requestJan 31, 2016
… catalogue (c960657)This PR was merged into the 2.3 branch.Discussion----------[Translation] Add resources from fallback locale to parent catalogue| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -The resources representing a locale includes those of the fallback locale. However, `getCatalogue()->getResources()` only returns the resources belonging specifically to the selected locale.Example: The locale `en_GB` falls back to `en`. I use the locale `en_GB`. During development, when I modify the `en_GB` translation file, the changes appear instantly when reloading the page. If I modify the `en` translation file, I need to manually clear the cache in order for the new translation to appear.I believe this is a regression that was introduced in#15527.This patch is for the 2.3 branch. For 2.6 and later, the test can be updated to use the getCatalogue() method instead of using ReflectionProperty.Commits-------f7f82fa [Translation] Add resources from fallback locale
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

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@aitboudad@kimausloos@stof@fabpot@c960657@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp