diff options
author | Rodney Dawes <rodney.dawes@canonical.com> | 2017-02-03 12:23:56 -0500 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-29 14:38:27 +0200 |
commit | 373ffe1d1d221f0e28793d65b40e49311f2e1ed5 (patch) | |
tree | 8ee457986a686c692ccd267ac62afb2e50089031 /po/CMakeLists.txt | |
parent | d4f59920e8ab7fb33b92ccda6c5ca4ea20b06080 (diff) | |
download | ayatana-indicator-datetime-373ffe1d1d221f0e28793d65b40e49311f2e1ed5.tar.gz ayatana-indicator-datetime-373ffe1d1d221f0e28793d65b40e49311f2e1ed5.tar.bz2 ayatana-indicator-datetime-373ffe1d1d221f0e28793d65b40e49311f2e1ed5.zip |
Use cmake-extras intltool module, and keep pot file in vcs.
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 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} +) |