[wp-trac] [WordPress Trac] #37453: wp_default_scripts() does not properly pluralize strings
WordPress Trac
noreply at wordpress.org
Mon Jul 25 06:40:52 UTC 2016
#37453: wp_default_scripts() does not properly pluralize strings
--------------------------+-----------------------------
Reporter: ideag | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: trunk
Severity: normal | Keywords:
Focuses: javascript |
--------------------------+-----------------------------
Function wp_default_scripts()
(https://core.trac.wordpress.org/browser/trunk/src/wp-includes/script-
loader.php#L353 and https://core.trac.wordpress.org/browser/trunk/src/wp-
includes/script-loader.php#L354) does not properly use _n() and related
functions for plural forms of its strings. It just uses a single, plural
string with a placeholder for a number, i.e. `__( 'Jump forward %1
seconds' )`.
While this works in English, it 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.
Depends on #20491 and related to #37287.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37453>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list