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

Added documentation for the Intl component#2312

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
weaverryan merged 4 commits intosymfony:masterfromwebmozart:intl
Apr 30, 2013

Conversation

webmozart
Copy link
Contributor

QA
Doc fix?no
New docs?yes (symfony/symfony#7386)
Applies to2.3
Fixed tickets-

NumberFormatter
~~~~~~~~~~~~~~~

Numbers can be formatted with the :phpclass:``NumberFormatter`` class.
Copy link
Member

Choose a reason for hiding this comment

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

it should be single backticks AFAIK

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Thanks, fixed

@webmozart
Copy link
ContributorAuthor

Does anyone know how to create alternate TOC titles for section headings? For example, I would like the heading

__construct($locale = $style = null, $pattern = null)

to appear as

__construct()

or

NumberFormatter::__construct()

in the TOC.

@webmozart
Copy link
ContributorAuthor

Or maybe it's indeed better to move information about which methods are supported to the API docs and only link there here?

* :phpfunction:`intl_get_error_code`
* :phpfunction:`intl_get_error_message`

If you don't use Composer but the Symfony ClassLoader component, you need to
Copy link
Member

Choose a reason for hiding this comment

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

It is maybe nice to add a link to the ClassLoader component here

@stof
Copy link
Member

@bschussek IMO, documenting all methods of the API should be left to the API doc (where you could document with more details what is supported by the stub implementation). The component doc should be about the way to use the component, not about all available methods

@webmozart
Copy link
ContributorAuthor

I integrated the suggested changes now. I hope this PR is now complete.

fabpot added a commit to symfony/symfony that referenced this pull requestApr 18, 2013
This PR was merged into the master branch.Discussion----------[Intl] Refactored Locale component into two new components Icu and Intl| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | yes| Deprecations? | yes| Tests pass?   | yes| Fixed tickets |#5279| License       | MIT| Doc PR        |symfony/symfony-docs#2312The Intl component is now a simple drop-in replacement layer for the C intl extension. Install it via Composer and have it available automatically if the intl extension is not available.Additionally, the component ships data from the ICU library which can be accessed through the methods:```phpuse Symfony\Component\Intl\Intl;Intl::getCurrencyBundle()->...Intl::getLanguageBundle()->...Intl::getLocaleBundle()->...Intl::getRegionBundle()->...```If the intl extension is installed, Composer will install the ICU data for the ICU version in the intl extension. If the intl extension is not installed, Composer will use stub ICU data for the latest ICU version (see `Intl::getStubIcuVersion()`).See the [README](/bschussek/symfony/blob/intl/src/Symfony/Component/Intl/README.md) for more information.Todo:- [x] finish the Intl README file- [x] update the Icu README file- [x] update the documentation- [x] make parameter `$locale` optional (default to `\Locale::getDefault()`) in resource bundle methods- [x] remove `(Icu)?Version::compare` calls in the tests- [x] solve deployment problem when trying to install incompatible symfony/icu version listed in composer.lockCreate the following branches in the [Icu component](https://github.com/symfony/Icu):- [x] 1.0.x- [x] 1.1.x- [x] 1.2.xCommits-------9118b4a [Locale] Removed "Stub" prefixes in Intl componentb4cccfd [Intl] Removed "Stub" prefix from stub classes60f31d1 [Intl] Improved inline documentationc2d37e6 [Intl] Improved error messages in the build scripts1249f01 [Intl] Added scripts to test the compatibility of various versions of symfony/icu with the ICU version installed on the system9dbafd7 [Intl] Split update-stubs.php script into two scripts to function with the changed Icu component versioninge2c11cb [Intl] Added a check for the ICU data version to IntlTestHelper to prevent the stub class tests from failing427d24a [Intl] Outsourced bundle reader creation to Icu component0160fd5 [Intl] Moved stub data to Icu component 1.0.xdbca3b7 [Intl] Added empty directory needed for the testsa717ce9 [Intl] Removed ICU version comparisons from the tests5d17de5 [Intl] Fixed version comparisons in the transformation rules470927d [Intl] Improved build scriptsaceb20d [Form] Improved tests to use the IntlTestHelper class3dd75ff [Locale] Improved tests to use the IntlTestHelper class03b78b0 [Validator] Improved tests to use the IntlTestHelper class9d9c389 [Intl] Simplified testsc55c4a2 [Intl] Only the StubNumberFormatterTest requires stub data17a480b [Intl] Added IntlTestHelper class for convenience1dcdcd3 [Locale] Fixed failing testsf6b75b9 [Intl] Changed composer.json to disallow future versions of the Icu component080c880 [Intl] Bumped the stub version to 50.1.2dd2d013 [Intl] Improved the bundle compilation processf47e60a [Intl] Fixed small bugs in the resource bundle transformation467cc93 [Intl] Fixed various problems in the resource compilation process4a5c453 [Intl] Moved the content of the README file to symfony/symfony-docs9899de7 [Intl] Updated the READMEbfec58a [Intl] Fixed flawed PHPDoc21323ba [Intl] Updated the README file209a9cb [Validator] Adapted to latest Intl changesf2a0aec [Form] Adapted to latest Intl changes0f6277f [Locale] Adapted to latest Intl changes2cd1be8 [Intl] Made the $locale parameter optional in the bundle interfacesb9e9cb2 [Intl] Added autoload.php which was ignored by .gitignore838798f [Intl] Removed method IntlTestCase::skipIfInsufficientIcuVersion()dde1d34 [Intl] Changed Intl::getIcuVersion() to return the stub version if the intl extension is not loaded99f6f8a [Form] Fixed failing tests5d0b849 Fixed PHPDocb60866c [Intl] Changed Intl::getStubIcuVersion() to Intl::getIcuStubVersion()b902b6b [Locale] Added default locale01d0ee8 [Validator] Changed component to use the Intl component0c1fe39 [Form] Changed component to use the Intl component5917a2e [Intl] Refactored Locale component into two new components Icu and Intl
fabpot added a commit to symfony/validator that referenced this pull requestApr 18, 2013
This PR was merged into the master branch.Discussion----------[Intl] Refactored Locale component into two new components Icu and Intl| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | yes| Deprecations? | yes| Tests pass?   | yes| Fixed tickets | #5279| License       | MIT| Doc PR        |symfony/symfony-docs#2312The Intl component is now a simple drop-in replacement layer for the C intl extension. Install it via Composer and have it available automatically if the intl extension is not available.Additionally, the component ships data from the ICU library which can be accessed through the methods:```phpuse Symfony\Component\Intl\Intl;Intl::getCurrencyBundle()->...Intl::getLanguageBundle()->...Intl::getLocaleBundle()->...Intl::getRegionBundle()->...```If the intl extension is installed, Composer will install the ICU data for the ICU version in the intl extension. If the intl extension is not installed, Composer will use stub ICU data for the latest ICU version (see `Intl::getStubIcuVersion()`).See the [README](/bschussek/symfony/blob/intl/src/Symfony/Component/Intl/README.md) for more information.Todo:- [x] finish the Intl README file- [x] update the Icu README file- [x] update the documentation- [x] make parameter `$locale` optional (default to `\Locale::getDefault()`) in resource bundle methods- [x] remove `(Icu)?Version::compare` calls in the tests- [x] solve deployment problem when trying to install incompatible symfony/icu version listed in composer.lockCreate the following branches in the [Icu component](https://github.com/symfony/Icu):- [x] 1.0.x- [x] 1.1.x- [x] 1.2.xCommits-------9118b4a [Locale] Removed "Stub" prefixes in Intl componentb4cccfd [Intl] Removed "Stub" prefix from stub classes60f31d1 [Intl] Improved inline documentationc2d37e6 [Intl] Improved error messages in the build scripts1249f01 [Intl] Added scripts to test the compatibility of various versions of symfony/icu with the ICU version installed on the system9dbafd7 [Intl] Split update-stubs.php script into two scripts to function with the changed Icu component versioninge2c11cb [Intl] Added a check for the ICU data version to IntlTestHelper to prevent the stub class tests from failing427d24a [Intl] Outsourced bundle reader creation to Icu component0160fd5 [Intl] Moved stub data to Icu component 1.0.xdbca3b7 [Intl] Added empty directory needed for the testsa717ce9 [Intl] Removed ICU version comparisons from the tests5d17de5 [Intl] Fixed version comparisons in the transformation rules470927d [Intl] Improved build scriptsaceb20d [Form] Improved tests to use the IntlTestHelper class3dd75ff [Locale] Improved tests to use the IntlTestHelper class03b78b0 [Validator] Improved tests to use the IntlTestHelper class9d9c389 [Intl] Simplified testsc55c4a2 [Intl] Only the StubNumberFormatterTest requires stub data17a480b [Intl] Added IntlTestHelper class for convenience1dcdcd3 [Locale] Fixed failing testsf6b75b9 [Intl] Changed composer.json to disallow future versions of the Icu component080c880 [Intl] Bumped the stub version to 50.1.2dd2d013 [Intl] Improved the bundle compilation processf47e60a [Intl] Fixed small bugs in the resource bundle transformation467cc93 [Intl] Fixed various problems in the resource compilation process4a5c453 [Intl] Moved the content of the README file to symfony/symfony-docs9899de7 [Intl] Updated the READMEbfec58a [Intl] Fixed flawed PHPDoc21323ba [Intl] Updated the README file209a9cb [Validator] Adapted to latest Intl changesf2a0aec [Form] Adapted to latest Intl changes0f6277f [Locale] Adapted to latest Intl changes2cd1be8 [Intl] Made the $locale parameter optional in the bundle interfacesb9e9cb2 [Intl] Added autoload.php which was ignored by .gitignore838798f [Intl] Removed method IntlTestCase::skipIfInsufficientIcuVersion()dde1d34 [Intl] Changed Intl::getIcuVersion() to return the stub version if the intl extension is not loaded99f6f8a [Form] Fixed failing tests5d0b849 Fixed PHPDocb60866c [Intl] Changed Intl::getStubIcuVersion() to Intl::getIcuStubVersion()b902b6b [Locale] Added default locale01d0ee8 [Validator] Changed component to use the Intl component0c1fe39 [Form] Changed component to use the Intl component5917a2e [Intl] Refactored Locale component into two new components Icu and Intl
fabpot added a commit to symfony/form that referenced this pull requestApr 18, 2013
This PR was merged into the master branch.Discussion----------[Intl] Refactored Locale component into two new components Icu and Intl| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | yes| Deprecations? | yes| Tests pass?   | yes| Fixed tickets | #5279| License       | MIT| Doc PR        |symfony/symfony-docs#2312The Intl component is now a simple drop-in replacement layer for the C intl extension. Install it via Composer and have it available automatically if the intl extension is not available.Additionally, the component ships data from the ICU library which can be accessed through the methods:```phpuse Symfony\Component\Intl\Intl;Intl::getCurrencyBundle()->...Intl::getLanguageBundle()->...Intl::getLocaleBundle()->...Intl::getRegionBundle()->...```If the intl extension is installed, Composer will install the ICU data for the ICU version in the intl extension. If the intl extension is not installed, Composer will use stub ICU data for the latest ICU version (see `Intl::getStubIcuVersion()`).See the [README](/bschussek/symfony/blob/intl/src/Symfony/Component/Intl/README.md) for more information.Todo:- [x] finish the Intl README file- [x] update the Icu README file- [x] update the documentation- [x] make parameter `$locale` optional (default to `\Locale::getDefault()`) in resource bundle methods- [x] remove `(Icu)?Version::compare` calls in the tests- [x] solve deployment problem when trying to install incompatible symfony/icu version listed in composer.lockCreate the following branches in the [Icu component](https://github.com/symfony/Icu):- [x] 1.0.x- [x] 1.1.x- [x] 1.2.xCommits-------9118b4a [Locale] Removed "Stub" prefixes in Intl componentb4cccfd [Intl] Removed "Stub" prefix from stub classes60f31d1 [Intl] Improved inline documentationc2d37e6 [Intl] Improved error messages in the build scripts1249f01 [Intl] Added scripts to test the compatibility of various versions of symfony/icu with the ICU version installed on the system9dbafd7 [Intl] Split update-stubs.php script into two scripts to function with the changed Icu component versioninge2c11cb [Intl] Added a check for the ICU data version to IntlTestHelper to prevent the stub class tests from failing427d24a [Intl] Outsourced bundle reader creation to Icu component0160fd5 [Intl] Moved stub data to Icu component 1.0.xdbca3b7 [Intl] Added empty directory needed for the testsa717ce9 [Intl] Removed ICU version comparisons from the tests5d17de5 [Intl] Fixed version comparisons in the transformation rules470927d [Intl] Improved build scriptsaceb20d [Form] Improved tests to use the IntlTestHelper class3dd75ff [Locale] Improved tests to use the IntlTestHelper class03b78b0 [Validator] Improved tests to use the IntlTestHelper class9d9c389 [Intl] Simplified testsc55c4a2 [Intl] Only the StubNumberFormatterTest requires stub data17a480b [Intl] Added IntlTestHelper class for convenience1dcdcd3 [Locale] Fixed failing testsf6b75b9 [Intl] Changed composer.json to disallow future versions of the Icu component080c880 [Intl] Bumped the stub version to 50.1.2dd2d013 [Intl] Improved the bundle compilation processf47e60a [Intl] Fixed small bugs in the resource bundle transformation467cc93 [Intl] Fixed various problems in the resource compilation process4a5c453 [Intl] Moved the content of the README file to symfony/symfony-docs9899de7 [Intl] Updated the READMEbfec58a [Intl] Fixed flawed PHPDoc21323ba [Intl] Updated the README file209a9cb [Validator] Adapted to latest Intl changesf2a0aec [Form] Adapted to latest Intl changes0f6277f [Locale] Adapted to latest Intl changes2cd1be8 [Intl] Made the $locale parameter optional in the bundle interfacesb9e9cb2 [Intl] Added autoload.php which was ignored by .gitignore838798f [Intl] Removed method IntlTestCase::skipIfInsufficientIcuVersion()dde1d34 [Intl] Changed Intl::getIcuVersion() to return the stub version if the intl extension is not loaded99f6f8a [Form] Fixed failing tests5d0b849 Fixed PHPDocb60866c [Intl] Changed Intl::getStubIcuVersion() to Intl::getIcuStubVersion()b902b6b [Locale] Added default locale01d0ee8 [Validator] Changed component to use the Intl component0c1fe39 [Form] Changed component to use the Intl component5917a2e [Intl] Refactored Locale component into two new components Icu and Intl
@webmozart
Copy link
ContributorAuthor

This can be merged.

@weaverryan
Copy link
Member

Hi Bernhard!

Before I merge this in, I have a few high-level questions.

  1. Are there any implications / BC breaks going from the Locale component to the intl component? I didn't notice anything in the UPGRADE docs, but it seems like there would be something that we'd want to highlight for users (e.g. "Before Symfony 2.3,Locale::getDisplayLanguages('fr'); was used. Now, use$countries = Intl::getRegionBundle()->getCountryNames();" <- that may not be a real example, but you get the picture).

  2. How about giving people information about the ICU stuff? Or is this something that we generally think will be entirely invisible to the user? Are there cases when you'll need to manually switch your ICU branch?

Thanks!

@wouterj
Copy link
Member

1 is fixed insymfony/symfony#7867

@webmozart
Copy link
ContributorAuthor

Thank you for the feedback@weaverryan!

As@wouterj mentioned, I fixed (1) in the symfony/symfony repository. (2) is fixed in the commit I just added to this PR. I hope this is better now! :)


