Bug 395951 - Missing plural string for "Show all %1 reviews..."
Summary: Missing plural string for "Show all %1 reviews..."
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.13.2
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-28 08:19 UTC by Øystein Steffensen-Alværvik
Modified: 2018-06-28 20:07 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Øystein Steffensen-Alværvik 2018-06-28 08:19:00 UTC
I believe that the following string in kde-workspace/plasma-discover.pot should be a plural one:


 #: discover/qml/ApplicationPage.qml:215
 #, kde-format
 msgid "Show all %1 reviews

Assuming that '%1' is the number of reviews.

Also this one, if it's still part of the code:

 #: discover/qml/ApplicationPage.qml:231
 #, kde-format
 msgid "Show reviews (%1)..."
Comment 1 Nate Graham 2018-06-28 19:12:59 UTC
There will only ever be a >1 number there. But you're right, it should use i18np() anyway because languages do plurals differently. Here's a patch: https://phabricator.kde.org/D13785
Comment 2 Nate Graham 2018-06-28 19:19:05 UTC
Git commit d70256447042d33ccab047d3f5c9fba0d6f9c8a5 by Nathaniel Graham.
Committed on 28/06/2018 at 19:18.
Pushed by ngraham into branch 'master'.

Use i18np for a plural string

Summary:
Use `i18np()` even though this string will always be plural in English; other languages are different, so we should use the correct `i18np()` call.

Reviewers: #discover_software_store, apol

Reviewed By: #discover_software_store, apol

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D13785

M  +1    -1    discover/qml/ApplicationPage.qml

https://commits.kde.org/discover/d70256447042d33ccab047d3f5c9fba0d6f9c8a5
Comment 3 Øystein Steffensen-Alværvik 2018-06-28 20:07:15 UTC
Cheers.