From 907fc24ba24962c0f30a9efe955dd5cb916c5492 Mon Sep 17 00:00:00 2001 From: Rodney Dawes Date: Tue, 7 Feb 2017 13:12:41 -0500 Subject: Use intltool support from cmake-extras. --- po/CMakeLists.txt | 15 ++++++++++++--- po/POTFILES.in | 2 -- po/indicator-display.pot | 43 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 5 deletions(-) delete mode 100644 po/POTFILES.in create mode 100644 po/indicator-display.pot (limited to 'po') diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 786573b..e78a9df 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -1,3 +1,12 @@ -include (Translations) -add_translations_directory("${GETTEXT_PACKAGE}") -add_translations_catalog("${GETTEXT_PACKAGE}" ../src/) +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 339765f..0000000 --- a/po/POTFILES.in +++ /dev/null @@ -1,2 +0,0 @@ -src/rotation-lock.cpp -src/usb-snap.cpp diff --git a/po/indicator-display.pot b/po/indicator-display.pot new file mode 100644 index 0000000..26488a3 --- /dev/null +++ b/po/indicator-display.pot @@ -0,0 +1,43 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR Canonical Ltd. +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-02-07 13:08-0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../src/rotation-lock.cpp:125 +msgid "Rotation Lock" +msgstr "" + +#: ../src/rotation-lock.cpp:136 +msgid "Rotation" +msgstr "" + +#: ../src/usb-snap.cpp:107 +#, c-format +msgid "The computer's RSA key fingerprint is: %s" +msgstr "" + +#: ../src/usb-snap.cpp:112 +msgid "Allow" +msgstr "" + +#: ../src/usb-snap.cpp:114 +msgid "Don't Allow" +msgstr "" + +#: ../src/usb-snap.cpp:126 +msgid "Allow USB Debugging?" +msgstr "" -- cgit v1.2.3