Re: [PHP] gettext: changed .mo file, caching issue

2003-09-29 Thread daniel hahler
on Mon, 29 Sep 2003 10:24:09 +0200 Christophe Chisogne wrote: >> This works good, but if the .mo file gets changed the old content is >> returned by calls to gettext, until I restart Apache. CC> gettext uses a caching method to speed up looking translation CC> strings, which explain why Apache mu

Re: [PHP] gettext: changed .mo file, caching issue

2003-09-29 Thread Christophe Chisogne
About performance issues surrounding i18n, is gettext better than storing strings in a RDBMS ? Can someone argue in favour or again opinion that say the RDBMS way is faster ? [1] [1] Re: [Phpgroupware-users] I18N: why not gettext?! http://mail.gnu.org/archive/html/phpgroupware-users/2003-04/msg0020

Re: [PHP] gettext: changed .mo file, caching issue

2003-09-29 Thread Christophe Chisogne
daniel hahler wrote: This works good, but if the .mo file gets changed the old content is returned by calls to gettext, until I restart Apache. gettext uses a caching method to speed up looking translation strings, which explain why Apache must be reloaded [1] Setting all LANG, LANGUAGE and LC_ALL

[PHP] gettext: changed .mo file, caching issue

2003-09-28 Thread daniel hahler
Hello php-general, I init gettext with putenv('LANGUAGE='.$language); putenv('LANG='.$language); // Specify location of translation tables bindtextdomain ("messages", "./locale"); // Choose domain textdomain ("messages"); where $language is either "de" or "en". This works goo