#37811 closed defect (bug) (duplicate)
Strings cannot be translated properly in languages with multiple plurals
Reported by: | TacoVerdo | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.6 |
Component: | I18N | Keywords: | |
Focuses: | javascript, administration | Cc: |
Description
In 4.6, the function 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 (as reported here).
Please rewrite this function so that _n()
is used for the plural strings.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Duplicate of #37287.
We can't use
_n()
there because the number comes from the JavaScript. It was a conscious decision to use__()
until we have better JS i18n support in core.