> Note that formatting may differ between different versions of the ICU library compiled with PHP and also based on the fact whether the
> Note that formatting may differ between different versions of the ICU library compiled with PHP and also based on the fact whether the
> [PHP intl extension](http://php.net/manual/en/book.intl.php) is installed or not. So to ensure your website works with the same output
> [PHP intl extension](http://php.net/manual/en/book.intl.php) is installed or not. So to ensure your website works with the same output
> in all environments it is recommended to install the PHP intl extension in all environments and verify that the version of the ICU library
> in all environments it is recommended to install the PHP intl extension in all environments and verify that the version of the ICU library
> is the same.
> is the same. See also: [Setting up your PHP environment for internationalization](tutorial-i18n.md#setup-environment).
Configuring the format
Configuring the format
----------------------
----------------------
The default format of the Formatter class can be adjusted using the properties of the formatter class.
The default format of the Formatter class can be adjusted using the properties of the formatter class.
You can adjust these values application wide by configuring the `formatter` component in your [application config](concept-configurations.md#application-configurations)
You can adjust these values application wide by configuring the `formatter` component in your [application config](concept-configurations.md#application-configurations).
an example configuration is shown in the following.
An example configuration is shown in the following.
For more details about certain properties check out the [[yii\i18n\Formatter|API documentation of the Formatter class]].
For more details about the available properties check out the [[yii\i18n\Formatter|API documentation of the Formatter class]].
```php
```php
'components' => [
'components' => [
...
@@ -74,6 +74,8 @@ For more details about certain properties check out the [[yii\i18n\Formatter|API
...
@@ -74,6 +74,8 @@ For more details about certain properties check out the [[yii\i18n\Formatter|API
Formatting Dates
Formatting Dates
----------------
----------------
> Note: This section is under development.
TDB
TDB
See http://site.icu-project.org/ for the format.
See http://site.icu-project.org/ for the format.
...
@@ -89,6 +91,8 @@ See http://site.icu-project.org/ for the format.
...
@@ -89,6 +91,8 @@ See http://site.icu-project.org/ for the format.
Formatting Numbers
Formatting Numbers
------------------
------------------
> Note: This section is under development.
TDB
TDB
See http://site.icu-project.org/ for the format.
See http://site.icu-project.org/ for the format.
...
@@ -105,6 +109,8 @@ See http://site.icu-project.org/ for the format.
...
@@ -105,6 +109,8 @@ See http://site.icu-project.org/ for the format.