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

[Intl] Cleanup#31366

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:3.4fromro0NL:intl-cleanup
May 7, 2019
Merged

[Intl] Cleanup#31366

fabpot merged 1 commit intosymfony:3.4fromro0NL:intl-cleanup
May 7, 2019

Conversation

@ro0NL
Copy link
Contributor

@ro0NLro0NL commentedMay 2, 2019
edited
Loading

QA
Branch?3.4
Bug fix?no
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#...
LicenseMIT
Doc PRsymfony/symfony-docs#...

cleanup of#31365 for 3.4 + some other stuff to keep in sync across branches

'XSU' =>true,// Sucre
'XDR' =>true,// Special Drawing Rights
'XTS' =>true,// Testing Currency Code
'XXX' =>true,// Unknown Currency
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure what's the point of this. Constants were self explanatory, now we need a comment.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

maintaining the consts is an extra task, not worth it IMHO. i didnt follow it for languages also.

feel free to ignore :) but it reduces noise and makes adding entries more straightforward (the consts are only used here; it's not real API needed)


useSymfony\Component\Intl\Data\Bundle\Reader\BundleEntryReaderInterface;
useSymfony\Component\Intl\Exception\MissingResourceException;
useSymfony\Component\Intl\Locale;
Copy link
Contributor

Choose a reason for hiding this comment

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

Erm... are you sure about this?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

yep :)

* @param string $displayLocale Optional. The locale to return the result in
* Defaults to {@link \Locale::getDefault()}.

updated as such below

it's a tiny improvement, but worth clarifying IMHO to rely on the root\Locale (either the real one, or theIntl\Locale\Locale stub.

Intl\Locale extends from\Locale and doesnt own the default, only the default fallback.

This internal, first citizent,Intl\Locale is super confusing, and is really aLocaleFallback util

@fabpot
Copy link
Member

@jakzal Are you ok to merge this one?

@nicolas-grekasnicolas-grekas added this to the3.4 milestoneMay 5, 2019
@ro0NL
Copy link
ContributorAuthor

the sole purpose of the PR is to reduce merge conflicts, if it doesnt matter much we can close (but in master /#31365 we take a different apprach, as im really skeptical about maintaining the lists of consts :D)

@fabpot
Copy link
Member

Thank you@ro0NL.

jakzal reacted with thumbs up emoji

@fabpotfabpot merged commit70a941e intosymfony:3.4May 7, 2019
fabpot added a commit that referenced this pull requestMay 7, 2019
This PR was merged into the 3.4 branch.Discussion----------[Intl] Cleanup| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | no| New feature?  | no| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->cleanup of#31365 for 3.4 + some other stuff to keep in sync across branchesCommits-------70a941e [Intl] Cleanup
@ro0NLro0NL deleted the intl-cleanup branchMay 7, 2019 06:36
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@jakzaljakzaljakzal left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

5 participants

@ro0NL@fabpot@jakzal@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp