מחרוזות שיכולות להשתמש בהבחנה בין יחיד לרבים לצורך תרגום אופטימלי

סיכום מבוסס בינה מלאכותית

In a discussion titled ‘Strings that could use a singular/plural differentiation for optimal translation,’ lcb highlights that certain UI strings in Discourse—particularly those containing %{count}—would benefit from explicit singular/plural forms to improve readability and accessibility, especially for users with dyslexia. As an example, they cite the awkward French string “Marquer le(s) nouveau(x) sujet(s) comme lu(s) (%{count})”, which relies on parentheses to handle both forms. They suggest that strings tied to the new selective dismissal feature—js.topics.bulk.dismiss_read_with_selected, js.topics.bulk.dismiss_button_with_selected, and js.topics.bulk.dismiss_new_with_selected—should be updated to support pluralization. gerhard acknowledges the point, noting that while %{count} strings are typically not pluralized, it may be appropriate in some cases, and agrees to handle the updates, tagging martin. lcb later adds another candidate for pluralization: js.badges.favorite_count, currently translated as “%{count}/%{max} badges marked as favorite”, which would also read better with proper singular/plural handling. The discussion aims to improve translation quality and user experience by ensuring strings adapt correctly to count values.

Hi,

I’m creating this subject after having translated a few strings that could benefit from being defined as having differentiated singular and plural forms, so as to avoid readability issues, such as the display of a bunch parentheses to handle both forms (for example: “Marquer le(s) nouveau(x) sujet(s) comme lu(s) (%{count})”). Not only does this look funny, but it will hinder usability for users with reading disorders such as dyslexia. Perhaps this subject thread can be re-used if similar situations arise later.

Strings with differentiated singular in plural forms appear like this in the Crowdin translation system:



Tied to the feature announced by @martin a few days ago (Selective dismissal of New and Unread topics), strings:

  • js.topics.bulk.dismiss_read_with_selected
  • js.topics.bulk.dismiss_button_with_selected and
  • js.topics.bulk.dismiss_new_with_selected

could all benefit from being defined as having differentiated singular and plural forms. Would a developer be so kind as to handle this change?

3 לייקים

Interesting, we usually do not pluralize strings with (%count) in it, but I guess it makes sense to do it in same cases / always?

The other strings should have been pluralized. I’ll take care of these. cc @martin

3 לייקים

Here’s a new one: js.badges.favorite_count (“%{count}/%{max} badges marked as favorite)”

לייק 1