[wp-trac] [WordPress Trac] #17268: Using pomo for translations is very inefficient

WordPress Trac wp-trac at lists.automattic.com
Sat May 7 08:30:23 UTC 2011

#17268: Using pomo for translations is very inefficient
 Reporter:  linushoppe    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |

Comment (by linushoppe):

 Replying to [comment:4 scribu]:
 > Looks nice, but I'm wondering if it wouldn't be even faster if we had
 two definitions of each WP translation function:
 > {{{
 > if (function_exists ('dgettext')) {
 >   require_once('translate-gettext.php');
 > } else {
 >   require_once('translate-pomo.php');
 > }
 > }}}
 > translate-pomo.php would contain the current implementation in WP, while
 translate-gettext.php would contain the more efficient, gettext based

 Very nice idea. I just wrote this patch to make WP faster, I had no time
 to make the patch "good-looking" and useful.

Ticket URL: <http://core.trac.wordpress.org/ticket/17268#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list