[wp-trac] [WordPress Trac] #37287: wp_print_admin_notice_templates() does not use _n*() for plural forms
WordPress Trac
noreply at wordpress.org
Tue Jul 5 12:23:25 UTC 2016
#37287: wp_print_admin_notice_templates() does not use _n*() for plural forms
----------------------------+-----------------------------
Reporter: ideag | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: trunk
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
Function wp_print_admin_notice_templates()
(https://core.trac.wordpress.org/browser/trunk/src/wp-
admin/includes/update.php#L615) does not properly use _n() and related
functions for plural forms of its strings. It just makes a simple if
(count ===1) check and uses two different strings - one for singular, one
for plural form.
This presents a problem when translating into languages that have more
than one plural form, or more complicated rules for singular form usage.
For example, in Lithuanian we also use singular form for 21, 1241 and any
other number that ends with 1 (except for 11). And we have two plural
forms - one for numbers ending with a zero, another for everything else.
In current situation we can not have a proper translation here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37287>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list