Re: 'lang' file editor ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- Original Message ----- From: "Jochem Maas" <jochem@xxxxxxxxxxxxx>
Satyam wrote:

maybe I should consider moving my 'shit' into gettext format.

That was just what I was going to sugest: using gettext format.

yeah, but I curerntly have 30 odd files each with upwards of 2000 strings
in them, and it would also require changing the code base to use gettext
(which is the easy part since I already use a wrap function for all
the string/translation grabbing)

Nevertheless, I find php-gettext far more flexible and, since it is in
source format, you might want to modifiy the part that reads in the

you mean this?:

http://savannah.nongnu.org/projects/php-gettext/

I'm not sure I want to use userland code that does what gettext extension does [faster] (I'm quite happy to install/configure gettext and all the relevant locales)
especially given that the author begins with "I don't like php much"
... but none the less I'll check it out.


It is the gettext used by Wordpress and some other software that doesn't rely on people being happy installing and configuring gettext, so I guess it will be supported well beyond the likes or dislikes of the original developer. Nevertheless, since you already have the part of wrapping the translatable strings done, you might also want to check the PHP Compiler: http://phpcompiler.org/ as an alternative way of finding tokens.

compiled translation file and use it to read in whatever format you find
suits your needs.

Satyam




--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 269.2.0/757 - Release Date: 11/04/2007 17:14



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux