How do you use gettext on server (Apache) you can’t restart? How do you use gettext on server (Apache) you can’t restart? apache apache

How do you use gettext on server (Apache) you can’t restart?


call clearstatcache();

after making translation from *.po to *.mo


the post here on the gettext function has some information for making gettext work without restarting apache:

http://www.php.net/manual/en/function.gettext.php#58310


You can rename your *.mo file and your gettext domain to flush gettext cache without restarting apache server.But in production environment,it's unsuitable.