"1 songs played today" is not grammatically correct
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Music App |
Confirmed
|
Low
|
Andrew Hayzen | ||
libusermetrics (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
If I play a single song in the music app, the welcome shows "1 songs played today". This is not grammatically correct.
Here's the relevant chunk from the music-app.qml:
Metric {
id: songsMetric
name: "music-metrics"
format: "<b>%1</b> " + i18n.tr("songs played today")
emptyFormat: i18n.tr("No songs played today")
domain: "com.ubuntu.music"
}
FWICS, it looks like the problem is due to a limitation of libusermetrics. If so, two possible solutions come to mind:
1) Extending libusermetrics to allow the specification of a "singleFormat:" which in this case would be:
singleFormat: "<b>%1</b> " + i18n.tr("song played today") // It's now "song", not "songs"
2) Having some JS construct the format dynamically based on the value somehow? The problem there being that every app that wanted to get this right would need to implement the JS.
Related branches
- David Planella: Disapprove
- Victor Thompson: Needs Information
- Ubuntu Phone Apps Jenkins Bot: Needs Fixing (continuous-integration)
- Andrew Hayzen: Needs Information
-
Diff: 12 lines (+1/-1)1 file modifiedmusic-app.qml (+1/-1)
Changed in music-app: | |
assignee: | nobody → Andrew Hayzen (andrew-hayzen) |
Changed in libusermetrics (Ubuntu): | |
importance: | Undecided → Low |
Thank you for taking the time to report this bug and helping to make Ubuntu better.
I can confirm that when using the package music-app on ubuntu-touch using the steps provided by James that I can reproduce the bug. Therefore I have set this bug to confirmed.
I have see this with other apps and *thought* this was working for us at one point, however I have just noticed that the photos is now stated in the follow format.
"photos taken today: <b>%1</b>"
Which eliminates the issue.