aboutsummaryrefslogtreecommitdiff
path: root/po/CMakeLists.txt
diff options
context:
space:
mode:
authorRodney Dawes <rodney.dawes@canonical.com>2017-02-03 12:23:56 -0500
committerRobert Tari <robert@tari.in>2021-07-09 01:57:30 +0200
commit4baa615e7b9f371c634ec8b06d393da04f3bbcda (patch)
tree955f02c6a5b901760e01c2eeaf9183a3663f8907 /po/CMakeLists.txt
parent579c0741ef9ad3ec2f7f0b1afc00f9bf77e6dd3f (diff)
downloadayatana-indicator-datetime-4baa615e7b9f371c634ec8b06d393da04f3bbcda.tar.gz
ayatana-indicator-datetime-4baa615e7b9f371c634ec8b06d393da04f3bbcda.tar.bz2
ayatana-indicator-datetime-4baa615e7b9f371c634ec8b06d393da04f3bbcda.zip
Use cmake-extras intltool module, and keep pot file in vcs.
Diffstat (limited to 'po/CMakeLists.txt')
-rw-r--r--po/CMakeLists.txt15
1 files changed, 12 insertions, 3 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
index 8325f6e..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}
+)