Merge lp:~dpm/gallery-app/i18n-strings into lp:gallery-app

Proposed by David Planella
Status: Merged
Approved by: Bill Filler
Approved revision: 1068
Merged at revision: 1067
Proposed branch: lp:~dpm/gallery-app/i18n-strings
Merge into: lp:gallery-app
Diff against target: 29 lines (+2/-6)
2 files modified
rc/qml/EventsOverview.qml (+1/-2)
rc/qml/PhotosOverview.qml (+1/-4)
To merge this branch: bzr merge lp:~dpm/gallery-app/i18n-strings
Reviewer Review Type Date Requested Status
Bill Filler (community) Approve
Review via email: mp+235017@code.launchpad.net

Commit message

Mark photo deletion strings for translation

Description of the change

Superseding https://code.launchpad.net/~vrruiz/gallery-app/i18n-strings/+merge/234671 to revert the .pot update change and include only the code fix.

After a conversation with Bill Filler, we've decided to do this to ease the landing. In the same silo reserved for Gallery, there's another MP that touches the .pot file too, and this would generate merge conflicts with this branch.

The .pot file will be updated manually after the two branches have landed.

To post a comment you must log in.
Revision history for this message
Bill Filler (bfiller) wrote :

approved

review: Approve
Revision history for this message
Sebastien Bacher (seb128) wrote :

in fact it seems that using the count created an off-by-one count error case, see https://bugs.launchpad.net/gallery-app/+bug/1375713

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'rc/qml/EventsOverview.qml'
2--- rc/qml/EventsOverview.qml 2014-08-20 18:30:56 +0000
3+++ rc/qml/EventsOverview.qml 2014-09-17 17:27:20 +0000
4@@ -62,8 +62,7 @@
5 Component {
6 id: deleteDialog
7 DeleteDialog {
8- //FIXME this count > 1 thing needs to be properly replaced by translation wrappers allowing for multiple plural forms
9- title: organicEventView.selection.selectedCount > 1 ? "Delete photos" : "Delete a photo"
10+ title: i18n.tr("Delete %1 photo", "Delete %1 photos", organicEventView.selection.selectedCount).arg(organicEventView.selection.selectedCount)
11
12 onDeleteClicked: {
13 organicEventView.selection.model.destroySelectedMedia();
14
15=== modified file 'rc/qml/PhotosOverview.qml'
16--- rc/qml/PhotosOverview.qml 2014-08-20 18:30:56 +0000
17+++ rc/qml/PhotosOverview.qml 2014-09-17 17:27:20 +0000
18@@ -70,10 +70,7 @@
19 Component {
20 id: deleteDialog
21 DeleteDialog {
22- //FIXME this count > 1 thing needs to be properly replaced by translation wrappers allowing for multiple plural forms
23- title: d.selection.selectedCount > 1 ? i18n.tr("Delete photos") :
24- i18n.tr("Delete a photo")
25-
26+ title: i18n.tr("Delete %1 photo", "Delete %1 photos", d.selection.selectedCount).arg(d.selection.selectedCount)
27 onDeleteClicked: {
28 d.selection.model.destroySelectedMedia();
29 photosOverview.leaveSelectionMode();

Subscribers

People subscribed via source and target branches