Make WordPress Core

Opened 9 years ago

Last modified 3 weeks ago

#40769 new enhancement

Translators' note required for singular/plural strings where both strings are in the singular form

Reported by: pidengmor Owned by:
Priority: normal Milestone: Future Release
Component: I18N Version: 4.8
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

There is some confusion for translators in GlotPress over WordPress 4.8.x as some of the singular/plural strings are singular in the originals. For example:

Singular: Audio Widget (%d)
Plural: Audio Widget (%d)

A translators' note would be handy here to explain why the plural is not Audio Widgets in this case.

This currently relates to four strings:

​Audio Widget
​Image Widget
​Media Widget
​Video Widget

Attachments (1)

Media Library ‹ qtranslate.dev — WordPress-2017May15_14-41-45.png​ (21.3 KB ) - added by pcarvalho 9 years ago.
number of widgets that use that media item

Download all attachments as: .zip

Change History (14)

This ticket was mentioned in ​Slack in #polyglots by vitormadeira. ​View the logs.


9 years ago

#2 @vitormadeira
9 years ago

Having the very same kind of doubt here in the Portuguese (Portugal) translation.
Thanks for posting this ticket.

#3 @pcarvalho
9 years ago

any updates on this? we're doing a contributers day next weekend, and fixing this would be an awesome first-good-bug

#4 @westonruter
9 years ago

@obenland did we neglect to pluralize the second argument to _n_noop()?

#5 @obenland
9 years ago

I don't think we did. Was thinking of the label as more of a feature description rather than it being instance agnostic

#6 @GaryJ
9 years ago

I think the Widget in single and plural strings are correct here.

Instead of widget count in numbers, think of it as "Widget A, Widget B, Widget C". In English, it wouldn't make sense to have "Widget A, Widgets B, Widgets C", following English pluralisation rules.

In other locales, it may be that items labelled with numbers, have different variations, even if it's not a count. Extremely rare possibly, or maybe just a coding oversight here resulting in a redundant single/plural split instead of a static string that happens to contain a dynamic non-counting number.

Also, there is a translator comment: https://core.trac.wordpress.org/browser/trunk/src/wp-includes/widgets/class-wp-widget-media-video.php?marks=42#L42

#7 @pcarvalho
9 years ago

this is how its being used on the media table: it shows the number of widgets that use that media.

so its "Image Widget" or "Image Widget (10)"

Version 1, edited 9 years ago by pcarvalho (previous) (next) (diff)

#8 @anonymized_7658014
9 years ago

A quick example in a translators note would definitely go a long way. Something along the lines of:

/* translators: used in context of a media item and its appearances, read plural form as
“[media item uploaded to] Image Widget ([and used in] 10 [instances of that widget])” */

(Yes, that is a long comment, but remember it is for people who have no idea what is in your head.)

This ticket was mentioned in ​Slack in #polyglots by vitormadeira. ​View the logs.


9 years ago

#10 @SergeyBiryukov
9 years ago

  • Component General → I18N

#11 @Presskopp
5 years ago

Do they need to know? ;-)

/* translators: Please translate as singular in both cases */

#12 @swissspidy
2 years ago

  • Keywords needs-patch added
  • Milestone Awaiting Review → Future Release

This ticket was mentioned in ​PR #14713 on ​WordPress/wordpress-develop by ​@arkaprabhachowdhury.


3 weeks ago
#13

  • Keywords has-patch added; needs-patch removed

Update the translator comments for the Media, Audio, Image, and Video widget count strings. The comments now explain that both forms should be translated as singular, while retaining the explanation of the %d placeholder.

Use of AI Tools

AI assistance: Yes
Tool(s): Codex
Model(s): GPT-6
Used for: Ticket review and patch authoring; local coding-standard and PHP syntax validation.

Note: See TracTickets for help on using tickets.