Page MenuHomePhabricator

Wikipedia-android-strings message "page edit history article created date" needs plural support
Open, Needs TriagePublic

Description

Wikipedia-android-strings message "page edit history article created date" was added to translatewiki on March 11, 2022. It says %d edits since %s. It needs plural support: Even if %d is always greater than 1, many languages need different plural markers for 2, 3, 7, etc.

If PLURAL can already be used with this message, the English message should still be rephrased to something like {{PLURAL:%d|%d edit|%d edits}} since %s to make it clear for the translators (I'm not sure that this is actually the correct syntax for Android strings, so I cannot do it myself).

Event Timeline

When checking the code on the string resource page_edit_history_article_edits_since_year, which I assume is the one that needed a change, then I see that the required change for this task was already completed. Thus this task could be closed.

for example in English

<plurals name="page_edit_history_article_edits_since_year">
    <item quantity="one">%1$d edit since %2$s</item>
    <item quantity="other">%1$d edits since %2$s</item>
</plurals>

or in Slovenian

<plurals name="page_edit_history_article_edits_since_year">
  <item quantity="one">%1$d urejanje od %2$s </item>
  <item quantity="two">%1$d urejanji od %2$s </item>
  <item quantity="few">%1$d urejanja od %2$s </item>
  <item quantity="other">%1$d urejanj od %2$s</item>
</plurals>