The replacement layer is limited to the locale "en". If you want to use
other locales, you should `install the intl extension`_ instead.

Copy link
Member

Choose a reason for hiding this comment

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

You are missing a.. versionadded:: 2.3 directive

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

fixed

@weaverryanweaverryan merged commitcce4b51 intosymfony:masterApr 30, 2013
@weaverryan
Copy link
Member

@bschussek very very nice tweaks - you make things easy!

Merged with only minor changes at sha:019bed7 (but let me know if you see something you don't like).

Thanks!

@webmozart
Copy link
ContributorAuthor

Thank you for the tweaks@weaverryan! :) Being corrected by a native speaker is a great learning opportunity.

weaverryan added a commit that referenced this pull requestMay 28, 2013
fabpot added a commit to symfony/form that referenced this pull requestNov 25, 2013
This PR was merged into the master branch.Discussion----------[Intl] Refactored Locale component into two new components Icu and Intl| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | yes| Deprecations? | yes| Tests pass?   | yes| Fixed tickets | #5279| License       | MIT| Doc PR        |symfony/symfony-docs#2312The Intl component is now a simple drop-in replacement layer for the C intl extension. Install it via Composer and have it available automatically if the intl extension is not available.Additionally, the component ships data from the ICU library which can be accessed through the methods:```phpuse Symfony\Component\Intl\Intl;Intl::getCurrencyBundle()->...Intl::getLanguageBundle()->...Intl::getLocaleBundle()->...Intl::getRegionBundle()->...```If the intl extension is installed, Composer will install the ICU data for the ICU version in the intl extension. If the intl extension is not installed, Composer will use stub ICU data for the latest ICU version (see `Intl::getStubIcuVersion()`).See the [README](/bschussek/symfony/blob/intl/src/Symfony/Component/Intl/README.md) for more information.Todo:- [x] finish the Intl README file- [x] update the Icu README file- [x] update the documentation- [x] make parameter `$locale` optional (default to `\Locale::getDefault()`) in resource bundle methods- [x] remove `(Icu)?Version::compare` calls in the tests- [x] solve deployment problem when trying to install incompatible symfony/icu version listed in composer.lockCreate the following branches in the [Icu component](https://github.com/symfony/Icu):- [x] 1.0.x- [x] 1.1.x- [x] 1.2.xCommits-------9118b4a [Locale] Removed "Stub" prefixes in Intl componentb4cccfd [Intl] Removed "Stub" prefix from stub classes60f31d1 [Intl] Improved inline documentationc2d37e6 [Intl] Improved error messages in the build scripts1249f01 [Intl] Added scripts to test the compatibility of various versions of symfony/icu with the ICU version installed on the system9dbafd7 [Intl] Split update-stubs.php script into two scripts to function with the changed Icu component versioninge2c11cb [Intl] Added a check for the ICU data version to IntlTestHelper to prevent the stub class tests from failing427d24a [Intl] Outsourced bundle reader creation to Icu component0160fd5 [Intl] Moved stub data to Icu component 1.0.xdbca3b7 [Intl] Added empty directory needed for the testsa717ce9 [Intl] Removed ICU version comparisons from the tests5d17de5 [Intl] Fixed version comparisons in the transformation rules470927d [Intl] Improved build scriptsaceb20d [Form] Improved tests to use the IntlTestHelper class3dd75ff [Locale] Improved tests to use the IntlTestHelper class03b78b0 [Validator] Improved tests to use the IntlTestHelper class9d9c389 [Intl] Simplified testsc55c4a2 [Intl] Only the StubNumberFormatterTest requires stub data17a480b [Intl] Added IntlTestHelper class for convenience1dcdcd3 [Locale] Fixed failing testsf6b75b9 [Intl] Changed composer.json to disallow future versions of the Icu component080c880 [Intl] Bumped the stub version to 50.1.2dd2d013 [Intl] Improved the bundle compilation processf47e60a [Intl] Fixed small bugs in the resource bundle transformation467cc93 [Intl] Fixed various problems in the resource compilation process4a5c453 [Intl] Moved the content of the README file to symfony/symfony-docs9899de7 [Intl] Updated the READMEbfec58a [Intl] Fixed flawed PHPDoc21323ba [Intl] Updated the README file209a9cb [Validator] Adapted to latest Intl changesf2a0aec [Form] Adapted to latest Intl changes0f6277f [Locale] Adapted to latest Intl changes2cd1be8 [Intl] Made the $locale parameter optional in the bundle interfacesb9e9cb2 [Intl] Added autoload.php which was ignored by .gitignore838798f [Intl] Removed method IntlTestCase::skipIfInsufficientIcuVersion()dde1d34 [Intl] Changed Intl::getIcuVersion() to return the stub version if the intl extension is not loaded99f6f8a [Form] Fixed failing tests5d0b849 Fixed PHPDocb60866c [Intl] Changed Intl::getStubIcuVersion() to Intl::getIcuStubVersion()b902b6b [Locale] Added default locale01d0ee8 [Validator] Changed component to use the Intl component0c1fe39 [Form] Changed component to use the Intl component5917a2e [Intl] Refactored Locale component into two new components Icu and Intl
@webmozartwebmozart deleted the intl branchFebruary 27, 2014 13:55
fabpot added a commit to symfony/form that referenced this pull requestMay 23, 2014
This PR was merged into the master branch.Discussion----------[Intl] Refactored Locale component into two new components Icu and Intl| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | yes| Deprecations? | yes| Tests pass?   | yes| Fixed tickets | #5279| License       | MIT| Doc PR        |symfony/symfony-docs#2312The Intl component is now a simple drop-in replacement layer for the C intl extension. Install it via Composer and have it available automatically if the intl extension is not available.Additionally, the component ships data from the ICU library which can be accessed through the methods:```phpuse Symfony\Component\Intl\Intl;Intl::getCurrencyBundle()->...Intl::getLanguageBundle()->...Intl::getLocaleBundle()->...Intl::getRegionBundle()->...```If the intl extension is installed, Composer will install the ICU data for the ICU version in the intl extension. If the intl extension is not installed, Composer will use stub ICU data for the latest ICU version (see `Intl::getStubIcuVersion()`).See the [README](/bschussek/symfony/blob/intl/src/Symfony/Component/Intl/README.md) for more information.Todo:- [x] finish the Intl README file- [x] update the Icu README file- [x] update the documentation- [x] make parameter `$locale` optional (default to `\Locale::getDefault()`) in resource bundle methods- [x] remove `(Icu)?Version::compare` calls in the tests- [x] solve deployment problem when trying to install incompatible symfony/icu version listed in composer.lockCreate the following branches in the [Icu component](https://github.com/symfony/Icu):- [x] 1.0.x- [x] 1.1.x- [x] 1.2.xCommits-------9118b4a [Locale] Removed "Stub" prefixes in Intl componentb4cccfd [Intl] Removed "Stub" prefix from stub classes60f31d1 [Intl] Improved inline documentationc2d37e6 [Intl] Improved error messages in the build scripts1249f01 [Intl] Added scripts to test the compatibility of various versions of symfony/icu with the ICU version installed on the system9dbafd7 [Intl] Split update-stubs.php script into two scripts to function with the changed Icu component versioninge2c11cb [Intl] Added a check for the ICU data version to IntlTestHelper to prevent the stub class tests from failing427d24a [Intl] Outsourced bundle reader creation to Icu component0160fd5 [Intl] Moved stub data to Icu component 1.0.xdbca3b7 [Intl] Added empty directory needed for the testsa717ce9 [Intl] Removed ICU version comparisons from the tests5d17de5 [Intl] Fixed version comparisons in the transformation rules470927d [Intl] Improved build scriptsaceb20d [Form] Improved tests to use the IntlTestHelper class3dd75ff [Locale] Improved tests to use the IntlTestHelper class03b78b0 [Validator] Improved tests to use the IntlTestHelper class9d9c389 [Intl] Simplified testsc55c4a2 [Intl] Only the StubNumberFormatterTest requires stub data17a480b [Intl] Added IntlTestHelper class for convenience1dcdcd3 [Locale] Fixed failing testsf6b75b9 [Intl] Changed composer.json to disallow future versions of the Icu component080c880 [Intl] Bumped the stub version to 50.1.2dd2d013 [Intl] Improved the bundle compilation processf47e60a [Intl] Fixed small bugs in the resource bundle transformation467cc93 [Intl] Fixed various problems in the resource compilation process4a5c453 [Intl] Moved the content of the README file to symfony/symfony-docs9899de7 [Intl] Updated the READMEbfec58a [Intl] Fixed flawed PHPDoc21323ba [Intl] Updated the README file209a9cb [Validator] Adapted to latest Intl changesf2a0aec [Form] Adapted to latest Intl changes0f6277f [Locale] Adapted to latest Intl changes2cd1be8 [Intl] Made the $locale parameter optional in the bundle interfacesb9e9cb2 [Intl] Added autoload.php which was ignored by .gitignore838798f [Intl] Removed method IntlTestCase::skipIfInsufficientIcuVersion()dde1d34 [Intl] Changed Intl::getIcuVersion() to return the stub version if the intl extension is not loaded99f6f8a [Form] Fixed failing tests5d0b849 Fixed PHPDocb60866c [Intl] Changed Intl::getStubIcuVersion() to Intl::getIcuStubVersion()b902b6b [Locale] Added default locale01d0ee8 [Validator] Changed component to use the Intl component0c1fe39 [Form] Changed component to use the Intl component5917a2e [Intl] Refactored Locale component into two new components Icu and Intl
fago pushed a commit to fago/Validator that referenced this pull requestApr 18, 2015
This PR was merged into the master branch.Discussion----------[Intl] Refactored Locale component into two new components Icu and Intl| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | yes| Deprecations? | yes| Tests pass?   | yes| Fixed tickets | #5279| License       | MIT| Doc PR        |symfony/symfony-docs#2312The Intl component is now a simple drop-in replacement layer for the C intl extension. Install it via Composer and have it available automatically if the intl extension is not available.Additionally, the component ships data from the ICU library which can be accessed through the methods:```phpuse Symfony\Component\Intl\Intl;Intl::getCurrencyBundle()->...Intl::getLanguageBundle()->...Intl::getLocaleBundle()->...Intl::getRegionBundle()->...```If the intl extension is installed, Composer will install the ICU data for the ICU version in the intl extension. If the intl extension is not installed, Composer will use stub ICU data for the latest ICU version (see `Intl::getStubIcuVersion()`).See the [README](/bschussek/symfony/blob/intl/src/Symfony/Component/Intl/README.md) for more information.Todo:- [x] finish the Intl README file- [x] update the Icu README file- [x] update the documentation- [x] make parameter `$locale` optional (default to `\Locale::getDefault()`) in resource bundle methods- [x] remove `(Icu)?Version::compare` calls in the tests- [x] solve deployment problem when trying to install incompatible symfony/icu version listed in composer.lockCreate the following branches in the [Icu component](https://github.com/symfony/Icu):- [x] 1.0.x- [x] 1.1.x- [x] 1.2.xCommits-------9118b4a [Locale] Removed "Stub" prefixes in Intl componentb4cccfd [Intl] Removed "Stub" prefix from stub classes60f31d1 [Intl] Improved inline documentationc2d37e6 [Intl] Improved error messages in the build scripts1249f01 [Intl] Added scripts to test the compatibility of various versions of symfony/icu with the ICU version installed on the system9dbafd7 [Intl] Split update-stubs.php script into two scripts to function with the changed Icu component versioninge2c11cb [Intl] Added a check for the ICU data version to IntlTestHelper to prevent the stub class tests from failing427d24a [Intl] Outsourced bundle reader creation to Icu component0160fd5 [Intl] Moved stub data to Icu component 1.0.xdbca3b7 [Intl] Added empty directory needed for the testsa717ce9 [Intl] Removed ICU version comparisons from the tests5d17de5 [Intl] Fixed version comparisons in the transformation rules470927d [Intl] Improved build scriptsaceb20d [Form] Improved tests to use the IntlTestHelper class3dd75ff [Locale] Improved tests to use the IntlTestHelper class03b78b0 [Validator] Improved tests to use the IntlTestHelper class9d9c389 [Intl] Simplified testsc55c4a2 [Intl] Only the StubNumberFormatterTest requires stub data17a480b [Intl] Added IntlTestHelper class for convenience1dcdcd3 [Locale] Fixed failing testsf6b75b9 [Intl] Changed composer.json to disallow future versions of the Icu component080c880 [Intl] Bumped the stub version to 50.1.2dd2d013 [Intl] Improved the bundle compilation processf47e60a [Intl] Fixed small bugs in the resource bundle transformation467cc93 [Intl] Fixed various problems in the resource compilation process4a5c453 [Intl] Moved the content of the README file to symfony/symfony-docs9899de7 [Intl] Updated the READMEbfec58a [Intl] Fixed flawed PHPDoc21323ba [Intl] Updated the README file209a9cb [Validator] Adapted to latest Intl changesf2a0aec [Form] Adapted to latest Intl changes0f6277f [Locale] Adapted to latest Intl changes2cd1be8 [Intl] Made the $locale parameter optional in the bundle interfacesb9e9cb2 [Intl] Added autoload.php which was ignored by .gitignore838798f [Intl] Removed method IntlTestCase::skipIfInsufficientIcuVersion()dde1d34 [Intl] Changed Intl::getIcuVersion() to return the stub version if the intl extension is not loaded99f6f8a [Form] Fixed failing tests5d0b849 Fixed PHPDocb60866c [Intl] Changed Intl::getStubIcuVersion() to Intl::getIcuStubVersion()b902b6b [Locale] Added default locale01d0ee8 [Validator] Changed component to use the Intl component0c1fe39 [Form] Changed component to use the Intl component5917a2e [Intl] Refactored Locale component into two new components Icu and Intl
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@webmozart@stof@weaverryan@wouterj@staabm

[8]ページ先頭

©2009-2025 Movatter.jp