Merge lp:~dobey/indicator-sound/fix-i18n into lp:indicator-sound

Proposed by dobey
Status: Merged
Approved by: dobey
Approved revision: 548
Merged at revision: 550
Proposed branch: lp:~dobey/indicator-sound/fix-i18n
Merge into: lp:indicator-sound
Prerequisite: lp:~dobey/indicator-sound/fix-coverage
Diff against target: 221 lines (+148/-32)
6 files modified
.bzrignore (+3/-25)
CMakeLists.txt (+1/-0)
debian/control (+1/-0)
po/CMakeLists.txt (+12/-0)
po/POTFILES.in (+0/-7)
po/indicator-sound.pot (+131/-0)
To merge this branch: bzr merge lp:~dobey/indicator-sound/fix-i18n
Reviewer Review Type Date Requested Status
Pete Woods (community) Approve
unity-api-1-bot continuous-integration Needs Fixing
Review via email: mp+316644@code.launchpad.net

Commit message

Use intltool support from cmake-extras.

To post a comment you must log in.
Revision history for this message
unity-api-1-bot (unity-api-1-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Pete Woods (pete-woods) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.bzrignore'
2--- .bzrignore 2014-02-10 15:51:57 +0000
3+++ .bzrignore 2017-02-07 22:07:16 +0000
4@@ -1,25 +1,3 @@
5-/po/POTFILES
6-/po/stamp-it
7-
8-/data/indicator-sound.conf
9-
10-/src/indicator-sound-service
11-/src/indicator_sound_service_vala.stamp
12-/src/main.c
13-/src/media-player-list.c
14-/src/media-player.c
15-/src/mpris2-interfaces.c
16-/src/mpris2-watcher.c
17-/src/service.c
18-/src/volume-control.c
19-/src/freedesktop-interfaces.c
20-
21-# CMake Generated Files
22-CMakeFiles/
23-Makefile
24-cmake_install.cmake
25-CMakeCache.txt
26-CTestTestfile.cmake
27-config.h
28-
29-
30+build/
31+po/Makefile.in.in
32+po/POTFILES.in
33
34=== modified file 'CMakeLists.txt'
35--- CMakeLists.txt 2017-02-07 22:07:16 +0000
36+++ CMakeLists.txt 2017-02-07 22:07:16 +0000
37@@ -75,6 +75,7 @@
38
39 add_subdirectory(data)
40 add_subdirectory(src)
41+add_subdirectory(po)
42
43 enable_testing()
44 add_subdirectory(tests)
45
46=== modified file 'debian/control'
47--- debian/control 2017-02-07 22:07:16 +0000
48+++ debian/control 2017-02-07 22:07:16 +0000
49@@ -14,6 +14,7 @@
50 gnome-common,
51 googletest | google-mock (>= 1.6.0+svn437),
52 gsettings-ubuntu-schemas,
53+ intltool,
54 autotools-dev,
55 valac (>= 0.20),
56 lcov,
57
58=== added file 'po/CMakeLists.txt'
59--- po/CMakeLists.txt 1970-01-01 00:00:00 +0000
60+++ po/CMakeLists.txt 2017-02-07 22:07:16 +0000
61@@ -0,0 +1,12 @@
62+find_package(Intltool REQUIRED)
63+
64+intltool_update_potfile(
65+ KEYWORDS "_" "_:1,2" "N_" "N_:1,2"
66+ GETTEXT_PACKAGE ${GETTEXT_PACKAGE}
67+ COPYRIGHT_HOLDER "Canonical Ltd."
68+)
69+
70+intltool_install_translations(
71+ ALL
72+ GETTEXT_PACKAGE ${GETTEXT_PACKAGE}
73+)
74
75=== removed file 'po/POTFILES.in'
76--- po/POTFILES.in 2015-12-31 17:24:33 +0000
77+++ po/POTFILES.in 1970-01-01 00:00:00 +0000
78@@ -1,7 +0,0 @@
79-[encoding: UTF-8]
80-src/info-notification.vala
81-src/options-gsettings.vala
82-src/service.vala
83-src/sound-menu.vala
84-src/warn-notification.vala
85-
86
87=== added file 'po/indicator-sound.pot'
88--- po/indicator-sound.pot 1970-01-01 00:00:00 +0000
89+++ po/indicator-sound.pot 2017-02-07 22:07:16 +0000
90@@ -0,0 +1,131 @@
91+# SOME DESCRIPTIVE TITLE.
92+# Copyright (C) YEAR Canonical Ltd.
93+# This file is distributed under the same license as the PACKAGE package.
94+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
95+#
96+#, fuzzy
97+msgid ""
98+msgstr ""
99+"Project-Id-Version: PACKAGE VERSION\n"
100+"Report-Msgid-Bugs-To: \n"
101+"POT-Creation-Date: 2017-02-07 17:03-0500\n"
102+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
103+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
104+"Language-Team: LANGUAGE <LL@li.org>\n"
105+"Language: \n"
106+"MIME-Version: 1.0\n"
107+"Content-Type: text/plain; charset=UTF-8\n"
108+"Content-Transfer-Encoding: 8bit\n"
109+
110+#: ../src/info-notification.vala:25 ../src/info-notification.vala:42
111+#: ../src/sound-menu.vala:57 ../src/sound-menu.vala:251
112+#: ../src/warn-notification.vala:31 ../src/service.vala:296
113+#: ../src/service.vala:299
114+#, c-format
115+msgid "Volume"
116+msgstr ""
117+
118+#: ../src/info-notification.vala:55
119+msgid "Speakers"
120+msgstr ""
121+
122+#: ../src/info-notification.vala:57
123+msgid "Headphones"
124+msgstr ""
125+
126+#: ../src/info-notification.vala:59
127+msgid "Bluetooth headphones"
128+msgstr ""
129+
130+#: ../src/info-notification.vala:61
131+msgid "Bluetooth speaker"
132+msgstr ""
133+
134+#: ../src/info-notification.vala:63
135+msgid "Usb speaker"
136+msgstr ""
137+
138+#: ../src/info-notification.vala:65
139+msgid "Usb headphones"
140+msgstr ""
141+
142+#: ../src/info-notification.vala:67
143+msgid "HDMI speaker"
144+msgstr ""
145+
146+#: ../src/info-notification.vala:69
147+msgid "HDMI headphones"
148+msgstr ""
149+
150+#: ../src/sound-menu.vala:50
151+msgid "Mute"
152+msgstr ""
153+
154+#: ../src/sound-menu.vala:52
155+msgid "Silent Mode"
156+msgstr ""
157+
158+#: ../src/sound-menu.vala:66
159+msgid "Sound Settingsā€¦"
160+msgstr ""
161+
162+#: ../src/sound-menu.vala:123
163+msgid "Microphone Volume"
164+msgstr ""
165+
166+#. NOTE: Action doesn't really exist, just used to find below when removing
167+#: ../src/sound-menu.vala:146 ../src/warn-notification.vala:32
168+msgid "High volume can damage your hearing."
169+msgstr ""
170+
171+#: ../src/sound-menu.vala:254
172+msgid "Volume (Headphones)"
173+msgstr ""
174+
175+#: ../src/sound-menu.vala:257
176+msgid "Volume (Bluetooth)"
177+msgstr ""
178+
179+#: ../src/sound-menu.vala:260
180+msgid "Volume (Usb)"
181+msgstr ""
182+
183+#: ../src/sound-menu.vala:263
184+msgid "Volume (HDMI)"
185+msgstr ""
186+
187+#: ../src/sound-menu.vala:266
188+msgid "Volume (Bluetooth headphones)"
189+msgstr ""
190+
191+#: ../src/sound-menu.vala:269
192+msgid "Volume (Usb headphones)"
193+msgstr ""
194+
195+#: ../src/sound-menu.vala:272
196+msgid "Volume (HDMI headphones)"
197+msgstr ""
198+
199+#: ../src/sound-menu.vala:445
200+msgid "Choose Playlist"
201+msgstr ""
202+
203+#: ../src/warn-notification.vala:49
204+msgid "OK"
205+msgstr ""
206+
207+#: ../src/warn-notification.vala:52
208+msgid "Cancel"
209+msgstr ""
210+
211+#: ../src/service.vala:293
212+msgid "Volume (muted)"
213+msgstr ""
214+
215+#: ../src/service.vala:296
216+msgid "silent"
217+msgstr ""
218+
219+#: ../src/service.vala:304
220+msgid "Sound"
221+msgstr ""

Subscribers

People subscribed via source and target branches