Re: gettext online editor?

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

 




----- Original Message ----- From: "Vincent DUPONT" <Vincent.dupont@xxxxxxx>
To: <php-general@xxxxxxxxxxxxx>
Sent: Tuesday, February 27, 2007 10:33 PM
Subject:  gettext online editor?



hello,

for translating our web applications, we use to create an XML file with the labels; one label for each entry; one file for each language.
This let us:
1. create one file (in french) and let someone do the translations
2. provide the 'key users' (admins) of the application a php page that can be used to edit/change these translations
3. include the xml files into our cvs so that changes are managed
4. provide a new language to the application simply by adding the corresponding file if needed, we can split the file on a functional basis to reduce the amount of data to be loaded. Most of the time however, we simply have some form labels, feedback messages, menu items : less than 50 labels per page.
So this works very well.

Recently a collegue showed us gettext. As it seems very powerful, the main disadvantage I can see is that translations files are not directly editable. The admin users cannot edit the files and correct/change the translations. Moreover, we work mainly on windows and I'd rather minimize the number of softwares needed by the developers to do their work (php editor, oci, mysql, mssql clients, cvs, svn, firefox, moz, ie, uml editor, ... so many already!)


So my question is:
do you know if there is any way of editing the gettext translation files from a http page? I mean, without the need to execute a 'compile' (or whatever) action on the webserver.


You might want to check PHP-gettext at http://savannah.nongnu.org/projects/php-gettext/. Since it reads external gettext files and stores them internally in PHP data structures (well, arrays) you might patch their data structures. Anyway, it might not be better than your current setup.


do you have any comment on translating the applications?

.... yes, but they are in Spanish, (http://www.satyam.com.ar/blog/2007/01/17/internacionalizacion-y-localizacion-indice/) sorry, Europeans often are multi-lingual, perhaps ...


of course gettext seems powerful, with caching an so on. But I really believe the new SimpleXML can load a translation file very quickly, and php offers enough functionalities to do cache of the labels in the current language...

thank you


Vincent

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




--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.4/703 - Release Date: 26/02/2007 14:56



--
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