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] Set sources when extracting strings from php files#31249

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:masterfromStadly:extract-sources-php
May 7, 2019
Merged

[Translator] Set sources when extracting strings from php files#31249

fabpot merged 1 commit intosymfony:masterfromStadly:extract-sources-php
May 7, 2019

Conversation

@Stadly
Copy link
Contributor

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

Set metadata about filenames and line numbers when extracting translatable strings from php files. This PR complements#30909 and#31248, as those PRs implement support for dumping the filenames and line numbers to Po and Qt file formats.

@Stadly
Copy link
ContributorAuthor

I don't understand why the test is failing on PHP7.3 I've tested with PHP7.3 locally, and it works fine. Can it have something to do withdeps=low?

@nicolas-grekasnicolas-grekas added this to thenext milestoneApr 26, 2019
@Stadly
Copy link
ContributorAuthor

I don't think the failing build has anything to do with this PR.

@fabpot
Copy link
Member

@Stadly I see that yo merge a branch here. Can you rebase to get rid of the merge commit?

@Stadly
Copy link
ContributorAuthor

Haha. I'm messing up everything. I'll try to fix it :)

@fabpot
Copy link
Member

One last question about this PR: we set the filename as an absolute path. Is it useful? Wouldn't it be "better" to use a relative path? I'm not sure what the spec says about this.

@Stadly
Copy link
ContributorAuthor

The path used when extracting is the one set as source, so whether it is absolute or relative depends on the user.extract(__DIR__.'/../src/') will give absolute paths, whileextract('../src/') will give relative paths.

@Stadly
Copy link
ContributorAuthor

Should I add a test using relative paths?

@fabpot
Copy link
Member

Thank you@Stadly.

@fabpotfabpot merged commitf05d4e4 intosymfony:masterMay 7, 2019
fabpot added a commit that referenced this pull requestMay 7, 2019
…php files (Stadly)This PR was squashed before being merged into the 4.3-dev branch (closes#31249).Discussion----------[Translator] Set sources when extracting strings from php files| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |Set metadata about filenames and line numbers when extracting translatable strings from php files. This PR complements#30909 and#31248, as those PRs implement support for dumping the filenames and line numbers to Po and Qt file formats.Commits-------f05d4e4 [Translator] Set sources when extracting strings from php files
@StadlyStadly deleted the extract-sources-php branchMay 7, 2019 12:15
@fabpotfabpot mentioned this pull requestMay 9, 2019
@nicolas-grekasnicolas-grekas modified the milestones:next,4.4Oct 27, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@fabpotfabpotfabpot approved these changes

@dunglasdunglasAwaiting requested review from dunglas

@srozesrozeAwaiting requested review from sroze

@xabbuhxabbuhAwaiting requested review from xabbuh

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

4 participants

@Stadly@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp