[wp-trac] [WordPress Trac] #17268: Use native gettext library when available
WordPress Trac
noreply at wordpress.org
Wed Jun 11 18:22:14 UTC 2014
#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 nacin):
What if we went to an associative PHP array for our strings?
{{{
<?php
return array( 'English string' => 'translated string' );
}}}
How would performance look? We'd take a bit of a hit for loading the file,
but it'd avoid the overhead of parsing a MO file, could be opcode-cached,
etc.
ryan, nikolay, and I have discussed this as an idea over the years, but
we've never tried it out.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17268#comment:57>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list