Bug 500869 - "Update" entry in left-hand list should be "Updates"
Summary: "Update" entry in left-hand list should be "Updates"
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (other bugs)
Version First Reported In: 6.3.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-28 19:38 UTC by John Veness
Modified: 2025-03-06 20:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.4.0
Sentry Crash Report:


Attachments
Discover Update/Updates screenshot (51.46 KB, image/png)
2025-02-28 19:38 UTC, John Veness
Details
Discover showing "Update" when multiple updates in en_GB (78.48 KB, image/png)
2025-03-03 17:47 UTC, John Veness
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Veness 2025-02-28 19:38:11 UTC
Created attachment 178980 [details]
Discover Update/Updates screenshot

SUMMARY
In the left-hand side category list, the entry "Update" should probably be "Updates".

STEPS TO REPRODUCE
1. Run Discover
2. Look at the left-hand side category list
3. Note an entry initially called "Updates (Fetching...)" (click Refresh if necessary)
4. Wait for fetching/refreshing to finish

OBSERVED RESULT
The entry changes to "Update" followed by a number in brackets.

EXPECTED RESULT
The entry changes to "Updates" followed by a number in brackets.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250227
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.4-1-default (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Note that when you click on the "Update" section, the search bar says "Search in 'Updates'...", and the heading to the right of that also says Updates.
Comment 1 Harald Sitter 2025-03-02 18:27:21 UTC
This should be easy! We'll just have to find the place in the code where string is.
Comment 2 John Veness 2025-03-02 18:49:29 UTC
I'm guessing it's https://invent.kde.org/plasma/discover/-/blob/master/discover/qml/DiscoverWindow.qml?ref_type=heads#L92 . That looks like it's supposed to say "Updates" when there is more than one update, but as far as I know, it always says "Update" even then. I think it should always say "Updates" even if there's only 1 update.
Comment 3 John Veness 2025-03-03 14:32:49 UTC
I've just realised this could be an en_GB translation problem. Line https://invent.kde.org/plasma/discover/-/blob/master/po/en_GB/plasma-discover.po?ref_type=heads#L876 should probably be Updates not Update.

(Although, as I keep saying, I think even "Updates (1)" would be fine - I feel like "Updates" is more like the name of a folder - for example in the same way that the Downloads folder is always called Downloads, and Pictures folder is always called Pictures, even if there's only one file in either of them).
Comment 4 John Veness 2025-03-03 17:47:17 UTC
Created attachment 179073 [details]
Discover showing "Update" when multiple updates in en_GB
Comment 5 Harald Sitter 2025-03-03 18:38:33 UTC
Yeah, definitely a translation bug. When Aleix and I talked about this we considered that maybe this should be a non-plural string though.
i.e.

Updates (0)
Updates (1)
Updates (42)

since the page is itself called Updates regardless of how many entries there are
Comment 6 Harald Sitter 2025-03-03 18:39:21 UTC
If you could file a separate bug for the translation team that would be cool. Then we'll consider what to do on the discover side in this bug.
Comment 7 John Veness 2025-03-03 19:32:04 UTC
(In reply to Harald Sitter from comment #5)
> Yeah, definitely a translation bug. When Aleix and I talked about this we
> considered that maybe this should be a non-plural string though.
> i.e.
> 
> Updates (0)
> Updates (1)
> Updates (42)
> 
> since the page is itself called Updates regardless of how many entries there
> are

Yes, precisely my thinking too :)

(In reply to Harald Sitter from comment #6)
> If you could file a separate bug for the translation team that would be
> cool. Then we'll consider what to do on the discover side in this bug.
Comment 8 John Veness 2025-03-03 19:37:25 UTC
(In reply to Harald Sitter from comment #6)
> If you could file a separate bug for the translation team that would be
> cool. Then we'll consider what to do on the discover side in this bug.

Thank you, have done. https://bugs.kde.org/show_bug.cgi?id=501020

So this bug can just be about the idea of having it always plural, in all translations.
Comment 9 Nate Graham 2025-03-05 16:22:26 UTC
Sure, we can change it to always be plural. I think that's fine. Would you like to submit a patch to do that, John?
Comment 10 John Veness 2025-03-05 19:11:50 UTC
(In reply to Nate Graham from comment #9)
> Sure, we can change it to always be plural. I think that's fine. Would you
> like to submit a patch to do that, John?

I'm on it!
Comment 11 Bug Janitor Service 2025-03-06 17:47:49 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/1049