diff options
author | Rodney Dawes <dobey.pwns@gmail.com> | 2018-03-16 07:44:36 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-03-16 10:44:39 +0100 |
commit | 59f9f20e6bd7a9b261a0600aa69acb8c26c52cc4 (patch) | |
tree | 461ebb187342bb98ad6cff07c7e7d3607d51d9f5 /po | |
parent | 744720d0a29eb327aa0c25b4f3c4c134eb78e855 (diff) | |
download | ayatana-indicator-power-59f9f20e6bd7a9b261a0600aa69acb8c26c52cc4.tar.gz ayatana-indicator-power-59f9f20e6bd7a9b261a0600aa69acb8c26c52cc4.tar.bz2 ayatana-indicator-power-59f9f20e6bd7a9b261a0600aa69acb8c26c52cc4.zip |
Use intltool support from cmake-extras.
Diffstat (limited to 'po')
-rw-r--r-- | po/CMakeLists.txt | 15 |
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} +) |