]> git.saurik.com Git - apt.git/blobdiff - po/CMakeLists.txt
CMake: Translations: Add support for shell scripts
[apt.git] / po / CMakeLists.txt
index dc36221560505d20337666462d5ad2a832781405..c7dfcb0fb91c2dbe540ce52675aa4b7111e59ca0 100644 (file)
@@ -1,22 +1,28 @@
-apt_add_translation_domain(libapt-pkg${APT_PKG_MAJOR} apt-pkg)
-
-apt_add_translation_domain(apt              # Domain
-                           apt apt-cache apt-get apt-config apt-cdrom
-                           apt-helper apt-mark
-                           apt-private
-                           # Methods
-                           file copy store gpgv cdrom http https ftp rred rsh
-                           mirror
+apt_add_translation_domain(
+    DOMAIN libapt-pkg${APT_PKG_MAJOR}
+    TARGETS apt-pkg
 )
 
+apt_add_translation_domain(
+    DOMAIN apt
+    TARGETS apt apt-cache apt-get apt-config apt-cdrom apt-helper apt-mark
+            apt-private
+            # Methods
+            file copy store gpgv cdrom http https ftp rred rsh mirror
+    SCRIPTS ../dselect/install ../dselect/update
+)
 
-apt_add_translation_domain(apt-utils        # Domain
-                           apt-sortpkgs
-                           apt-extracttemplates
-                           apt-internal-solver
-                           apt-dump-solver
-                           apt-internal-planner
-                           apt-ftparchive)
+apt_add_translation_domain(
+    DOMAIN apt-utils
+    TARGETS apt-sortpkgs
+            apt-extracttemplates
+            apt-internal-solver
+            apt-dump-solver
+            apt-internal-planner
+            apt-ftparchive
+)
 
-# Add the translations for libapt-inst, and set the translation domain.
-apt_add_translation_domain(libapt-inst${APT_INST_MAJOR} apt-inst)
+apt_add_translation_domain(
+    DOMAIN libapt-inst${APT_INST_MAJOR}
+    TARGETS apt-inst
+)