[i18n] Add variable to usermetrics string
Bug #1448258 reported by
David Planella
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
podbird | Status tracked in Trunk | |||||
Devel |
Fix Released
|
Low
|
Nekhelesh Ramananthan | |||
Trunk |
Fix Released
|
Low
|
Nekhelesh Ramananthan |
Bug Description
I cannot translate this string correctly into my language:
"podcasts listened to today"
Generally such strings present the variable, so that its position can be rearranged depending on the language. As an example:
- This is how I can translate it (incorrect): "3 podcasts escoltats avui"
- This is how I would like to translate it (correct): "Heu escoltat 3 podcasts"
Would it be possible to add the number variable to the translatable string as it's customarily done with such messages?
Related branches
lp:~nik90/podbird/10-organize-project-structure
- Michael Sheldon: Approve
-
Diff: 700 lines (+142/-96)15 files modifiedapp/CMakeLists.txt (+1/-0)
app/Podbird.desktop.in (+1/-1)
app/components/CMakeLists.txt (+7/-0)
app/podbird.qml (+1/-1)
app/settings/About.qml (+1/-0)
app/settings/Credits.qml (+2/-1)
app/settings/ThemeSetting.qml (+2/-0)
app/ui/EpisodesPage.qml (+1/-0)
app/ui/NowPlayingPage.qml (+7/-2)
app/ui/PodcastsTab.qml (+1/-0)
app/ui/SearchPage.qml (+5/-2)
app/ui/SettingsPage.qml (+4/-0)
app/ui/WhatsNewTab.qml (+1/-0)
app/welcomewizard/WelcomeWizard.qml (+1/-1)
po/com.mikeasoft.podbird.pot (+107/-88)
Changed in podbird: | |
status: | Confirmed → Incomplete |
Changed in podbird: | |
status: | New → In Progress |
summary: |
- Add variable to usermetrics string + [i18n] Add variable to usermetrics string |
To post a comment you must log in.
Yeah I copied this thing straight from the music app. Can you let which one of the following is correct,
Method 1: i18n.tr("<b>%1</b> podcasts listened to today")
Method 2: i18n.tr("podcasts listened to today: <b>%1</b>")
The issue with method 1 is that it could show "1 podcasts listened to today" which is grammatical incorrect. But since the usermetrics library doesn't support gettext plurals may be method 2 might be better?