[wp-trac] [WordPress Trac] #17268: Use native gettext library when available

WordPress Trac noreply at wordpress.org
Thu Jun 22 07:45:49 UTC 2017


#17268: Use native gettext library when available
-------------------------------------------+-----------------------------
 Reporter:  linushoppe                     |       Owner:
     Type:  enhancement                    |      Status:  new
 Priority:  normal                         |   Milestone:  Future Release
Component:  I18N                           |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  early has-patch needs-refresh  |     Focuses:  performance
-------------------------------------------+-----------------------------

Comment (by dd32):

 Replying to [comment:77 swissspidy]:
 > As for reading and parsing MO files, I think there was once a plan to
 integrate https://github.com/dd32/ginger-mo.

 There's been a few optimisations in core, and a bunch of questions raised
 around which/what format of JSON to support (if needed) which made the
 multiple-format in GingerMo not needed..
 GM could be simplified again, and re-benchmarked, or some features
 stripped out of POMO and could probably be just as fast.

 I don't think using the PHP Gettext library is a realistic option for
 WordPress (It's not exactly the best PHP API at all) and using object
 caches isn't good for i18n either (although benchmarks may show a benefit,
 it'll have consequences under heavy load).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/17268#comment:78>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list