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

Add documentation about alpha3 methods#12105

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
OskarStark merged 1 commit intosymfony:4.4fromterjebraten-certua:new-alpha3-methods
Aug 15, 2019
Merged

Add documentation about alpha3 methods#12105

OskarStark merged 1 commit intosymfony:4.4fromterjebraten-certua:new-alpha3-methods
Aug 15, 2019

Conversation

@terjebraten-certua
Copy link
Contributor

@terjebraten-certuaterjebraten-certua commentedAug 6, 2019
edited
Loading

Replaces#12104

@OskarStarkOskarStark added Intl Waiting Code MergeDocs for features pending to be merged labelsAug 7, 2019
symfony-splitter pushed a commit to symfony/intl that referenced this pull requestAug 9, 2019
…braten-certua)This PR was merged into the 4.4 branch.Discussion----------[Intl] Support ISO 3166-1 Alpha-3 country codes| Q             | A| ------------- | ---| Branch?       | 4.4| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | #20313| Doc PR |symfony/symfony-docs#12105| License       | MITThis is a pre-requiste for fixing #20313 and only handles the changes to the INTL component.Commits-------848f60e905 Support ISO 3166-1 Alpha-3 country codes
fabpot added a commit to symfony/symfony that referenced this pull requestAug 9, 2019
…braten-certua)This PR was merged into the 4.4 branch.Discussion----------[Intl] Support ISO 3166-1 Alpha-3 country codes| Q             | A| ------------- | ---| Branch?       | 4.4| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#20313| Doc PR |symfony/symfony-docs#12105| License       | MITThis is a pre-requiste for fixing#20313 and only handles the changes to the INTL component.Commits-------848f60e Support ISO 3166-1 Alpha-3 country codes
@OskarStarkOskarStark removed the Waiting Code MergeDocs for features pending to be merged labelAug 14, 2019
@OskarStark
Copy link
Contributor

@ro0NL would you do me a favor and review this PR? Thank you 😃

@OskarStarkOskarStark added this to the4.4 milestoneAug 14, 2019
Copy link
Contributor

@ro0NLro0NL left a comment

Choose a reason for hiding this comment

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

😁

// => 'French'

If you want to you can also use the ISO 639-2 three-letter language codes instead of
the ISO 639-1 two-letter codes. (They are here called alpha3 codes.)
Copy link
Contributor

Choose a reason for hiding this comment

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

You can also use the ISO 639-2 three-letter language codes instead ofthe ISO 639-1 two-letter codes, respectively called alpha3 and alpha2 codes.


// Indexed with alpha-2
$countries = Countries::getNames();
// ('countryCode' => 'countryName')
Copy link
Contributor

Choose a reason for hiding this comment

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

perhaps mention "alpha2" here to reduce comments, e.g.// ('alpha2Code' => 'countryName')


// Indexed with alhpa-3
$countries = Countries::getAlpha3Names();
// ('countryCode' => 'countryName')
Copy link
Contributor

Choose a reason for hiding this comment

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

same// ('alpha3Code' => 'countryName')

$country = Countries::getName('GB', 'de');
// => 'Vereinigtes Königreich'

$country = Countries::getName('GBR', 'de');
Copy link
Contributor

Choose a reason for hiding this comment

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

getAlpha3Name

OskarStark reacted with thumbs up emoji
$isValidCountry = Countries::exists($countryCode);
$isValidCountry = Countries::exists($alpha2Code);

$isValidCountry = Countries::alpha3CodeExists($alpha2Code);
Copy link
Contributor

Choose a reason for hiding this comment

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

i would add a paragraph in between like languages does

Or if you have a alpha3 country code you want to check:    $isValidCountry = Countries::alpha3CodeExists($alpha3Code);


$isValidLanguage = Languages::exists($languageCode);

Or if you have a three-letter language code you want to check:
Copy link
Contributor

Choose a reason for hiding this comment

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

:: i believe (not a format expert here :D)

OskarStark reacted with thumbs up emoji
@OskarStark
Copy link
Contributor

OskarStark commentedAug 15, 2019
edited
Loading

It took time, but here we go, this is in now. Thank you very much Terje.

I made the requested changes while merging (b3d776d) 👍

@OskarStarkOskarStark merged commit5044b35 intosymfony:4.4Aug 15, 2019
OskarStark added a commit that referenced this pull requestAug 15, 2019
…rtua)This PR was merged into the 4.4 branch.Discussion----------Add documentation about alpha3 methodsReplaces#12104Commits-------5044b35 Add documentation about alpha3 methods
OskarStark added a commit that referenced this pull requestAug 15, 2019
OskarStark added a commit that referenced this pull requestAug 15, 2019
* 4.4:  Tweaks. refs#12105  Add documentation about alpha3 methods
@ro0NLro0NL mentioned this pull requestAug 15, 2019
OskarStark added a commit that referenced this pull requestAug 15, 2019
This PR was merged into the 4.4 branch.Discussion----------Update intl.rsttiny follow up of#12105cc@OskarStarkCommits-------d757a2d Update intl.rst
OskarStark added a commit that referenced this pull requestAug 15, 2019
This PR was squashed before being merged into the 4.3 branch (closes#12173).Discussion----------Mention ISO 639 for languageswe've added this in 4.4 (#12105), but languages in 4.3 already had (partial) alpha3 support.let me know if this is merged in 4.4 :) it needs some cleanup after.cc@OskarStarkCommits-------8ee8df7 Mention ISO 639 for languages
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@javiereguiluzjaviereguiluzAwaiting requested review from javiereguiluz

1 more reviewer

@ro0NLro0NLro0NL approved these changes

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.

4 participants

@terjebraten-certua@OskarStark@ro0NL@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp