[wp-trac] [WordPress Trac] #37811: Strings cannot be translated properly in languages with multiple plurals
WordPress Trac
noreply at wordpress.org
Wed Aug 24 12:00:07 UTC 2016
#37811: Strings cannot be translated properly in languages with multiple plurals
----------------------------------------+-----------------------------
Reporter: TacoVerdo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.6
Severity: normal | Keywords:
Focuses: javascript, administration |
----------------------------------------+-----------------------------
In 4.6, the function [https://core.trac.wordpress.org/browser/trunk/src
/wp-admin/includes/update.php#L631 wp_print_admin_notice_templates] was
added to `/wp-admin/includes/update.php`. In this function, a check was
added to show a singular or a plural string, depending on the number of
plugins/themes installed.
However, the plural strings are added with `__()` instead of `_n()`, which
means they cannot be translated properly in languages with multiple plural
forms, such as Gàidhlig / Scottish Gaelic
([https://make.wordpress.org/polyglots/2016/08/24/there-are-strings-in-wp-
admin-which-have/ as reported here]).
Please rewrite this function so that `_n()` is used for the plural
strings.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37811>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list