0plus1
0plus1

Reputation: 4555

php gettext debugging

I have a problem with gettext, on my local testing machine it works like a charm, on production server it doesn't. gettext seems to avoid displaing any kind of error, either it works or it doesn't.

Is there any way to debug, or to force it to log everything it does?

thanks

Upvotes: 4

Views: 1063

Answers (2)

0plus1
0plus1

Reputation: 4555

If anybody encounter this from search engines. In my case the problem was that php didin't had any locale installed! Without locale it can't work, so always check this as sometime updating php resets locale.

Upvotes: 4

Jürgen Thelen
Jürgen Thelen

Reputation: 12727

Maybe your production server was not built with

--with-gettext[=DIR]

You can check if it's enabled by checking phpinfo() output. You should find a section gettext, if it was built-in.

Upvotes: 1

Related Questions