admin/environment/php extension/intl: Difference between revisions
m (French link) |
No edit summary |
||
Line 1: | Line 1: | ||
The Internationalization extension (Intl) is a wrapper for the ICU library, a set of C/C++ and Java libraries that provide Unicode and Globalization support for software applications. It enables PHP programmers to perform UCA-conformant collation and date/time/number/currency formatting in their scripts. | The Internationalization extension (Intl) is a wrapper for the ICU library, a set of C/C++ and Java libraries that provide Unicode and Globalization support for software applications. It enables PHP programmers to perform UCA-conformant collation and date/time/number/currency formatting in their scripts. | ||
==Windows== | |||
To enable this extension add the following line to your php.ini file: | To enable this extension add the following line to your php.ini file: | ||
Line 22: | Line 23: | ||
The ''intl.error_level'' directive is optional. | The ''intl.error_level'' directive is optional. | ||
==Other operating systems== | |||
Use system package manager or specify compilation flag. | |||
==See also== | ==See also== |
Revision as of 06:18, 18 November 2010
The Internationalization extension (Intl) is a wrapper for the ICU library, a set of C/C++ and Java libraries that provide Unicode and Globalization support for software applications. It enables PHP programmers to perform UCA-conformant collation and date/time/number/currency formatting in their scripts.
Windows
To enable this extension add the following line to your php.ini file:
extension=php_intl.dll
And then set the intl.default_locale and intl.error_level directives in your php.ini file.
[intl]
intl.default_locale = en_utf8
intl.error_level = E_WARNING
The intl.error_level directive is optional.
Other operating systems
Use system package manager or specify compilation flag.
See also
PHP Internationalization Functions
Table of locales lists the locales that you can use.