aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodney Dawes <rodney.dawes@canonical.com>2017-02-08 04:37:40 +0000
committerBileto Bot <ci-train-bot@canonical.com>2017-02-08 04:37:40 +0000
commiteebb97601c17324a1d3be937b5e5df8725956198 (patch)
tree4a8c97c5a41e32f96f658bc33b7b8d8668a39ee3
parent7d52a7a008b0281f702d236cbc74f180328a9114 (diff)
parent6f122ae1b2b8aeb052a90201f1dda8a8c4ba434e (diff)
downloadayatana-indicator-sound-eebb97601c17324a1d3be937b5e5df8725956198.tar.gz
ayatana-indicator-sound-eebb97601c17324a1d3be937b5e5df8725956198.tar.bz2
ayatana-indicator-sound-eebb97601c17324a1d3be937b5e5df8725956198.zip
Use intltool support from cmake-extras.
-rw-r--r--.bzrignore28
-rw-r--r--CMakeLists.txt1
-rw-r--r--debian/control1
-rw-r--r--po/CMakeLists.txt12
-rw-r--r--po/POTFILES.in7
-rw-r--r--po/indicator-sound.pot131
6 files changed, 148 insertions, 32 deletions
diff --git a/.bzrignore b/.bzrignore
index d010156..4f05230 100644
--- a/.bzrignore
+++ b/.bzrignore
@@ -1,25 +1,3 @@
-/po/POTFILES
-/po/stamp-it
-
-/data/indicator-sound.conf
-
-/src/indicator-sound-service
-/src/indicator_sound_service_vala.stamp
-/src/main.c
-/src/media-player-list.c
-/src/media-player.c
-/src/mpris2-interfaces.c
-/src/mpris2-watcher.c
-/src/service.c
-/src/volume-control.c
-/src/freedesktop-interfaces.c
-
-# CMake Generated Files
-CMakeFiles/
-Makefile
-cmake_install.cmake
-CMakeCache.txt
-CTestTestfile.cmake
-config.h
-
-
+build/
+po/Makefile.in.in
+po/POTFILES.in
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b8730fe..0d62eae 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -75,6 +75,7 @@ configure_file(
add_subdirectory(data)
add_subdirectory(src)
+add_subdirectory(po)
enable_testing()
add_subdirectory(tests)
diff --git a/debian/control b/debian/control
index 8b83c08..c3ef716 100644
--- a/debian/control
+++ b/debian/control
@@ -14,6 +14,7 @@ Build-Depends: debhelper (>= 9.0),
gnome-common,
googletest | google-mock (>= 1.6.0+svn437),
gsettings-ubuntu-schemas,
+ intltool,
autotools-dev,
valac (>= 0.20),
lcov,
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
new file mode 100644
index 0000000..e78a9df
--- /dev/null
+++ b/po/CMakeLists.txt
@@ -0,0 +1,12 @@
+find_package(Intltool REQUIRED)
+
+intltool_update_potfile(
+ KEYWORDS "_" "_:1,2" "N_" "N_:1,2"
+ GETTEXT_PACKAGE ${GETTEXT_PACKAGE}
+ COPYRIGHT_HOLDER "Canonical Ltd."
+)
+
+intltool_install_translations(
+ ALL
+ GETTEXT_PACKAGE ${GETTEXT_PACKAGE}
+)
diff --git a/po/POTFILES.in b/po/POTFILES.in
deleted file mode 100644
index e5fefb7..0000000
--- a/po/POTFILES.in
+++ /dev/null
@@ -1,7 +0,0 @@
-[encoding: UTF-8]
-src/info-notification.vala
-src/options-gsettings.vala
-src/service.vala
-src/sound-menu.vala
-src/warn-notification.vala
-
diff --git a/po/indicator-sound.pot b/po/indicator-sound.pot
new file mode 100644
index 0000000..bff03e2
--- /dev/null
+++ b/po/indicator-sound.pot
@@ -0,0 +1,131 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Canonical Ltd.
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2017-02-07 17:03-0500\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../src/info-notification.vala:25 ../src/info-notification.vala:42
+#: ../src/sound-menu.vala:57 ../src/sound-menu.vala:251
+#: ../src/warn-notification.vala:31 ../src/service.vala:296
+#: ../src/service.vala:299
+#, c-format
+msgid "Volume"
+msgstr ""
+
+#: ../src/info-notification.vala:55
+msgid "Speakers"
+msgstr ""
+
+#: ../src/info-notification.vala:57
+msgid "Headphones"
+msgstr ""
+
+#: ../src/info-notification.vala:59
+msgid "Bluetooth headphones"
+msgstr ""
+
+#: ../src/info-notification.vala:61
+msgid "Bluetooth speaker"
+msgstr ""
+
+#: ../src/info-notification.vala:63
+msgid "Usb speaker"
+msgstr ""
+
+#: ../src/info-notification.vala:65
+msgid "Usb headphones"
+msgstr ""
+
+#: ../src/info-notification.vala:67
+msgid "HDMI speaker"
+msgstr ""
+
+#: ../src/info-notification.vala:69
+msgid "HDMI headphones"
+msgstr ""
+
+#: ../src/sound-menu.vala:50
+msgid "Mute"
+msgstr ""
+
+#: ../src/sound-menu.vala:52
+msgid "Silent Mode"
+msgstr ""
+
+#: ../src/sound-menu.vala:66
+msgid "Sound Settingsā€¦"
+msgstr ""
+
+#: ../src/sound-menu.vala:123
+msgid "Microphone Volume"
+msgstr ""
+
+#. NOTE: Action doesn't really exist, just used to find below when removing
+#: ../src/sound-menu.vala:146 ../src/warn-notification.vala:32
+msgid "High volume can damage your hearing."
+msgstr ""
+
+#: ../src/sound-menu.vala:254
+msgid "Volume (Headphones)"
+msgstr ""
+
+#: ../src/sound-menu.vala:257
+msgid "Volume (Bluetooth)"
+msgstr ""
+
+#: ../src/sound-menu.vala:260
+msgid "Volume (Usb)"
+msgstr ""
+
+#: ../src/sound-menu.vala:263
+msgid "Volume (HDMI)"
+msgstr ""
+
+#: ../src/sound-menu.vala:266
+msgid "Volume (Bluetooth headphones)"
+msgstr ""
+
+#: ../src/sound-menu.vala:269
+msgid "Volume (Usb headphones)"
+msgstr ""
+
+#: ../src/sound-menu.vala:272
+msgid "Volume (HDMI headphones)"
+msgstr ""
+
+#: ../src/sound-menu.vala:445
+msgid "Choose Playlist"
+msgstr ""
+
+#: ../src/warn-notification.vala:49
+msgid "OK"
+msgstr ""
+
+#: ../src/warn-notification.vala:52
+msgid "Cancel"
+msgstr ""
+
+#: ../src/service.vala:293
+msgid "Volume (muted)"
+msgstr ""
+
+#: ../src/service.vala:296
+msgid "silent"
+msgstr ""
+
+#: ../src/service.vala:304
+msgid "Sound"
+msgstr ""