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

[FrameworkBundle][Translator] scan directories for translations sequentially#40116

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
nicolas-grekas merged 1 commit intosymfony:4.4fromxabbuh:issue-40014
Feb 7, 2021

Conversation

@xabbuh
Copy link
Member

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#40014
LicenseMIT
Doc PR

@xabbuhxabbuh added this to the4.4 milestoneFeb 6, 2021
@carsonbotcarsonbot changed the title[FrameworkBundle][Translator] scan directories for translations sequentially[FrameworkBundle] [Translator] scan directories for translations sequentiallyFeb 6, 2021
@xabbuhxabbuhforce-pushed theissue-40014 branch 2 times, most recently from05bce3a to29c971cCompareFebruary 6, 2021 12:43
jderusse
jderusse previously approved these changesFeb 6, 2021
@carsonbotcarsonbot changed the title[FrameworkBundle] [Translator] scan directories for translations sequentially[FrameworkBundle][Translator] scan directories for translations sequentiallyFeb 6, 2021
@jderussejderusse dismissed theirstale reviewFebruary 6, 2021 14:47

Could you please add a test?

->sortByName()
;
foreach ($finderas$file) {
$fileNameParts =explode('.',basename($file));
Copy link

Choose a reason for hiding this comment

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

Is there a reason for using basename over $file->getBasename()?

;
foreach ($finderas$file) {
$fileNameParts =explode('.',basename($file));
$locale =$fileNameParts[\count($fileNameParts) -2];
Copy link

Choose a reason for hiding this comment

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

Suggestion : Wouldn't $info->getBasename($info->getExtension())) give us the locale? Assuming the filer is only matching patterns such as 'ar.json'? I would remove the need for the explode and fileparts?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

That code was here before. I suggest not to change it as part of this bugfix.

nicolas-grekas reacted with thumbs up emoji
@xabbuh
Copy link
MemberAuthor

@jderusse test added

@nicolas-grekas
Copy link
Member

Thank you@xabbuh.

@nicolas-grekasnicolas-grekas merged commit00e3356 intosymfony:4.4Feb 7, 2021
@xabbuhxabbuh deleted the issue-40014 branchFebruary 7, 2021 19:17
This was referencedMar 4, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@jderussejderussejderusse approved these changes

+1 more reviewer

@rhehrhehrheh left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

7 participants

@xabbuh@nicolas-grekas@jderusse@mikaelcom@wouterj@rheh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp