Merge lp:~nik90/ubuntu-clock-app/fix-translation-plural-forms into lp:ubuntu-clock-app

Proposed by Nekhelesh Ramananthan
Status: Merged
Approved by: David Planella
Approved revision: 219
Merged at revision: 219
Proposed branch: lp:~nik90/ubuntu-clock-app/fix-translation-plural-forms
Merge into: lp:ubuntu-clock-app
Diff against target: 108 lines (+19/-15)
3 files modified
app/alarm/AlarmSettingsPage.qml (+10/-10)
debian/changelog (+2/-1)
po/com.ubuntu.clock.pot (+7/-4)
To merge this branch: bzr merge lp:~nik90/ubuntu-clock-app/fix-translation-plural-forms
Reviewer Review Type Date Requested Status
David Planella Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+252838@code.launchpad.net

Commit message

- Added plural translation forms to strings in the AlarmSettings.qml file.
- Updated pot file to also include the corrected city name "Simferopol" that was missed in rev 212.

Description of the change

- Added plural translation forms to strings in the AlarmSettings.qml file.
- Updated pot file to also include the corrected city name "Simferopol" that was missed in rev 212.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
David Planella (dpm) wrote :

Looks good to me, just added two notes.

review: Approve
Revision history for this message
Phillip Sz (phillip-sz) wrote :

thanks a lot!

Revision history for this message
SirVer (sirver) wrote :

Sorry to interject in this code review, but the Widelands team is currently investigating using test bots on Launchpad that check pull requests. Your team seem to have managed to do that, could you share some insights/configuration hints/documentation about the process? Are you using a self-hosted build bot or are you integrating with something like travis?

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

We're using Jenkins which is hosted by the Canonical team which essentially runs the necessary autopilot and qml unit tests to check for any regressions. This infrastructure was set up by the canonical team and as such I do not have much knowledge about its documentation. I would recommend coming by the #ubuntu-app-devel or #ubuntu-touch and contacting popey, dpm or fginther for more information.

Revision history for this message
SirVer (sirver) wrote :

