Merge lp:~charlesk/indicator-location/lp-1354058-use-standard-translations-cmake-file into lp:indicator-location/14.10

Proposed by Charles Kerr
Status: Merged
Approved by: Ted Gould
Approved revision: 106
Merged at revision: 108
Proposed branch: lp:~charlesk/indicator-location/lp-1354058-use-standard-translations-cmake-file
Merge into: lp:indicator-location/14.10
Diff against target: 75 lines (+15/-18)
2 files modified
cmake/Translations.cmake (+8/-12)
po/indicator-location.pot (+7/-6)
To merge this branch: bzr merge lp:~charlesk/indicator-location/lp-1354058-use-standard-translations-cmake-file
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+230217@code.launchpad.net

Commit message

Re-use the same Translations.cmake file across indicators

Description of the change

Sync Translations.cmake with the bugfixed version that recently landed in indicator-datetime.

Discussion @ https://code.launchpad.net/~charlesk/indicator-datetime/lp-1354058-include-cpp-files-when-invoking-xgettext/+merge/229976

To post a comment you must log in.
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
Charles Kerr (charlesk) wrote :

Looks like ths 2014-08-09 build failure came from a gcovr bug introduced in 3.1,<https://github.com/gcovr/gcovr/issues/37> which just landed in utopic. mterry's now backported the fix from 3.2 <https://launchpad.net/ubuntu/+source/gcovr/3.1-1ubuntu1>

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ted Gould (ted) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'cmake/Translations.cmake'
2--- cmake/Translations.cmake 2014-05-21 13:36:36 +0000
3+++ cmake/Translations.cmake 2014-08-09 23:40:06 +0000
4@@ -20,22 +20,18 @@
5 add_custom_target (pot COMMENT “Building translation catalog.”)
6 find_program (XGETTEXT_EXECUTABLE xgettext)
7
8-
9- set(C_SOURCE "")
10-
11+ # init this list, which will hold all the sources across all dirs
12+ set(SOURCES "")
13+
14+ # add each directory's sources to the overall sources list
15 foreach(FILES_INPUT ${ARGN})
16- file (GLOB_RECURSE SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/${FILES_INPUT}/*.c)
17- foreach(C_FILE ${SOURCE_FILES})
18- set(C_SOURCE ${C_SOURCE} ${C_FILE})
19- endforeach()
20- file (GLOB_RECURSE SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/${FILES_INPUT}/*.vala)
21- foreach(C_FILE ${SOURCE_FILES})
22- set(C_SOURCE ${C_SOURCE} ${C_FILE})
23- endforeach()
24+ set (DIR ${CMAKE_CURRENT_SOURCE_DIR}/${FILES_INPUT})
25+ file (GLOB_RECURSE DIR_SOURCES ${DIR}/*.c ${DIR}/*.cc ${DIR}/*.cpp ${DIR}/*.cxx ${DIR}/*.vala)
26+ set (SOURCES ${SOURCES} ${DIR_SOURCES})
27 endforeach()
28
29 add_custom_command (TARGET pot COMMAND
30 ${XGETTEXT_EXECUTABLE} -d ${NLS_PACKAGE} -o ${CMAKE_CURRENT_SOURCE_DIR}/${NLS_PACKAGE}.pot
31- ${VALA_SOURCE} ${C_SOURCE} --keyword="_" --keyword="N_" --from-code=UTF-8
32+ ${SOURCES} --keyword="_" --keyword="N_" --from-code=UTF-8
33 )
34 endmacro()
35
36=== modified file 'po/indicator-location.pot'
37--- po/indicator-location.pot 2014-05-27 08:45:28 +0000
38+++ po/indicator-location.pot 2014-08-09 23:40:06 +0000
39@@ -1,14 +1,14 @@
40 # SOME DESCRIPTIVE TITLE.
41-# Copyright (C) YEAR Canonical Ltd.
42+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
43 # This file is distributed under the same license as the PACKAGE package.
44 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
45 #
46 #, fuzzy
47 msgid ""
48 msgstr ""
49-"Project-Id-Version: indicator-location\n"
50+"Project-Id-Version: PACKAGE VERSION\n"
51 "Report-Msgid-Bugs-To: \n"
52-"POT-Creation-Date: 2014-05-27 10:43+0200\n"
53+"POT-Creation-Date: 2014-08-09 18:22-0500\n"
54 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
55 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
56 "Language-Team: LANGUAGE <LL@li.org>\n"
57@@ -17,14 +17,15 @@
58 "Content-Type: text/plain; charset=CHARSET\n"
59 "Content-Transfer-Encoding: 8bit\n"
60
61-#: src/phone.cc:77 src/phone.cc:80
62+#: /home/charles/canonical/src/indicator-location/lp-1354058-use-standard-translations-cmake-file/po/../src//phone.cc:77
63+#: /home/charles/canonical/src/indicator-location/lp-1354058-use-standard-translations-cmake-file/po/../src//phone.cc:80
64 msgid "Location"
65 msgstr ""
66
67-#: src/phone.cc:260
68+#: /home/charles/canonical/src/indicator-location/lp-1354058-use-standard-translations-cmake-file/po/../src//phone.cc:260
69 msgid "Location detection"
70 msgstr ""
71
72-#: src/phone.cc:265
73+#: /home/charles/canonical/src/indicator-location/lp-1354058-use-standard-translations-cmake-file/po/../src//phone.cc:265
74 msgid "GPS"
75 msgstr ""

Subscribers

People subscribed via source and target branches