安装

在构建PHP的时候要添加 GNU gettext 支持,你必须添加如下选项 --with-gettext[=DIR] DIR 表示 gettext 的安装目录,默认是/usr/local.

User Contributed Notes

jefferytutorials at gmail dot com 09-Apr-2016 02:40
for wamp/xampp users check if "php_gettext" extension is activated.
Anonymous 22-Nov-2010 01:59
Linux users that compile PHP --with-gettext=shared should include
extension=gettext.so

in your /etc/php.ini
windowsuser at example dot com 19-Sep-2008 09:35
Windows users have to add php_gettext.dll to their extensions directory, and enable it in their php.ini file.