[英]What PHP needs to work with gettext?
I have a linux server with PHP. 我有一个带PHP的Linux服务器。 I do not see
gettext
in the PHPINFO output, so I assume gettext
is not enabled or included in the PHP. 我没有在PHPINFO输出中看到
gettext
,因此我假设未启用gettext
或未将其包含在PHP中。 I have installed the gettext
lib on the machine. 我已经在机器上安装了
gettext
lib。
What other steps do I need to do to enable gettext
in my PHP? 要在PHP中启用
gettext
,还需要执行什么其他步骤?
I read the php.net documentation, the only entry there writes about building PHP with gettext
. 我阅读了php.net文档,这是有关使用
gettext
构建PHP的唯一条目。 Is this the only way, or is there another simpler way? 这是唯一的方法,还是还有另一种更简单的方法?
Your linux distrubution likely has a pre-compiled package for it (RPM on Redhat and derivative or DEB on Debian and its derivatives). 您的linux发行版可能已经预编译了软件包(Redhat和衍生物上的RPM或Debian及其衍生物上的DEB)。 Typically you'll need to install the package and you'll have to restart apache if you're using mod_php (as opposed to running it in CGI mode)
通常,您需要安装该软件包,并且如果您使用的是mod_php,则必须重新启动apache(相对于以CGI模式运行它)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.