[Locale] added more information to the README.md regarding the need to build the ICU data when the intl extension ICU data version mismatch the one shipped with Symfony
This commit is contained in:
parent
3191c704a1
commit
33105e08d7
@ -23,10 +23,14 @@ You can run the unit tests with the following command:
|
|||||||
|
|
||||||
If your PHP have the ``intl`` extension enabled but the intl extension ICU data
|
If your PHP have the ``intl`` extension enabled but the intl extension ICU data
|
||||||
version mismatch the one shipped with the component, you can build the data for
|
version mismatch the one shipped with the component, you can build the data for
|
||||||
it and use the ``USE_INTL_ICU_DATA_VERSION`` environment variable:
|
it and use the ``USE_INTL_ICU_DATA_VERSION`` environment variable.
|
||||||
|
|
||||||
|
php Resources/data/build-data.php
|
||||||
export USE_INTL_ICU_DATA_VERSION=true
|
export USE_INTL_ICU_DATA_VERSION=true
|
||||||
phpunit
|
phpunit
|
||||||
|
|
||||||
|
This way the tests will use the ICU data files with the same version of your
|
||||||
|
``intl`` extension.
|
||||||
|
|
||||||
Read the file ``Resources/data/UPDATE.txt`` for more info about building or
|
Read the file ``Resources/data/UPDATE.txt`` for more info about building or
|
||||||
updating the ICU data files.
|
updating the ICU data files.
|
Reference in New Issue
Block a user