admin/environment/php extension/intl: Difference between revisions
m (Added link to spanish translation of page) |
Helen Foster (talk | contribs) (Intl extension required in 3.4 (MDL-57432)) |
||
Line 1: | Line 1: | ||
{{Environment}} | {{Environment}} | ||
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. | ||
The Intl extension is required in Moodle 3.4 onwards. | |||
==MS Windows== | ==MS Windows== | ||
Line 22: | Line 24: | ||
The ''intl.error_level'' directive is optional. | The ''intl.error_level'' directive is optional. | ||
In a WAMP installation it may be required to add the php path | In a WAMP installation it may be required to add the php path to the the system PATH so that the module4 could uploaded properly (see http://forum.wampserver.com/read.php?2,80704,82499 for a couple of other approaches). | ||
==Other operating systems== | ==Other operating systems== | ||
Line 30: | Line 32: | ||
*Debian 5.0 (& Ubuntu) use: '''apt-get install php-intl''' or '''apt-get install php5-intl''' | *Debian 5.0 (& Ubuntu) use: '''apt-get install php-intl''' or '''apt-get install php5-intl''' | ||
*CentOS 5.5 (& RedHat) | *CentOS 5.5 (& RedHat) use: '''yum install php-intl''' | ||
==See also== | ==See also== |
Revision as of 15:50, 31 October 2017
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 Intl extension is required in Moodle 3.4 onwards.
MS Windows
To enable this extension add the following line to your php.ini file usually found in /php:
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.
In a WAMP installation it may be required to add the php path to the the system PATH so that the module4 could uploaded properly (see http://forum.wampserver.com/read.php?2,80704,82499 for a couple of other approaches).
Other operating systems
Use system package manager or specify compilation flag.
- Debian 5.0 (& Ubuntu) use: apt-get install php-intl or apt-get install php5-intl
- CentOS 5.5 (& RedHat) use: yum install php-intl
See also
- INTL Introduction
- PHP Internationalization Functions
- Table of locales lists the locales that you can use.