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
=== modified file 'cmake/Translations.cmake'
--- cmake/Translations.cmake 2014-05-21 13:36:36 +0000
+++ cmake/Translations.cmake 2014-08-09 23:40:06 +0000
@@ -20,22 +20,18 @@
20 add_custom_target (pot COMMENT “Building translation catalog.”)20 add_custom_target (pot COMMENT “Building translation catalog.”)
21 find_program (XGETTEXT_EXECUTABLE xgettext)21 find_program (XGETTEXT_EXECUTABLE xgettext)
2222
2323 # init this list, which will hold all the sources across all dirs
24 set(C_SOURCE "")24 set(SOURCES "")
2525
26 # add each directory's sources to the overall sources list
26 foreach(FILES_INPUT ${ARGN})27 foreach(FILES_INPUT ${ARGN})
27 file (GLOB_RECURSE SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/${FILES_INPUT}/*.c)28 set (DIR ${CMAKE_CURRENT_SOURCE_DIR}/${FILES_INPUT})
28 foreach(C_FILE ${SOURCE_FILES})29 file (GLOB_RECURSE DIR_SOURCES ${DIR}/*.c ${DIR}/*.cc ${DIR}/*.cpp ${DIR}/*.cxx ${DIR}/*.vala)
29 set(C_SOURCE ${C_SOURCE} ${C_FILE})30 set (SOURCES ${SOURCES} ${DIR_SOURCES})
30 endforeach()
31 file (GLOB_RECURSE SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/${FILES_INPUT}/*.vala)
32 foreach(C_FILE ${SOURCE_FILES})
33 set(C_SOURCE ${C_SOURCE} ${C_FILE})
34 endforeach()
35 endforeach()31 endforeach()
3632
37 add_custom_command (TARGET pot COMMAND33 add_custom_command (TARGET pot COMMAND
38 ${XGETTEXT_EXECUTABLE} -d ${NLS_PACKAGE} -o ${CMAKE_CURRENT_SOURCE_DIR}/${NLS_PACKAGE}.pot34 ${XGETTEXT_EXECUTABLE} -d ${NLS_PACKAGE} -o ${CMAKE_CURRENT_SOURCE_DIR}/${NLS_PACKAGE}.pot
39 ${VALA_SOURCE} ${C_SOURCE} --keyword="_" --keyword="N_" --from-code=UTF-835 ${SOURCES} --keyword="_" --keyword="N_" --from-code=UTF-8
40 )36 )
41endmacro()37endmacro()
4238
=== modified file 'po/indicator-location.pot'
--- po/indicator-location.pot 2014-05-27 08:45:28 +0000
+++ po/indicator-location.pot 2014-08-09 23:40:06 +0000
@@ -1,14 +1,14 @@
1# SOME DESCRIPTIVE TITLE.1# SOME DESCRIPTIVE TITLE.
2# Copyright (C) YEAR Canonical Ltd.2# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3# This file is distributed under the same license as the PACKAGE package.3# This file is distributed under the same license as the PACKAGE package.
4# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.4# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5#5#
6#, fuzzy6#, fuzzy
7msgid ""7msgid ""
8msgstr ""8msgstr ""
9"Project-Id-Version: indicator-location\n"9"Project-Id-Version: PACKAGE VERSION\n"
10"Report-Msgid-Bugs-To: \n"10"Report-Msgid-Bugs-To: \n"
11"POT-Creation-Date: 2014-05-27 10:43+0200\n"11"POT-Creation-Date: 2014-08-09 18:22-0500\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"
@@ -17,14 +17,15 @@
17"Content-Type: text/plain; charset=CHARSET\n"17"Content-Type: text/plain; charset=CHARSET\n"
18"Content-Transfer-Encoding: 8bit\n"18"Content-Transfer-Encoding: 8bit\n"
1919
20#: src/phone.cc:77 src/phone.cc:8020#: /home/charles/canonical/src/indicator-location/lp-1354058-use-standard-translations-cmake-file/po/../src//phone.cc:77
21#: /home/charles/canonical/src/indicator-location/lp-1354058-use-standard-translations-cmake-file/po/../src//phone.cc:80
21msgid "Location"22msgid "Location"
22msgstr ""23msgstr ""
2324
24#: src/phone.cc:26025#: /home/charles/canonical/src/indicator-location/lp-1354058-use-standard-translations-cmake-file/po/../src//phone.cc:260
25msgid "Location detection"26msgid "Location detection"
26msgstr ""27msgstr ""
2728
28#: src/phone.cc:26529#: /home/charles/canonical/src/indicator-location/lp-1354058-use-standard-translations-cmake-file/po/../src//phone.cc:265
29msgid "GPS"30msgid "GPS"
30msgstr ""31msgstr ""

Subscribers

People subscribed via source and target branches