Gettext not working, no error messages, using php 5.3
I've been bouncing my head in this for a couple of days now without any success. I just want to get gettext to work. What happens is that the string as it is written in the php-file is printed, not the translated one. I.e. if i do "echo gettext("Service");" then "Service" is printed, not the swedish "Tjänster". There are absolutely no error messages in httpd/error_log. Not when running the app or (re-)starting apache. Using Centos 6.2 and php 5.3. This is my directory structure: /path/to/locale/sv_SE.utf8/LC_MESSAGES/messages.mo /path/to/setlocale.php My messages.po file: msgid "" msgstr ""