note 110735 added to function.gettext

From: Date: Thu, 29 Nov 2012 16:34:44 +0000
Subject: note 110735 added to function.gettext
Groups: php.notes 
Request: Send a blank email to php-notes+get-192200@lists.php.net to get a copy of this message
The simplest way to by-pass gettext() cache, without restart apache nor change domain. The fix is incredible simple, first create a dummy link to the locale folder where .mo files stored: cd locale ln -s . nocache Then add one single line before bindtextdomain() <?php bindtextdomain('domain', './locale/nocache'); bindtextdomain('domain', './locale'); ?> Now the cache is forced to flush every time. ---- Server IP: 69.147.83.199 Probable Submitter: 68.68.42.38 ---- Manual Page -- http://www.php.net/manual/en/function.gettext.php Edit -- https://master.php.net/note/edit/110735 Del: integrated -- https://master.php.net/note/delete/110735/integrated Del: useless -- https://master.php.net/note/delete/110735/useless Del: bad code -- https://master.php.net/note/delete/110735/bad+code Del: spam -- https://master.php.net/note/delete/110735/spam Del: non-english -- https://master.php.net/note/delete/110735/non-english Del: in docs -- https://master.php.net/note/delete/110735/in+docs Del: other reasons-- https://master.php.net/note/delete/110735 Reject -- https://master.php.net/note/reject/110735 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#192200) next »