Php gettext debugging

I have a problem with gettext, on my local test machine it works like a charm, on a production server it is not. gettext doesn't seem to make any mistakes, either it works or not.

Is there a way to debug it or make it log everything it does?

thanks

+4
source share
2 answers

If someone comes across search engines. In my case, the problem was that php did not have any locales! Without the locale, it cannot work, so always check it like this for a while, updating the local php version.

+5
source

Your production server may not have been built using

--with-gettext[=DIR] 

You can check if this is allowed by checking the output of phpinfo() . You should find the gettext section if it was embedded.

+1
source

All Articles