Merge lp:~phablet-team/gallery-app/gallery-app-new-album-i18n into lp:gallery-app

Proposed by Ugo Riboni
Status: Merged
Approved by: Bill Filler
Approved revision: 1050
Merged at revision: 1053
Proposed branch: lp:~phablet-team/gallery-app/gallery-app-new-album-i18n
Merge into: lp:gallery-app
Diff against target: 75 lines (+5/-19)
4 files modified
rc/qml/AlbumEditor/AlbumEditor.qml (+0/-14)
rc/qml/AlbumsOverview.qml (+2/-0)
rc/qml/Components/PopupAlbumPicker.qml (+2/-0)
src/album/album.cpp (+1/-5)
To merge this branch: bzr merge lp:~phablet-team/gallery-app/gallery-app-new-album-i18n
Reviewer Review Type Date Requested Status
Arthur Mello (community) Approve
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+233018@code.launchpad.net

Commit message

Move the new album strings to QML to make them translatable. Remove some dead code.

Description of the change

Move the new album strings to QML to make them translatable. Remove some dead code.

To post a comment you must log in.
1050. By Ugo Riboni

merge changes from trunk

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Arthur Mello (artmello) wrote :

lgtm

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'rc/qml/AlbumEditor/AlbumEditor.qml'
2--- rc/qml/AlbumEditor/AlbumEditor.qml 2014-06-10 00:13:50 +0000
3+++ rc/qml/AlbumEditor/AlbumEditor.qml 2014-09-02 10:41:16 +0000
4@@ -95,20 +95,6 @@
5
6 /*!
7 */
8- function editNewAlbum() {
9- albumEditor.album = albumModel.createOrphan();
10- coverMenu.hide()
11- }
12-
13- /*!
14- */
15- function editAlbum(album) {
16- albumEditor.album = album;
17- coverMenu.hide()
18- }
19-
20- /*!
21- */
22 function setMediaSelectorScrollPos(newScrollPos) {
23 mediaSelectorComponent.setCheckerboardScrollPos(newScrollPos);
24 }
25
26=== modified file 'rc/qml/AlbumsOverview.qml'
27--- rc/qml/AlbumsOverview.qml 2014-06-10 16:56:56 +0000
28+++ rc/qml/AlbumsOverview.qml 2014-09-02 10:41:16 +0000
29@@ -227,6 +227,8 @@
30 iconSource: Qt.resolvedUrl("../img/add.png")
31 onTriggered: {
32 var album = albumCollectionModel.createOrphan();
33+ album.title = i18n.tr("New Photo Album");
34+ album.subtitle = i18n.tr("Subtitle");
35 albumCollectionModel.addOrphan(album);
36
37 albumEditor.album = album;
38
39=== modified file 'rc/qml/Components/PopupAlbumPicker.qml'
40--- rc/qml/Components/PopupAlbumPicker.qml 2013-09-20 13:56:39 +0000
41+++ rc/qml/Components/PopupAlbumPicker.qml 2014-09-02 10:41:16 +0000
42@@ -98,6 +98,8 @@
43 anchors.fill: parent
44 onClicked: {
45 var album = albumGrid.albumCollectionModel.createOrphan();
46+ album.title = i18n.tr("New Photo Album");
47+ album.subtitle = i18n.tr("Subtitle");
48 albumGrid.albumCollectionModel.addOrphan(album);
49
50 popupAlbumPicker.hide();
51
52=== modified file 'src/album/album.cpp'
53--- src/album/album.cpp 2014-04-15 13:27:17 +0000
54+++ src/album/album.cpp 2014-09-02 10:41:16 +0000
55@@ -35,8 +35,6 @@
56 // util
57 #include "variants.h"
58
59-const char *Album::DEFAULT_TITLE = "New Photo Album";
60-const char *Album::DEFAULT_SUBTITLE = "Subtitle";
61 const int Album::PAGES_PER_COVER = 1;
62 // We use the left page's number as current_page_. -1 because the cover is 0
63 // and we want it to show up on the right.
64@@ -47,10 +45,8 @@
65 * \param parent
66 */
67 Album::Album(QObject *parent)
68- : ContainerSource(parent, DEFAULT_TITLE, MediaCollection::exposureDateTimeAscendingComparator),
69+ : ContainerSource(parent, "New Album", MediaCollection::exposureDateTimeAscendingComparator),
70 m_albumTemplate(0),
71- m_title(DEFAULT_TITLE),
72- m_subtitle(DEFAULT_SUBTITLE),
73 m_newAlbum(false),
74 m_albumTable(0)
75 {

Subscribers

People subscribed via source and target branches

to all changes: