Page MenuHomePhabricator

Activity tab longest streak messages confuse edits and days
Closed, ResolvedPublicBUG REPORT

Description

There is a bug in the Wikipedia app on Android in the "Activity" tab when using Russian language localization. In the section "Impact of your contributions over time," in the area highlighted in red on the screenshot, it says "59 дней" (meaning "59 days"), while it should be "59 правок" (meaning "59 edits").

Screenshot_20251226-161540.png (691×1 px, 39 KB)

Event Timeline

Wellverywell renamed this task from The number of edits is mixed up in the Russian-language mobile app to The Russian translation for "X edits" in the mobile app is wrong.Dec 26 2025, 4:10 PM
Wellverywell updated the task description. (Show Details)
Wellverywell added subscribers: tayozhny-les, MBH.
Reedy subscribed.

You should fix this at/on translatewiki - https://translatewiki.net/wiki/Wikimedia:Wikipedia-android-strings-suggested_edits_edit_streak_detail_text/ru

The message is currently

{{PLURAL|one=%d день|few=%d дня|many=%d дней|%d дней}}
Pppery subscribed.
This comment was removed by Pppery.

Actually I think this is a real bug in the android app, not related to translatewiki.

https://github.com/wikimedia/apps-android-wikipedia/blob/5881bce4e095821d41381e9fc9e576f2a40d3174/app/src/main/java/org/wikipedia/activitytab/ImpactModule.kt#L63

longestEditingStreak = impact.longestEditingStreak?.totalEditCountForPeriod ?: 0,

[...]

https://github.com/wikimedia/apps-android-wikipedia/blob/5881bce4e095821d41381e9fc9e576f2a40d3174/app/src/main/java/org/wikipedia/activitytab/ImpactModule.kt#L145

Hence longestEditingStreak is a number of edits, assuming totalEditCountForPeriod does what it is supposed to do.

val bestStreakString = if (longestEditingStreak > 0) {
    pluralStringResource(R.plurals.activity_tab_impact_best_streak_text, longestEditingStreak, longestEditingStreak)

However, when you try to decode that resource ...

https://translatewiki.net/w/i.php?title=Wikimedia:Wikipedia-android-strings-activity_tab_impact_best_streak_text/en&action=edit

{{PLURAL|one=%d day|%d days}}

It's passing an expected number of days to translatewiki, not a number of edits.

Pppery renamed this task from The Russian translation for "X edits" in the mobile app is wrong to Activity tab longest stream messages confuse edits and days.Dec 26 2025, 8:51 PM
Pppery renamed this task from Activity tab longest stream messages confuse edits and days to Activity tab longest streak messages confuse edits and days.
Pppery removed projects: I18n, Russian-Sites, Mobile.

Good catch -- that number is indeed supposed to be the longest streak of days that you've made edits, not the total edits during those days. Not a problem with the localization, just the incorrect number getting plugged in.

Pppery assigned this task to Dbrant.