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
=== modified file 'rc/qml/EventsOverview.qml'
--- rc/qml/EventsOverview.qml 2014-08-20 18:30:56 +0000
+++ rc/qml/EventsOverview.qml 2014-09-17 17:27:20 +0000
@@ -62,8 +62,7 @@
62 Component {62 Component {
63 id: deleteDialog63 id: deleteDialog
64 DeleteDialog {64 DeleteDialog {
65 //FIXME this count > 1 thing needs to be properly replaced by translation wrappers allowing for multiple plural forms65 title: i18n.tr("Delete %1 photo", "Delete %1 photos", organicEventView.selection.selectedCount).arg(organicEventView.selection.selectedCount)
66 title: organicEventView.selection.selectedCount > 1 ? "Delete photos" : "Delete a photo"
6766
68 onDeleteClicked: {67 onDeleteClicked: {
69 organicEventView.selection.model.destroySelectedMedia();68 organicEventView.selection.model.destroySelectedMedia();
7069
=== modified file 'rc/qml/PhotosOverview.qml'
--- rc/qml/PhotosOverview.qml 2014-08-20 18:30:56 +0000
+++ rc/qml/PhotosOverview.qml 2014-09-17 17:27:20 +0000
@@ -70,10 +70,7 @@
70 Component {70 Component {
71 id: deleteDialog71 id: deleteDialog
72 DeleteDialog {72 DeleteDialog {
73 //FIXME this count > 1 thing needs to be properly replaced by translation wrappers allowing for multiple plural forms73 title: i18n.tr("Delete %1 photo", "Delete %1 photos", d.selection.selectedCount).arg(d.selection.selectedCount)
74 title: d.selection.selectedCount > 1 ? i18n.tr("Delete photos") :
75 i18n.tr("Delete a photo")
76
77 onDeleteClicked: {74 onDeleteClicked: {
78 d.selection.model.destroySelectedMedia();75 d.selection.model.destroySelectedMedia();
79 photosOverview.leaveSelectionMode();76 photosOverview.leaveSelectionMode();

Subscribers

People subscribed via source and target branches