资源说明:Converts gettext translation '.po' files to binary '.mo' files in PHP
php.mo 0.1 by Joss Crowcroft (http://www.josscrowcroft.com) ===== Converts gettext translation '.po' files to binary '.mo' files in PHP. **Usage:** php.mo is a couple of functions that take an input (.po) file and generate an output (.mo) file. Usage is easy: ```php ``` Just like that. You can even leave the second parameter blank, and the output file will take the same filename as the input file, with a .mo extension. I've double-checked the phpmo-generated .mo binary files with those generated by Poedit, and they seem to be identical - which leads me to believe that this is production-ready. **NB:** * If no $output_file specified, output filename is same as $input_file (but .mo) * Returns true/false for success/failure * No warranty, but if it breaks, please let me know **More info:** [PHP.mo - JossCrowcroft.com](http://www.josscrowcroft.com/2011/code/php-mo-convert-gettext-po-file-to-binary-mo-file-php/ "php mo - convert gettext po to binary mo files in PHP") **Credit:** Based on php-msgfmt by Matthias Bauer (Copyright © 2007), a command-line PHP tool for converting .po files to .mo. ([http://wordpress-soc-2007.googlecode.com/svn/trunk/moeffju/php-msgfmt/msgfmt.php](http://wordpress-soc-2007.googlecode.com/svn/trunk/moeffju/php-msgfmt/msgfmt.php)) **License:** GPL v3 http://www.opensource.org/licenses/gpl-3.0.html kthx.
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。