PHP 手冊
前一頁 |  | 下一頁

# XLI. Gettext

# 介紹

The gettext functions implement an NLS (Native Language Support) API which can be used to internationalize your PHP applications. Please see the gettext documentation for your system for a thorough explanation of these functions or view the docs at http://www.gnu.org/software/gettext/manual/gettext.html.

# 需求

To use these functions you must download and install the GNU gettext package from http://www.gnu.org/software/gettext/gettext.html

# 安裝

To include GNU gettext support in your PHP build you must add the option --with-gettext[=DIR] where DIR is the gettext install directory, defaults to `/usr/local`.

> Note to Win32 Users: In order to enable this module on a Windows environment, you must copy `gnu_gettext.dll` from the DLL folder of the PHP/Win32 binary package to the SYSTEM32 folder of your windows machine. (Ex: `C:\WINNT\SYSTEM32` or `C:\WINDOWS\SYSTEM32`). Starting with PHP 4.2.3 the name changed to `libintl-1.dll`, this requires also `iconv.dll` to be copied. `libintl-1.dll` is not needed as of PHP 4.3.8, `iconv.dll` is not needed as of PHP 5.

# 執行時期組態

`php.ini`中沒有定義此延伸的組態指令。

# 資源類型

這個延伸沒有定義任何資源。

# 預先定義常數

這個延伸沒有定義任何常數。

前一頁 | 內容 | 下一頁
unregister_tick_function | 上一層 | bind_textdomain_codeset