From: James E. F. <jf...@ac...> - 2002-02-21 16:53:06
|
On Thu, 21 Feb 2002 fl...@we... wrote: > hello! > > has anyone an idea how to get run the trancelation system!? > and how to find out if the lang- file is read by the system or is useing the > "save_mode" !? Please see the message I just posted. > all is finished but is not working! and the links of > http://phpesp.sourceforge.net/internationalization.html or the little info > in the phpesp.ini do not help very much! (i dont understand it actually: * > If it cannot be loaded, define the NOP wrapper.* The NOP wrapper, is this: function _($s) {return($s);} function bindtextdomain($s) {} function textdomain($s) {} Which allows the rest of the script to call the gettext functions, however they only return the original English messages. > as well in > locale/en/LC_MESSAGES/ > i hav a file "messages.mo" wich has intressting signs in it!? do i need it? > on all docs there are no desciptions about this extention *.mo ! The messages.mo is a binary file. It is compiled from messages.po, as described in the GNU Gettext manual: http://www.gnu.org/manual/gettext/html_chapter/gettext_6.html#SEC32 However, if people send me the text translations (messages.mo) I will take care of producing the correct binary form. > as note! version 1.3. has an older lang-file in the tar-ball then the > version you can find here: > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/phpesp/phpESP/loca > le/en/LC_MESSAGES/messages.po?rev=. Yes. I switched to using the "strict" format for the messages file after the 1.3 release. However, if you send me a "messages.po" of either type, I will produce the correct binary form. > hmmm... or is it just becaus the server has php4.0.6 !? the system work > quite good!!? > > wouldn´t it be easier to trancelate the script in this way and in an extra > lang-$lang.php file (could be fine and a place for a FAQ and Guide as well): > define("_YES","Yoo!"); > define("_FAQ","FAQ - Frequently A..... Questions"); > well...i´m not into server side things and qustions about speed and server > performance.....this is a way i know and makes sence to me and makes SAVE > that all lang-versions can run :-) That type of system you describe would be very hard to maintain. The GNU Gettext package is designed to be used in this manner, and lets you maintain as many languages as you want concurrently. This also lets you have people using two different languages simultaneously (as determined by the preferences set in their browser). Take it easy, -James |