[wp-trac] [WordPress Trac] #10165: New implementation of MO file reader
WordPress Trac
wp-trac at lists.automattic.com
Thu Nov 12 15:53:44 UTC 2009
#10165: New implementation of MO file reader
-------------------------+--------------------------------------------------
Reporter: soletan | Owner: nbachiyski
Type: enhancement | Status: new
Priority: normal | Milestone: 2.9
Component: i18n | Version: 2.8
Severity: normal | Keywords: l10n MO performance needs-testing needs-unit-tests
-------------------------+--------------------------------------------------
Comment(by nbachiyski):
I managed to get your ideas for parsing into a new patch, which almost
retains the speed of mo3.php, but is still object-oriented. Several plugin
authors really liked the objects idea and are already using it in their
plugins.
See the patch here: http://trac.glotpress.org/changeset/293
On caching: on WordPress.com we have tried caching the read MO file and it
didn't work out so well. Since this usually involves transmitting the data
over a network it both filled the bandwith with translations and wasn't
that much faster.
On using php gettext extension: we haven't revisited it in a long time. It
used do depend on server locales and too few servers had it installed,
that's why we haven't incorporated it. Also, there were problems with old
gettext versions.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10165#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list