From: Andreas S. <kno...@th...> - 2003-06-08 17:38:58
|
I've written a small modification for the espi18n.inc where the GetText class is used to emulate gettext. So, now even if the PHP gettext extension is not available the messages are correctly translated. Package was only tested with pnESP but should work with phpESP without any modification as the core is almost the same. esp_setlocale() was rewritten, the rest is still the same. To install: * Make a backup of your espi18n.inc * Drop files in your phpESP base directory. You can download package here: http://pnesp.sf.net/downloads/phpesp/gettext_emu.tgz Package content: gettext/ gettext/doc/ gettext/doc/gettext.directorystructure.html gettext/doc/gettext.errorhandling.html gettext/doc/gettext.installation.html gettext/doc/gettext.introduction.html gettext/doc/gettext.phpusage.html gettext/doc/gettext.portableobjectfiles.html gettext/doc/gettext.translationdomain.html gettext/doc/gettext.variableinterpolation.html gettext/doc/index.html gettext/doc/stylesheet.css gettext/GetText.php gettext/PEAR.php admin/include/lib/espi18n.inc Andreas ----------------- no brain, no pain |