diff options
author | Rodney Dawes <rodney.dawes@canonical.com> | 2017-02-07 13:12:41 -0500 |
---|---|---|
committer | Rodney Dawes <rodney.dawes@canonical.com> | 2017-02-07 13:12:41 -0500 |
commit | 907fc24ba24962c0f30a9efe955dd5cb916c5492 (patch) | |
tree | 9659a9ed9a86a1dc64f18c8d4e94631cf95a8a36 /po/CMakeLists.txt | |
parent | 472445887cb7f7a16e2c3fb5dca1f19a52d55bab (diff) | |
download | ayatana-indicator-display-907fc24ba24962c0f30a9efe955dd5cb916c5492.tar.gz ayatana-indicator-display-907fc24ba24962c0f30a9efe955dd5cb916c5492.tar.bz2 ayatana-indicator-display-907fc24ba24962c0f30a9efe955dd5cb916c5492.zip |
Use intltool support from cmake-extras.
Diffstat (limited to 'po/CMakeLists.txt')
-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 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} +) |