admin/environment/php extension/intl: Difference between revisions
Helen Foster (talk | contribs) (→See also: forum discussion link) |
|||
(3 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
==MS Windows== | ==MS 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 usually found in /php: | ||
<code> | <code> | ||
extension=php_intl.dll | extension=php_intl.dll | ||
</code> | </code> | ||
And then set the ''intl.default_locale'' and ''intl.error_level'' directives in your php.ini file. | And then set the ''intl.default_locale'' and ''intl.error_level'' directives in your php.ini file. | ||
Line 19: | Line 18: | ||
intl.error_level = E_WARNING | intl.error_level = E_WARNING | ||
</code> | </code> | ||
The ''intl.error_level'' directive is optional. | The ''intl.error_level'' directive is optional. | ||
Line 27: | Line 25: | ||
Use system package manager or specify compilation flag. | Use system package manager or specify compilation flag. | ||
*Debian 5.0 (& Ubuntu) use: '''apt-get install php-intl''' | *Debian 5.0 (& Ubuntu) use: '''apt-get install php-intl''' or '''apt-get install php5-intl''' | ||
*CentOS 5.5 (& RedHat) you should (probably) be using [[php 5.3 from remi]] and then use: '''yum install php-intl''' | *CentOS 5.5 (& RedHat) you should (probably) be using [[php 5.3 from remi]] and then use: '''yum install php-intl''' | ||
Line 33: | Line 31: | ||
==See also== | ==See also== | ||
[http://www.php.net/manual/en/intro.intl.php INTL Introduction] | *[http://www.php.net/manual/en/intro.intl.php INTL Introduction] | ||
*[http://www.php.net/manual/en/book.intl.php PHP Internationalization Functions] | |||
[http://www.php.net/manual/en/book.intl.php PHP Internationalization Functions] | *[https://docs.moodle.org/en/Table_of_locales Table of locales] lists the locales that you can use. | ||
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=206801 Stuck at Server Checks? | Moodle 2.0.3 to 2.2.4] forum discussion | |||
[ | [[Category:Environment|PHP]] | ||
[[fr:admin/environment/php extension/intl]] | [[fr:admin/environment/php extension/intl]] |
Latest revision as of 06:06, 13 August 2012
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.
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.
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) you should (probably) be using php 5.3 from remi and then use: yum install php-intl
See also
- INTL Introduction
- PHP Internationalization Functions
- Table of locales lists the locales that you can use.
- Using Moodle Stuck at Server Checks? | Moodle 2.0.3 to 2.2.4 forum discussion