PHP and gettext

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Rabi
Forum Newbie
Posts: 8
Joined: Thu Oct 02, 2008 7:16 am

PHP and gettext

Post by Rabi »

Hi There,
I am trying to translate my website into different EU langs and came accross gettext utility. I have successfully created a test file but when I load page I get
Fatal error: Call to undefined function: bindtextdomain()
I did research and it seems php has not been compiled with gettext utility as it does not show on phpinfo() page. Somewhere I came accross a solution saying we can edit php.ini file and uncomment section related to gettext. My problem is that phpinfo() says php.ini is @/usr/local/lib but when I check at that location, no ini file is there. There is a directory - php but no ini file there as well.

Can anyone tell me what is the problem here. Also how can I recompile my php installation with gettext? Any help will be greatly appreciated.
Post Reply