summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-08-06 21:11:06 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-06 22:36:02 +0200
commit7def24826c298df77e34fd17bb72c570a22b04bd (patch)
tree7b97d2acd914e4543c3388f061eb3ed0ee294b42 /po
parentf3de2dbaf657f9040a4da448c57267de0fef7d33 (diff)
CMake: Add support for building and installing .mo files
Introduce support for building translation domain-specific templates, merging them with the translations, and building a language-specific .mo file. The invocation of xgettext is done in the project source directory, not in the current source directory, and all paths are made relative to the project root, in order to have clean templates. This only supports the C++ source code for now, it unfortunately does not handle the shell scripts of deselect yet.
Diffstat (limited to 'po')
-rw-r--r--po/CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
new file mode 100644
index 000000000..0dd14839c
--- /dev/null
+++ b/po/CMakeLists.txt
@@ -0,0 +1,20 @@
+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)
+
+
+apt_add_translation_domain(apt-utils # Domain
+ 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)