#37811 closed defect (bug) (duplicate)
Strings cannot be translated properly in languages with multiple plurals
| Reported by: | TacoVerdo | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | I18N | Version: | 4.6 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | javascript, administration |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.