Nik, thanks for your information. I forgot to set notifications for this merge request so I didn't see it till now. Much appreciated.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'app/alarm/AlarmSettingsPage.qml'
--- app/alarm/AlarmSettingsPage.qml 2014-10-16 19:03:51 +0000
+++ app/alarm/AlarmSettingsPage.qml 2015-03-12 23:25:02 +0000
@@ -50,10 +50,10 @@
50 Component.onCompleted: initialise()50 Component.onCompleted: initialise()
5151
52 function initialise() {52 function initialise() {
53 durationModel.append({ "duration": 10, "text": i18n.tr("%1 minutes").arg(10) })53 durationModel.append({ "duration": 10, "text": i18n.tr("%1 minute", "%1 minutes", 10).arg(10) })
54 durationModel.append({ "duration": 20, "text": i18n.tr("%1 minutes").arg(20) })54 durationModel.append({ "duration": 20, "text": i18n.tr("%1 minute", "%1 minutes", 20).arg(20) })
55 durationModel.append({ "duration": 30, "text": i18n.tr("%1 minutes").arg(30) })55 durationModel.append({ "duration": 30, "text": i18n.tr("%1 minute", "%1 minutes", 30).arg(30) })
56 durationModel.append({ "duration": 60, "text": i18n.tr("%1 minutes").arg(60) })56 durationModel.append({ "duration": 60, "text": i18n.tr("%1 minute", "%1 minutes", 60).arg(60) })
57 }57 }
58 }58 }
5959
@@ -62,10 +62,10 @@
62 Component.onCompleted: initialise()62 Component.onCompleted: initialise()
6363
64 function initialise() {64 function initialise() {
65 snoozeModel.append({ "duration": 2, "text": i18n.tr("%1 minutes").arg(2) })65 snoozeModel.append({ "duration": 2, "text": i18n.tr("%1 minute", "%1 minutes", 2).arg(2) })
66 snoozeModel.append({ "duration": 4, "text": i18n.tr("%1 minutes").arg(4) })66 snoozeModel.append({ "duration": 4, "text": i18n.tr("%1 minute", "%1 minutes", 4).arg(4) })
67 snoozeModel.append({ "duration": 5, "text": i18n.tr("%1 minutes").arg(5) })67 snoozeModel.append({ "duration": 5, "text": i18n.tr("%1 minute", "%1 minutes", 5).arg(5) })
68 snoozeModel.append({ "duration": 10, "text": i18n.tr("%1 minutes").arg(10) })68 snoozeModel.append({ "duration": 10, "text": i18n.tr("%1 minute", "%1 minutes", 10).arg(10) })
69 }69 }
70 }70 }
7171
@@ -143,7 +143,7 @@
143 SubtitledListItem {143 SubtitledListItem {
144 id: _header144 id: _header
145 text: i18n.tr("Silence after")145 text: i18n.tr("Silence after")
146 subText: i18n.tr("%1 minutes").arg(alarmSettings.duration)146 subText: i18n.tr("%1 minute", "%1 minutes", alarmSettings.duration).arg(alarmSettings.duration)
147 onClicked: _alarmDuration.expanded = true147 onClicked: _alarmDuration.expanded = true
148148
149 Icon {149 Icon {
@@ -212,7 +212,7 @@
212 SubtitledListItem {212 SubtitledListItem {
213 id: _snoozeHeader213 id: _snoozeHeader
214 text: i18n.tr("Snooze for")214 text: i18n.tr("Snooze for")
215 subText: i18n.tr("%1 minutes").arg(alarmSettings.snoozeDuration)215 subText: i18n.tr("%1 minute", "%1 minutes", alarmSettings.snoozeDuration).arg(alarmSettings.snoozeDuration)
216 onClicked: _alarmSnooze.expanded = true216 onClicked: _alarmSnooze.expanded = true
217217
218 Icon {218 Icon {
219219
=== modified file 'debian/changelog'
--- debian/changelog 2015-03-06 17:12:24 +0000
+++ debian/changelog 2015-03-12 23:25:02 +0000
@@ -10,7 +10,8 @@
10 * Fixed predefined cities and countries not being translatable in the timezone10 * Fixed predefined cities and countries not being translatable in the timezone
11 selection dialog (LP: #1354466)11 selection dialog (LP: #1354466)
12 * Fixed empty state description not wrapping (LP: #1428165)12 * Fixed empty state description not wrapping (LP: #1428165)
13 * Fixed edit alarm crash issue in vivid (thanks to Zsombor)13 * Fixed edit alarm crash issue in vivid (thanks to Zsombor) (LP: #1429273)
14 * Fixed strings not following gettext-style plural forms. (LP: #1431446)
1415
15 [Brendan Donegan]16 [Brendan Donegan]
16 * Fixed AP failure by waiting for the bottom edge tip visible property to be true17 * Fixed AP failure by waiting for the bottom edge tip visible property to be true
1718
=== modified file 'po/com.ubuntu.clock.pot'
--- po/com.ubuntu.clock.pot 2015-03-06 17:11:42 +0000
+++ po/com.ubuntu.clock.pot 2015-03-12 23:25:02 +0000
@@ -8,7 +8,7 @@
8msgstr ""8msgstr ""
9"Project-Id-Version: \n"9"Project-Id-Version: \n"
10"Report-Msgid-Bugs-To: \n"10"Report-Msgid-Bugs-To: \n"
11"POT-Creation-Date: 2015-03-06 17:09+0000\n"11"POT-Creation-Date: 2015-03-13 00:18+0100\n"
12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14"Language-Team: LANGUAGE <LL@li.org>\n"14"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -16,6 +16,7 @@
16"MIME-Version: 1.0\n"16"MIME-Version: 1.0\n"
17"Content-Type: text/plain; charset=UTF-8\n"17"Content-Type: text/plain; charset=UTF-8\n"
18"Content-Transfer-Encoding: 8bit\n"18"Content-Transfer-Encoding: 8bit\n"
19"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
1920
20#: ../app/alarm/AlarmLabel.qml:30 ../app/alarm/AlarmLabel.qml:5621#: ../app/alarm/AlarmLabel.qml:30 ../app/alarm/AlarmLabel.qml:56
21#: ../app/alarm/EditAlarmPage.qml:29122#: ../app/alarm/EditAlarmPage.qml:291
@@ -71,8 +72,10 @@
71#: ../app/alarm/AlarmSettingsPage.qml:14672#: ../app/alarm/AlarmSettingsPage.qml:146
72#: ../app/alarm/AlarmSettingsPage.qml:21573#: ../app/alarm/AlarmSettingsPage.qml:215
73#, qt-format74#, qt-format
74msgid "%1 minutes"75msgid "%1 minute"
75msgstr ""76msgid_plural "%1 minutes"
77msgstr[0] ""
78msgstr[1] ""
7679
77#: ../app/alarm/AlarmSettingsPage.qml:9280#: ../app/alarm/AlarmSettingsPage.qml:92
78msgid "Alarm volume"81msgid "Alarm volume"
@@ -1786,7 +1789,7 @@
1786msgstr ""1789msgstr ""
17871790
1788#: ../backend/modules/Timezone/statictimezonemodel.cpp:3061791#: ../backend/modules/Timezone/statictimezonemodel.cpp:306
1789msgid "Simferopol’"1792msgid "Simferopol"
1790msgstr ""1793msgstr ""
17911794
1792#: ../backend/modules/Timezone/statictimezonemodel.cpp:3071795#: ../backend/modules/Timezone/statictimezonemodel.cpp:307

Subscribers

People subscribed via source and target branches