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

[Translation] marked getFallbackLocales() as internal#28626

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:masterfromboscho87:deprication/getFallbackLocales
Oct 3, 2018
Merged

[Translation] marked getFallbackLocales() as internal#28626

fabpot merged 1 commit intosymfony:masterfromboscho87:deprication/getFallbackLocales
Oct 3, 2018

Conversation

@boscho87
Copy link
Contributor

@boscho87boscho87 commentedSep 27, 2018
edited by stof
Loading

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

Added the deprication trigger error function to getFallbackLocales in the Translation component.

(Its my first PR, please tell me if i need to change something)

Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

Thanks for starting this. Would you mind having a look at where this method is used in the code base and remove/replace them?


* 4.1.4 (2018-08-28)

* deprecation#28579[Translator] set the getFallbackLocales() method as deprecated (boscho87)

Choose a reason for hiding this comment

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

This file is autogenerated so all changes should be reverted. But the changelog in the component itself should be updated instead.

Copy link
Member

Choose a reason for hiding this comment

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

thus, a PR to master would not change the existing 4.1.4 release

Copy link
Member

@stofstof left a comment

Choose a reason for hiding this comment

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

The file mode change on the different php files must be reverted too.

If you are on Windows, here is the way to go:

# configure git to avoid doing such mess in the futuregit config --global core.fileModefalse# change the mode back for these filesgit update-index --chmod=-x path/to/file.ext

*/
publicfunctiongetFallbackLocales()
{
@trigger_error('getFallbackLocales() is deprecated since version 4.1 and will be removed in 5.0.',E_USER_DEPRECATED);
Copy link
Member

Choose a reason for hiding this comment

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

deprecation is in 4.2, not in 4.1. We cannot deprecate it in 4.1 as it is already released since 4 months.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@stof tahnk you for your effort to teaching me! (i will work on this tomorrow 👍 )

@boscho87
Copy link
ContributorAuthor

@nicolas-grekas i do not find any usages...
@stof i changed the files (i use linux not Windows)

@nicolas-grekas
Copy link
Member

nicolas-grekas commentedSep 29, 2018
edited
Loading

Runninggrep getFallbackLocales src/ -rl on the repository spots the usages, that's where we should start.
On Linux, you should usechmod 644 with the name of each file (honestly, I don't know how you ended up changing the mode of these files, maybe some unusual configuration like@stof hinted about?)

@boscho87
Copy link
ContributorAuthor

Idk i never before had such problems with changing file permisssions

* feature#25605[PropertyInfo] Added support for extracting type from constructor (lyrixx)
* feature#24763[Process] Allow writing portable "prepared" command lines (Simperfit)
* feature#25218[Serializer] add a constructorarguement to return csv always as collection (Simperfit)
* feature#25218[Serializer] add a constructorargument to return csv always as collection (Simperfit)
Copy link
Member

Choose a reason for hiding this comment

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

The changes in this file should be reverted as it is auto-generated.

@boscho87boscho87 changed the titleadded deprication to getFallbackLocalesadded deprecation to getFallbackLocalesSep 30, 2018
@boscho87
Copy link
ContributorAuthor

Maybe i should not have started this PR... im a bit confused what is need to be done exactly..

e.ghttps://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php#L321 here ... should this whole method all so be removed and all the stuff who uses tha catalouges toohttps://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php#L200

@nicolas-grekas
Copy link
Member

I think there is an easy way to finish this PR, which is reverting the deprecation and add@internal since Symfony 4.2 on the method instead. This would provide the same.

@nicolas-grekasnicolas-grekas changed the titleadded deprecation to getFallbackLocales[Translation] marked getFallbackLocales() as internalOct 2, 2018
@fabpot
Copy link
Member

Thank you@boscho87.

@fabpotfabpot merged commit9d67a68 intosymfony:masterOct 3, 2018
fabpot added a commit that referenced this pull requestOct 3, 2018
…(boscho87)This PR was merged into the 4.2-dev branch.Discussion----------[Translation] marked getFallbackLocales() as internal| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets |#28579| License       | MIT| Doc PR        |Added the deprication trigger error function to getFallbackLocales in the Translation component.(Its my first PR, please tell me if i need to change something)Commits-------9d67a68 [Translation] marked getFallbackLocales() as internal
@boscho87
Copy link
ContributorAuthor

boscho87 commentedOct 3, 2018
edited
Loading

@fabpot@nicolas-grekas
Thanks for support

Was a small one but my first

Hope i can do „bigger things“ in the future

@boscho87boscho87 deleted the deprication/getFallbackLocales branchOctober 4, 2018 13:10
@nicolas-grekasnicolas-grekas modified the milestones:next,4.2Nov 1, 2018
@fabpotfabpot mentioned this pull requestNov 3, 2018
@fabpotfabpot mentioned this pull requestNov 3, 2018
fabpot added a commit that referenced this pull requestFeb 28, 2019
This PR was merged into the 4.2 branch.Discussion----------Drop spurious execution bit| Q             | A| ------------- | ---| Branch?       | 4.2 for bug fixes| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | none| License       | MIT| Doc PR        | noneThe execution bit seems to have been added by mistake in#28626.Commits-------93dab5c Drop spurious execution bit
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof requested changes

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

5 participants

@boscho87@nicolas-grekas@fabpot@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp