Merge lp:~dobey/ubuntu-printing-app/fix-i18n into lp:ubuntu-printing-app
- fix-i18n
- Merge into trunk
Proposed by
dobey
Status: | Merged |
---|---|
Approved by: | Andrew Hayzen |
Approved revision: | 50 |
Merged at revision: | 33 |
Proposed branch: | lp:~dobey/ubuntu-printing-app/fix-i18n |
Merge into: | lp:ubuntu-printing-app |
Prerequisite: | lp:~dobey/ubuntu-printing-app/add-notifier-daemon |
Diff against target: |
370 lines (+144/-117) 4 files modified
CMakeLists.txt (+1/-11) po/CMakeLists.txt (+13/-44) po/ubuntu-printing-app.pot (+125/-58) ubuntu-printing-app/CMakeLists.txt (+5/-4) |
To merge this branch: | bzr merge lp:~dobey/ubuntu-printing-app/fix-i18n |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrew Hayzen (community) | Approve | ||
Review via email: mp+320263@code.launchpad.net |
Commit message
Use intltool module from cmake-extras and update template.
Description of the change
To post a comment you must log in.
Revision history for this message
dobey (dobey) wrote : | # |
No. Regenerating the .pot file with every build will create lots of needless changes to the file when strings aren't changed, and will create situations with conflicts when multiple people are working on different branches. The file should only be updated when strings are added or removed, generally. "make ubuntu-
Revision history for this message
Andrew Hayzen (ahayzen) wrote : | # |
OK thanks, this works nicely in that case :-)
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'CMakeLists.txt' | |||
2 | --- CMakeLists.txt 2017-03-17 21:17:09 +0000 | |||
3 | +++ CMakeLists.txt 2017-03-17 21:17:09 +0000 | |||
4 | @@ -5,15 +5,7 @@ | |||
5 | 5 | enable_testing() | 5 | enable_testing() |
6 | 6 | 6 | ||
7 | 7 | # Load translation tools | 7 | # Load translation tools |
17 | 8 | find_program(INTLTOOL_MERGE intltool-merge) | 8 | find_package(Intltool REQUIRED) |
9 | 9 | if(NOT INTLTOOL_MERGE) | ||
10 | 10 | message(FATAL_ERROR "Could not find intltool-merge, please install the intltool package") | ||
11 | 11 | endif() | ||
12 | 12 | |||
13 | 13 | find_program(INTLTOOL_EXTRACT intltool-extract) | ||
14 | 14 | if(NOT INTLTOOL_EXTRACT) | ||
15 | 15 | message(FATAL_ERROR "Could not find intltool-extract, please install the intltool package") | ||
16 | 16 | endif() | ||
18 | 17 | 9 | ||
19 | 18 | # Set the vars | 10 | # Set the vars |
20 | 19 | set(APP_NAME ubuntu-printing-app) | 11 | set(APP_NAME ubuntu-printing-app) |
21 | @@ -60,8 +52,6 @@ | |||
22 | 60 | 52 | ||
23 | 61 | # Setup gettext defs and include po directory | 53 | # Setup gettext defs and include po directory |
24 | 62 | set(GETTEXT_PACKAGE "ubuntu-printing-app") | 54 | set(GETTEXT_PACKAGE "ubuntu-printing-app") |
25 | 63 | add_definitions(-DI18N_DOMAIN="${GETTEXT_PACKAGE}") | ||
26 | 64 | |||
27 | 65 | add_subdirectory(po) | 55 | add_subdirectory(po) |
28 | 66 | 56 | ||
29 | 67 | # Add tests | 57 | # Add tests |
30 | 68 | 58 | ||
31 | === modified file 'po/CMakeLists.txt' | |||
32 | --- po/CMakeLists.txt 2017-01-24 10:58:19 +0000 | |||
33 | +++ po/CMakeLists.txt 2017-03-17 21:17:09 +0000 | |||
34 | @@ -1,44 +1,13 @@ | |||
79 | 1 | project(ubuntu-printing-app-translations) | 1 | |
80 | 2 | 2 | intltool_update_potfile( | |
81 | 3 | include(FindGettext) | 3 | KEYWORDS "_" "_:1,2" "N_" "N_:1,2" "tr" "tr:1,2" |
82 | 4 | find_program(GETTEXT_XGETTEXT_EXECUTABLE xgettext) | 4 | GETTEXT_PACKAGE ${GETTEXT_PACKAGE} |
83 | 5 | 5 | COPYRIGHT_HOLDER "Canonical Ltd." | |
84 | 6 | file(RELATIVE_PATH DESKTOP_FILE_IN_IN ${CMAKE_SOURCE_DIR} | 6 | FILE_GLOBS "${CMAKE_SOURCE_DIR}/*.desktop.in.in" "${CMAKE_SOURCE_DIR}/*.qml" |
85 | 7 | ${CMAKE_SOURCE_DIR}/ubuntu-printing-app/${DESKTOP_FILE}.in.in) | 7 | FILTER "tests/*" |
86 | 8 | file(RELATIVE_PATH DESKTOP_FILE_IN_IN_H ${CMAKE_SOURCE_DIR} | 8 | ) |
87 | 9 | ${CMAKE_CURRENT_SOURCE_DIR}/${DESKTOP_FILE_IN_IN}.h) | 9 | |
88 | 10 | 10 | intltool_install_translations( | |
89 | 11 | file(GLOB_RECURSE I18N_SRC_FILES | 11 | ALL |
90 | 12 | RELATIVE ${CMAKE_SOURCE_DIR} | 12 | GETTEXT_PACKAGE ${GETTEXT_PACKAGE} |
91 | 13 | ${CMAKE_SOURCE_DIR}/ubuntu-printing-app/**.qml) | 13 | ) |
48 | 14 | list(SORT I18N_SRC_FILES) | ||
49 | 15 | |||
50 | 16 | set(DOMAIN ${GETTEXT_PACKAGE}) | ||
51 | 17 | set(POT_FILE ${DOMAIN}.pot) | ||
52 | 18 | file(GLOB PO_FILES *.po) | ||
53 | 19 | |||
54 | 20 | add_custom_target(${POT_FILE} ALL | ||
55 | 21 | COMMENT "Generating translation template" | ||
56 | 22 | COMMAND touch ${POT_FILE} | ||
57 | 23 | COMMAND ${INTLTOOL_EXTRACT} --update --type=gettext/ini | ||
58 | 24 | --srcdir=${CMAKE_SOURCE_DIR} ${DESKTOP_FILE_IN_IN} | ||
59 | 25 | COMMAND ${GETTEXT_XGETTEXT_EXECUTABLE} -o ${POT_FILE} | ||
60 | 26 | -D ${CMAKE_SOURCE_DIR} | ||
61 | 27 | --from-code=UTF-8 | ||
62 | 28 | --c++ --qt --add-comments=TRANSLATORS | ||
63 | 29 | --keyword=tr --keyword=tr:1,2 --keyword=N_ | ||
64 | 30 | -j | ||
65 | 31 | --package-name=ubuntu-printing-app | ||
66 | 32 | --copyright-holder='Canonical Ltd.' | ||
67 | 33 | -D ${CMAKE_SOURCE_DIR} ${I18N_SRC_FILES} | ||
68 | 34 | -D ${CMAKE_BINARY_DIR} ${DESKTOP_FILE_IN_IN_H} | ||
69 | 35 | COMMAND ${CMAKE_COMMAND} -E copy ${POT_FILE} ${CMAKE_CURRENT_SOURCE_DIR}) | ||
70 | 36 | |||
71 | 37 | foreach(PO_FILE ${PO_FILES}) | ||
72 | 38 | get_filename_component(LANG ${PO_FILE} NAME_WE) | ||
73 | 39 | gettext_process_po_files(${LANG} ALL PO_FILES ${PO_FILE}) | ||
74 | 40 | set(INSTALL_DIR ${CMAKE_INSTALL_LOCALEDIR}/${LANG}/LC_MESSAGES) | ||
75 | 41 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${LANG}.gmo | ||
76 | 42 | DESTINATION ${INSTALL_DIR} | ||
77 | 43 | RENAME ${DOMAIN}.mo) | ||
78 | 44 | endforeach(PO_FILE) | ||
92 | 45 | 14 | ||
93 | === modified file 'po/ubuntu-printing-app.pot' | |||
94 | --- po/ubuntu-printing-app.pot 2017-02-28 15:34:29 +0000 | |||
95 | +++ po/ubuntu-printing-app.pot 2017-03-17 21:17:09 +0000 | |||
96 | @@ -1,129 +1,196 @@ | |||
97 | 1 | # SOME DESCRIPTIVE TITLE. | 1 | # SOME DESCRIPTIVE TITLE. |
98 | 2 | # Copyright (C) YEAR Canonical Ltd. | 2 | # Copyright (C) YEAR Canonical Ltd. |
100 | 3 | # This file is distributed under the same license as the ubuntu-printing-app package. | 3 | # This file is distributed under the same license as the PACKAGE package. |
101 | 4 | # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | 4 | # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
102 | 5 | # | 5 | # |
103 | 6 | #, fuzzy | 6 | #, fuzzy |
104 | 7 | msgid "" | 7 | msgid "" |
105 | 8 | msgstr "" | 8 | msgstr "" |
107 | 9 | "Project-Id-Version: ubuntu-printing-app\n" | 9 | "Project-Id-Version: PACKAGE VERSION\n" |
108 | 10 | "Report-Msgid-Bugs-To: \n" | 10 | "Report-Msgid-Bugs-To: \n" |
110 | 11 | "POT-Creation-Date: 2017-02-28 15:29+0000\n" | 11 | "POT-Creation-Date: 2017-03-17 17:00-0400\n" |
111 | 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
112 | 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
113 | 14 | "Language-Team: LANGUAGE <LL@li.org>\n" | 14 | "Language-Team: LANGUAGE <LL@li.org>\n" |
114 | 15 | "Language: \n" | 15 | "Language: \n" |
115 | 16 | "MIME-Version: 1.0\n" | 16 | "MIME-Version: 1.0\n" |
117 | 17 | "Content-Type: text/plain; charset=CHARSET\n" | 17 | "Content-Type: text/plain; charset=UTF-8\n" |
118 | 18 | "Content-Transfer-Encoding: 8bit\n" | 18 | "Content-Transfer-Encoding: 8bit\n" |
121 | 19 | 19 | "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" | |
122 | 20 | #: ubuntu-printing-app/Main.qml:66 | 20 | |
123 | 21 | #: ../notifier/src/notify-engine.cpp:48 | ||
124 | 22 | #, c-format | ||
125 | 23 | msgid "A cover is open on the printer “%s”." | ||
126 | 24 | msgstr "" | ||
127 | 25 | |||
128 | 26 | #: ../notifier/src/notify-engine.cpp:49 | ||
129 | 27 | #, c-format | ||
130 | 28 | msgid "The printer “%s” can’t be used, because required software is missing." | ||
131 | 29 | msgstr "" | ||
132 | 30 | |||
133 | 31 | #: ../notifier/src/notify-engine.cpp:50 | ||
134 | 32 | #, c-format | ||
135 | 33 | msgid "A door is open on the printer “%s”." | ||
136 | 34 | msgstr "" | ||
137 | 35 | |||
138 | 36 | #: ../notifier/src/notify-engine.cpp:51 | ||
139 | 37 | #, c-format | ||
140 | 38 | msgid "The printer “%s” is out of paper." | ||
141 | 39 | msgstr "" | ||
142 | 40 | |||
143 | 41 | #: ../notifier/src/notify-engine.cpp:52 | ||
144 | 42 | #, c-format | ||
145 | 43 | msgid "The printer “%s” is low on paper." | ||
146 | 44 | msgstr "" | ||
147 | 45 | |||
148 | 46 | #: ../notifier/src/notify-engine.cpp:53 | ||
149 | 47 | #, c-format | ||
150 | 48 | msgid "The printer “%s” is currently off-line." | ||
151 | 49 | msgstr "" | ||
152 | 50 | |||
153 | 51 | #: ../notifier/src/notify-engine.cpp:54 | ||
154 | 52 | #, c-format | ||
155 | 53 | msgid "The printer “%s” has an unknown problem." | ||
156 | 54 | msgstr "" | ||
157 | 55 | |||
158 | 56 | #: ../notifier/src/notify-engine.cpp:55 | ||
159 | 57 | #, c-format | ||
160 | 58 | msgid "The printer “%s” is out of toner." | ||
161 | 59 | msgstr "" | ||
162 | 60 | |||
163 | 61 | #: ../notifier/src/notify-engine.cpp:56 | ||
164 | 62 | #, c-format | ||
165 | 63 | msgid "The printer “%s” is low on toner." | ||
166 | 64 | msgstr "" | ||
167 | 65 | |||
168 | 66 | #: ../notifier/src/notify-engine.cpp:167 | ||
169 | 67 | #, c-format | ||
170 | 68 | msgid "“%s” has printed." | ||
171 | 69 | msgstr "" | ||
172 | 70 | |||
173 | 71 | #: ../notifier/src/notify-engine.cpp:185 | ||
174 | 72 | #, c-format | ||
175 | 73 | msgid "You have %d job queued to print on this printer." | ||
176 | 74 | msgid_plural "You have %d jobs queued to print on this printer." | ||
177 | 75 | msgstr[0] "" | ||
178 | 76 | msgstr[1] "" | ||
179 | 77 | |||
180 | 78 | #: ../notifier/src/notify-engine.cpp:193 | ||
181 | 79 | #: ../ubuntu-printing-app/components/AlertDialog.qml:28 | ||
182 | 80 | msgid "OK" | ||
183 | 81 | msgstr "" | ||
184 | 82 | |||
185 | 83 | #: ../notifier/src/notify-engine.cpp:195 | ||
186 | 84 | msgid "Settings…" | ||
187 | 85 | msgstr "" | ||
188 | 86 | |||
189 | 87 | #. notifier | ||
190 | 88 | #. printing | ||
191 | 89 | #. ubuntu | ||
192 | 90 | #: ../ubuntu-printing-app/ubuntu-printing-app.desktop.in.in.h:1 | ||
193 | 91 | #: ../ubuntu-printing-app/components/PrintRow.qml:74 | ||
194 | 92 | msgid "Print" | ||
195 | 93 | msgstr "" | ||
196 | 94 | |||
197 | 95 | #: ../ubuntu-printing-app/ubuntu-printing-app.desktop.in.in.h:2 | ||
198 | 96 | msgid "Print;Printing;" | ||
199 | 97 | msgstr "" | ||
200 | 98 | |||
201 | 99 | #: ../ubuntu-printing-app/Main.qml:66 | ||
202 | 21 | msgid "Document is invalid" | 100 | msgid "Document is invalid" |
203 | 22 | msgstr "" | 101 | msgstr "" |
204 | 23 | 102 | ||
206 | 24 | #: ubuntu-printing-app/Main.qml:69 | 103 | #: ../ubuntu-printing-app/Main.qml:69 |
207 | 25 | msgid "Document not found" | 104 | msgid "Document not found" |
208 | 26 | msgstr "" | 105 | msgstr "" |
209 | 27 | 106 | ||
211 | 28 | #: ubuntu-printing-app/Main.qml:72 | 107 | #: ../ubuntu-printing-app/Main.qml:72 |
212 | 29 | msgid "Not a PDF document" | 108 | msgid "Not a PDF document" |
213 | 30 | msgstr "" | 109 | msgstr "" |
214 | 31 | 110 | ||
216 | 32 | #: ubuntu-printing-app/Main.qml:75 | 111 | #: ../ubuntu-printing-app/Main.qml:75 |
217 | 33 | msgid "An unknown error occurred" | 112 | msgid "An unknown error occurred" |
218 | 34 | msgstr "" | 113 | msgstr "" |
219 | 35 | 114 | ||
221 | 36 | #: ubuntu-printing-app/Main.qml:99 | 115 | #: ../ubuntu-printing-app/Main.qml:99 |
222 | 37 | msgid "Error" | 116 | msgid "Error" |
223 | 38 | msgstr "" | 117 | msgstr "" |
224 | 39 | 118 | ||
226 | 40 | #: ubuntu-printing-app/Main.qml:126 | 119 | #: ../ubuntu-printing-app/Main.qml:126 |
227 | 41 | msgid "URL of PDF to print" | 120 | msgid "URL of PDF to print" |
228 | 42 | msgstr "" | 121 | msgstr "" |
229 | 43 | 122 | ||
256 | 44 | #: ubuntu-printing-app/components/AlertDialog.qml:28 | 123 | #: ../ubuntu-printing-app/pages/EmptyPage.qml:48 |
231 | 45 | msgid "OK" | ||
232 | 46 | msgstr "" | ||
233 | 47 | |||
234 | 48 | #: ubuntu-printing-app/components/PrintRow.qml:57 | ||
235 | 49 | msgid "Cancel" | ||
236 | 50 | msgstr "" | ||
237 | 51 | |||
238 | 52 | #: ubuntu-printing-app/components/PrintRow.qml:71 | ||
239 | 53 | msgid "Create PDF" | ||
240 | 54 | msgstr "" | ||
241 | 55 | |||
242 | 56 | #: ubuntu-printing-app/components/PrintRow.qml:71 | ||
243 | 57 | #: po/ubuntu-printing-app/ubuntu-printing-app.desktop.in.in.h:1 | ||
244 | 58 | msgid "Print" | ||
245 | 59 | msgstr "" | ||
246 | 60 | |||
247 | 61 | #: ubuntu-printing-app/components/PrintRow.qml:71 | ||
248 | 62 | msgid "Sheets" | ||
249 | 63 | msgstr "" | ||
250 | 64 | |||
251 | 65 | #: ubuntu-printing-app/pages/ContentPeerPickerPage.qml:43 | ||
252 | 66 | msgid "Open With..." | ||
253 | 67 | msgstr "" | ||
254 | 68 | |||
255 | 69 | #: ubuntu-printing-app/pages/EmptyPage.qml:48 | ||
257 | 70 | msgid "" | 124 | msgid "" |
258 | 71 | "No document was chosen for printing. In order to print, you need to select " | 125 | "No document was chosen for printing. In order to print, you need to select " |
259 | 72 | "print from an app. Alternatively you can export a PDF document from an app." | 126 | "print from an app. Alternatively you can export a PDF document from an app." |
260 | 73 | msgstr "" | 127 | msgstr "" |
261 | 74 | 128 | ||
263 | 75 | #: ubuntu-printing-app/pages/PrintPage.qml:47 | 129 | #: ../ubuntu-printing-app/pages/PrintPage.qml:47 |
264 | 76 | msgid "Page Setup" | 130 | msgid "Page Setup" |
265 | 77 | msgstr "" | 131 | msgstr "" |
266 | 78 | 132 | ||
268 | 79 | #: ubuntu-printing-app/pages/PrintPage.qml:47 | 133 | #: ../ubuntu-printing-app/pages/PrintPage.qml:47 |
269 | 80 | msgid "Printer Options" | 134 | msgid "Printer Options" |
270 | 81 | msgstr "" | 135 | msgstr "" |
271 | 82 | 136 | ||
273 | 83 | #: ubuntu-printing-app/pages/PrintPage.qml:85 | 137 | #: ../ubuntu-printing-app/pages/PrintPage.qml:86 |
274 | 84 | msgid "Printer" | 138 | msgid "Printer" |
275 | 85 | msgstr "" | 139 | msgstr "" |
276 | 86 | 140 | ||
278 | 87 | #: ubuntu-printing-app/pages/PrintPage.qml:106 | 141 | #: ../ubuntu-printing-app/pages/PrintPage.qml:107 |
279 | 88 | msgid "Copies" | 142 | msgid "Copies" |
280 | 89 | msgstr "" | 143 | msgstr "" |
281 | 90 | 144 | ||
291 | 91 | #: ubuntu-printing-app/pages/PrintPage.qml:129 | 145 | #: ../ubuntu-printing-app/pages/PrintPage.qml:131 |
283 | 92 | msgid "Collate" | ||
284 | 93 | msgstr "" | ||
285 | 94 | |||
286 | 95 | #: ubuntu-printing-app/pages/PrintPage.qml:149 | ||
287 | 96 | msgid "Reverse" | ||
288 | 97 | msgstr "" | ||
289 | 98 | |||
290 | 99 | #: ubuntu-printing-app/pages/PrintPage.qml:170 | ||
292 | 100 | msgid "All" | 146 | msgid "All" |
293 | 101 | msgstr "" | 147 | msgstr "" |
294 | 102 | 148 | ||
296 | 103 | #: ubuntu-printing-app/pages/PrintPage.qml:170 | 149 | #: ../ubuntu-printing-app/pages/PrintPage.qml:131 |
297 | 104 | msgid "Range" | 150 | msgid "Range" |
298 | 105 | msgstr "" | 151 | msgstr "" |
299 | 106 | 152 | ||
301 | 107 | #: ubuntu-printing-app/pages/PrintPage.qml:174 | 153 | #: ../ubuntu-printing-app/pages/PrintPage.qml:135 |
302 | 108 | msgid "Pages" | 154 | msgid "Pages" |
303 | 109 | msgstr "" | 155 | msgstr "" |
304 | 110 | 156 | ||
306 | 111 | #: ubuntu-printing-app/pages/PrintPage.qml:216 | 157 | #: ../ubuntu-printing-app/pages/PrintPage.qml:177 |
307 | 112 | msgid "eg 1-3,8" | 158 | msgid "eg 1-3,8" |
308 | 113 | msgstr "" | 159 | msgstr "" |
309 | 114 | 160 | ||
311 | 115 | #: ubuntu-printing-app/pages/PrintPage.qml:225 | 161 | #: ../ubuntu-printing-app/pages/PrintPage.qml:186 |
312 | 116 | msgid "Two-sided" | 162 | msgid "Two-sided" |
313 | 117 | msgstr "" | 163 | msgstr "" |
314 | 118 | 164 | ||
316 | 119 | #: ubuntu-printing-app/pages/PrintPage.qml:246 | 165 | #: ../ubuntu-printing-app/pages/PrintPage.qml:207 |
317 | 120 | msgid "Color" | 166 | msgid "Color" |
318 | 121 | msgstr "" | 167 | msgstr "" |
319 | 122 | 168 | ||
321 | 123 | #: ubuntu-printing-app/pages/PrintPage.qml:267 | 169 | #: ../ubuntu-printing-app/pages/PrintPage.qml:228 |
322 | 124 | msgid "Quality" | 170 | msgid "Quality" |
323 | 125 | msgstr "" | 171 | msgstr "" |
324 | 126 | 172 | ||
327 | 127 | #: po/ubuntu-printing-app/ubuntu-printing-app.desktop.in.in.h:2 | 173 | #: ../ubuntu-printing-app/pages/PrintPage.qml:246 |
328 | 128 | msgid "Print;Printing;" | 174 | msgid "Collate" |
329 | 175 | msgstr "" | ||
330 | 176 | |||
331 | 177 | #: ../ubuntu-printing-app/pages/PrintPage.qml:266 | ||
332 | 178 | msgid "Reverse" | ||
333 | 179 | msgstr "" | ||
334 | 180 | |||
335 | 181 | #: ../ubuntu-printing-app/pages/ContentPeerPickerPage.qml:43 | ||
336 | 182 | msgid "Open With..." | ||
337 | 183 | msgstr "" | ||
338 | 184 | |||
339 | 185 | #. Text color is determined from background color so set from html | ||
340 | 186 | #: ../ubuntu-printing-app/components/PrintRow.qml:60 | ||
341 | 187 | msgid "Cancel" | ||
342 | 188 | msgstr "" | ||
343 | 189 | |||
344 | 190 | #: ../ubuntu-printing-app/components/PrintRow.qml:74 | ||
345 | 191 | msgid "Create PDF" | ||
346 | 192 | msgstr "" | ||
347 | 193 | |||
348 | 194 | #: ../ubuntu-printing-app/components/PrintRow.qml:74 | ||
349 | 195 | msgid "Sheets" | ||
350 | 129 | msgstr "" | 196 | msgstr "" |
351 | 130 | 197 | ||
352 | === modified file 'ubuntu-printing-app/CMakeLists.txt' | |||
353 | --- ubuntu-printing-app/CMakeLists.txt 2017-01-20 12:36:56 +0000 | |||
354 | +++ ubuntu-printing-app/CMakeLists.txt 2017-03-17 21:17:09 +0000 | |||
355 | @@ -12,10 +12,11 @@ | |||
356 | 12 | 12 | ||
357 | 13 | # Install desktop file | 13 | # Install desktop file |
358 | 14 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${DESKTOP_FILE}.in.in ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE}.in) | 14 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${DESKTOP_FILE}.in.in ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE}.in) |
363 | 15 | 15 | intltool_merge_translations( | |
364 | 16 | add_custom_target(${DESKTOP_FILE} ALL | 16 | "${DESKTOP_FILE}.in" |
365 | 17 | COMMENT "Merging translations into ${DESKTOP_FILE}" | 17 | "${DESKTOP_FILE}" |
366 | 18 | COMMAND LC_ALL=C ${INTLTOOL_MERGE} -d -u ${CMAKE_SOURCE_DIR}/po ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE} | 18 | ALL |
367 | 19 | UTF8 | ||
368 | 19 | ) | 20 | ) |
369 | 20 | 21 | ||
370 | 21 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE} | 22 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE} |
Should this run when doing a build? I haven't yet been able to get the .pot to be regenerated when doing a build? I was expecting it todo this.