Reputation: 53603
I have a linux server with PHP. I do not see gettext
in the PHPINFO output, so I assume gettext
is not enabled or included in the PHP. I have installed the gettext
lib on the machine.
What other steps do I need to do to enable gettext
in my PHP?
I read the php.net documentation, the only entry there writes about building PHP with gettext
. Is this the only way, or is there another simpler way?
Upvotes: 1
Views: 4065
Reputation: 19309
Your linux distrubution likely has a pre-compiled package for it (RPM on Redhat and derivative or DEB on Debian and its derivatives). 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)
Upvotes: 1
Reputation: 45721
Requirements: http://www.php.net/manual/en/gettext.requirements.php
Installation: http://www.php.net/manual/en/gettext.installation.php
Upvotes: 2