Merge lp:~gang65/camera-app/camera-app-fix-plural-form into lp:camera-app

Proposed by Bartosz Kosiorek
Status: Merged
Approved by: Florian Boucault
Approved revision: 568
Merged at revision: 596
Proposed branch: lp:~gang65/camera-app/camera-app-fix-plural-form
Merge into: lp:camera-app
Diff against target: 188 lines (+49/-30)
3 files modified
camera-app.qml (+8/-4)
po/CMakeLists.txt (+5/-2)
po/camera-app.pot (+36/-24)
To merge this branch: bzr merge lp:~gang65/camera-app/camera-app-fix-plural-form
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Ubuntu Phablet Team Pending
Review via email: mp+262542@code.launchpad.net

Commit message

Fix plural form

Description of the change

Fix plural form

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'camera-app.qml'
2--- camera-app.qml 2015-04-24 12:12:23 +0000
3+++ camera-app.qml 2015-06-21 17:01:29 +0000
4@@ -220,8 +220,10 @@
5 Metric {
6 id: metricPhotos
7 name: "camera-photos"
8- format: i18n.tr("<b>%1</b> photos taken today")
9- emptyFormat: i18n.tr("No photos taken today")
10+ // Mark text for translation at a later point.
11+ // It will be translated by dtr (or dgettext) to allows plural forms
12+ format: i18n.tag("<b>%1</b> photos taken today")
13+ emptyFormat: i18n.tag("No photos taken today")
14 domain: "camera-app"
15 minimum: 0.0
16 }
17@@ -229,8 +231,10 @@
18 Metric {
19 id: metricVideos
20 name: "camera-videos"
21- format: i18n.tr("<b>%1</b> videos recorded today")
22- emptyFormat: i18n.tr("No videos recorded today")
23+ // Mark text for translation at a later point.
24+ // It will be translated by dtr (or dgettext) to allows plural forms
25+ format: i18n.tag("<b>%1</b> videos recorded today")
26+ emptyFormat: i18n.tag("No videos recorded today")
27 domain: "camera-app"
28 minimum: 0.0
29 }
30
31=== modified file 'po/CMakeLists.txt'
32--- po/CMakeLists.txt 2014-09-05 12:04:54 +0000
33+++ po/CMakeLists.txt 2015-06-21 17:01:29 +0000
34@@ -17,8 +17,11 @@
35 -D ${CMAKE_CURRENT_BINARY_DIR}
36 --from-code=UTF-8
37 --c++ --qt --add-comments=TRANSLATORS
38- --keyword=tr --keyword=N_ --keyword=tr:1,2
39- --keyword=QT_TR_NOOP
40+ --keyword=tr
41+ --keyword=N_
42+ --keyword=tr:1,2
43+ --keyword=QT_TR_NOOP
44+ --keyword=tag
45 --package-name=camera-app
46 --copyright-holder='Canonical Ltd.'
47 ${I18N_SRC_FILES})
48
49=== modified file 'po/camera-app.pot'
50--- po/camera-app.pot 2015-02-23 19:00:52 +0000
51+++ po/camera-app.pot 2015-06-21 17:01:29 +0000
52@@ -8,7 +8,7 @@
53 msgstr ""
54 "Project-Id-Version: camera-app\n"
55 "Report-Msgid-Bugs-To: \n"
56-"POT-Creation-Date: 2015-02-23 15:59-0300\n"
57+"POT-Creation-Date: 2015-06-21 18:57+0200\n"
58 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
59 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
60 "Language-Team: LANGUAGE <LL@li.org>\n"
61@@ -25,7 +25,7 @@
62 msgid "Delete"
63 msgstr ""
64
65-#: ../DeleteDialog.qml:42 ../ViewFinderOverlay.qml:805
66+#: ../DeleteDialog.qml:42 ../ViewFinderOverlay.qml:775
67 msgid "Cancel"
68 msgstr ""
69
70@@ -65,63 +65,75 @@
71 msgid "Edit"
72 msgstr ""
73
74-#: ../ViewFinderOverlay.qml:199 ../ViewFinderOverlay.qml:222
75-#: ../ViewFinderOverlay.qml:250 ../ViewFinderOverlay.qml:273
76-#: ../ViewFinderOverlay.qml:350
77+#: ../ViewFinderOverlay.qml:200 ../ViewFinderOverlay.qml:223
78+#: ../ViewFinderOverlay.qml:251 ../ViewFinderOverlay.qml:274
79+#: ../ViewFinderOverlay.qml:351
80+#: ../build/tests/unittests/tst_BottomEdgeIndicators.qml:42
81+#: ../build/tests/unittests/tst_BottomEdgeIndicators.qml:65
82+#: ../build/tests/unittests/tst_BottomEdgeIndicators.qml:86
83+#: ../tests/unittests/tst_BottomEdgeIndicators.qml:42
84+#: ../tests/unittests/tst_BottomEdgeIndicators.qml:65
85+#: ../tests/unittests/tst_BottomEdgeIndicators.qml:86
86 msgid "On"
87 msgstr ""
88
89-#: ../ViewFinderOverlay.qml:204 ../ViewFinderOverlay.qml:232
90-#: ../ViewFinderOverlay.qml:255 ../ViewFinderOverlay.qml:278
91-#: ../ViewFinderOverlay.qml:297 ../ViewFinderOverlay.qml:355
92+#: ../ViewFinderOverlay.qml:205 ../ViewFinderOverlay.qml:233
93+#: ../ViewFinderOverlay.qml:256 ../ViewFinderOverlay.qml:279
94+#: ../ViewFinderOverlay.qml:298 ../ViewFinderOverlay.qml:356
95+#: ../build/tests/unittests/tst_BottomEdgeIndicators.qml:47
96+#: ../build/tests/unittests/tst_BottomEdgeIndicators.qml:70
97+#: ../build/tests/unittests/tst_BottomEdgeIndicators.qml:91
98+#: ../tests/unittests/tst_BottomEdgeIndicators.qml:47
99+#: ../tests/unittests/tst_BottomEdgeIndicators.qml:70
100+#: ../tests/unittests/tst_BottomEdgeIndicators.qml:91
101 msgid "Off"
102 msgstr ""
103
104-#: ../ViewFinderOverlay.qml:227
105+#: ../ViewFinderOverlay.qml:228
106 msgid "Auto"
107 msgstr ""
108
109-#: ../ViewFinderOverlay.qml:264
110+#: ../ViewFinderOverlay.qml:265
111 msgid "HDR"
112 msgstr ""
113
114-#: ../ViewFinderOverlay.qml:302
115+#: ../ViewFinderOverlay.qml:303
116 msgid "5 seconds"
117 msgstr ""
118
119-#: ../ViewFinderOverlay.qml:307
120+#: ../ViewFinderOverlay.qml:308
121 msgid "15 seconds"
122 msgstr ""
123
124-#: ../ViewFinderOverlay.qml:324
125+#: ../ViewFinderOverlay.qml:325
126 msgid "Fine Quality"
127 msgstr ""
128
129-#: ../ViewFinderOverlay.qml:328
130+#: ../ViewFinderOverlay.qml:329
131 msgid "Normal Quality"
132 msgstr ""
133
134-#: ../ViewFinderOverlay.qml:332
135+#: ../ViewFinderOverlay.qml:333
136 msgid "Basic Quality"
137 msgstr ""
138
139-#: ../ViewFinderOverlay.qml:364
140+#: ../ViewFinderOverlay.qml:365
141 msgid "SD"
142 msgstr ""
143
144-#: ../ViewFinderOverlay.qml:372
145+#: ../ViewFinderOverlay.qml:373
146 msgid "Save to SD Card"
147 msgstr ""
148
149-#: ../ViewFinderOverlay.qml:377
150+#: ../ViewFinderOverlay.qml:378
151 msgid "Save internally"
152 msgstr ""
153
154-#: ../ViewFinderOverlay.qml:802
155+#: ../ViewFinderOverlay.qml:772
156 msgid "Low storage space"
157 msgstr ""
158
159-#: ../ViewFinderOverlay.qml:803
160+#: ../ViewFinderOverlay.qml:773
161 msgid ""
162 "You are running out of storage space. To continue without interruptions, "
163 "free up storage space now."
164@@ -167,21 +179,21 @@
165 msgid "Lighting Condition;Day;Cloudy;Inside"
166 msgstr ""
167
168-#: ../camera-app.qml:221
169+#: ../camera-app.qml:225
170 #, qt-format
171 msgid "<b>%1</b> photos taken today"
172 msgstr ""
173
174-#: ../camera-app.qml:222
175+#: ../camera-app.qml:226
176 msgid "No photos taken today"
177 msgstr ""
178
179-#: ../camera-app.qml:230
180+#: ../camera-app.qml:236
181 #, qt-format
182 msgid "<b>%1</b> videos recorded today"
183 msgstr ""
184
185-#: ../camera-app.qml:231
186+#: ../camera-app.qml:237
187 msgid "No videos recorded today"
188 msgstr ""
189

Subscribers

People subscribed via source and target branches