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

[#18637][TranslationDebug] workaround for getFallbackLocales.#20465

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
fabpot merged 1 commit intosymfony:2.7fromaitboudad:issue_18637
Nov 9, 2016

Conversation

@aitboudad
Copy link
Contributor

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#18637
LicenseMIT
Doc PR~

if (is_dir($path)) {
$loader->loadMessages($path,$fallbackCatalogue);
}
$fallbackLocales = [];
Copy link
Contributor

Choose a reason for hiding this comment

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

array()

}catch (\Throwable$e) {
}
}elseif ($translatorinstanceof Translator) {
$fallbackLocales =$translator->getFallbackLocales();
Copy link
Contributor

Choose a reason for hiding this comment

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

What about a new interface for this? Or at least actually define this method? Imo. we should not rely on the magic__call behavior of these translators.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

What about a new interface for this?

seems better!

Imo. we should not rely on the magic __call behavior of these translators.

right, It was added for BC and I think we should deprecate this behavior

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I defined this method for the moment

@Simperfit
Copy link
Contributor

Simperfit commentedNov 9, 2016
edited
Loading

@aitboudad since you introduced two new public method, could you please add tests for them ?

@fabpot
Copy link
Member

Thank you@aitboudad.

@fabpotfabpot merged commit31deea1 intosymfony:2.7Nov 9, 2016
fabpot added a commit that referenced this pull requestNov 9, 2016
…es. (aitboudad)This PR was merged into the 2.7 branch.Discussion----------[#18637][TranslationDebug] workaround for getFallbackLocales.| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#18637| License       | MIT| Doc PR        | ~Commits-------31deea1 [TranslationDebug] workaround for getFallbackLocales.
@aitboudadaitboudad deleted the issue_18637 branchNovember 10, 2016 07:34
This was referencedNov 17, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@ro0NLro0NLro0NL left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@aitboudad@Simperfit@fabpot@ro0NL@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp