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

WordPress Trac wp-trac at lists.automattic.com
Fri May 6 11:25:22 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 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
 definitions.

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


More information about the wp-trac mailing list