[wp-trac] [WordPress Trac] #16130: Deleted themes number is not translated

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 7 08:01:37 UTC 2011


#16130: Deleted themes number is not translated
----------------------------+------------------------------
 Reporter:  SergeyBiryukov  |       Owner:
     Type:  defect (bug)    |      Status:  reopened
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  I18N            |     Version:  3.1
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+------------------------------
Changes (by nbachiyski):

 * status:  closed => reopened
 * resolution:  invalid =>


Comment:

 Actually we can.

 Gettext doesn't allow a plural string to have the same singular as another
 string, because the unique key for a string is built from the singular
 only (+ context if there).

 We need to preserve that behaviour, because that's in the MO format
 specification.

 In our case the string doesn't show up, because we have the string
 {{{Theme deleted.}}} in {{{wp-admin/themes.php}}}. Although one of them is
 in the core WP set of strings and the other is in the MS strings, in order
 to make sure the coinciding strings are present only in the WP pot I put
 all the strings in one structure and that's where the plural one from MS
 is lost.

 We can fix that by adding context to one of the strings. The context will
 change the unique key and both strings will appear.

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


More information about the wp-trac mailing list