Difference between revisions of "admin/environment/php extension/intl"

Jump to: navigation, search

Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: admin/environment/php extension/intl.

(Windows)
(Other operating systems)
Line 26: Line 26:
  
 
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'''
 +
 +
*CentOS 5.5 (& RedHat) you should (probably) be using [[php 5.3 from remi]] and then use: '''yum install php-intl'''
  
 
==See also==
 
==See also==

Revision as of 22:40, 6 December 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.

MS 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.

  • Debian 5.0 (& Ubuntu) use: apt-get install php-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.