Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Running apache2 through Plesk. When I update the .mo files via subversion, and then restart apache (either through commandline or through Plesk interface), the translations do not update. Modified timestamps on the files are correct.

Is there any way to manually reset the cache?

Thanks!

share|improve this question

1 Answer 1

Turns out it wasn't a caching problem.

I had two languages en_US and de_DE. Gettext was only showing the key and not the translation for en_US, which wasn't noticeable because the keys are in English anyway.

So gettext was working for one language, and not for another...

Solution:

  • Add the en_US.UTF-8 locale using locale-gen en_US.UTF-8 (I'm on ubuntu).
  • Restart apache.

(You can check which locales are installed using locale -a.)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.