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

WordPress Trac noreply at wordpress.org
Tue Jan 30 14:00:01 UTC 2024


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

Comment (by swissspidy):

 In [changeset:"57386" 57386]:
 {{{
 #!CommitTicketReference repository="" revision="57386"
 I18N: Improve singular lookup of pluralized strings.

 Ensures that looking up a singular that is also used as a pluralized
 string works as expected.
 This improves compatibility for cases where for example both `__(
 'Product' )` and `_n( 'Product', 'Products’, num )` are used in a project,
 where both will use the same translation for the singular version.

 Although such usage is not really recommended nor documented, it must
 continue to work in the new i18n library in order to maintain backward
 compatibility and maintain expected behavior.

 See #59656.
 }}}

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


More information about the wp-trac mailing list