[wp-trac] [WordPress Trac] #59656: Merge Performant Translations (Ginger MO)

WordPress Trac noreply at wordpress.org
Thu Feb 1 16:14:22 UTC 2024


#59656: Merge Performant Translations (Ginger MO)
-------------------------------------------------+-------------------------
 Reporter:  swissspidy                           |       Owner:  swissspidy
     Type:  enhancement                          |      Status:  reopened
 Priority:  high                                 |   Milestone:  6.5
Component:  I18N                                 |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:
  note                                           |  performance
-------------------------------------------------+-------------------------

Comment (by Chouby):

 @swissspidy First of all thank you for all the effort you are putting in
 getting this huge performance improvement.

 However I notice a possible issue with the translation of plurals
 This test done with the Slovenian translation of WordPress used to pass
 with older versions of WP and doesn't pass with current alpha (57514):

 {{{#!php
 public function test_translate_plurals() {
         load_textdomain( 'default', TEST_DATA_DIR . 'wp-dev-sl.mo' );

         $this->assertSame( '%s razpoložljiva posodobitev', _n( '%s update
 available', '%s updates available', 101 ) ); // 1, 101, 201
         $this->assertSame( '%s razpoložljivi posodobitvi', _n( '%s update
 available', '%s updates available', 102 ) ); // 2, 102, 202
         $this->assertSame( '%s razpoložljive posodobitve', _n( '%s update
 available', '%s updates available', 103 ) ); // 3, 4, 103
         $this->assertSame( '%s razpoložljivih posodobitev', _n( '%s update
 available', '%s updates available', 5 ) ); // 0, 5, 6
         }

 }}}

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


More information about the wp-trac mailing list