Re: dgettext vs. xgettext

From: Date: Tue, 27 Nov 2007 20:29:53 +0000
Subject: Re: dgettext vs. xgettext
References: 1 2  Groups: php.general php.i18n 
Request: Send a blank email to php-general+get-265086@lists.php.net to get a copy of this message
So long, I solved it by myself. As I'm only using dgettext() and the domain always is represented by a constant, I simply collect all php-files, then preg_match_all() occurences of dgettext() (with domain in mind), put the texts in the different corresponding files and, as I'm on the way, convert them into the appropriate charset, merge the new files with the existing ones and compile them (using the gnu-gettext binaries). So on the fly I got all my texts stored and compiled, preserving the old translations. Thank you for listening.

« previous php.general (#265086) next »