aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/xmlpool
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2018-08-24 05:56:01 -0700
committerDylan Baker <[email protected]>2018-10-31 16:37:12 -0700
commit7834926a4f5ca0a60ec3d18c87a1e0a68b615820 (patch)
treeeafec72c7a3d113061f8c1380b8a669f892c0af3 /src/util/xmlpool
parent2857b18991f86940af5759664a961a24d90e3a47 (diff)
meson: add support for generating translation mo files
Meson has handy a handy built-in module for handling gettext called i18n, this module works a bit differently than our autotools build does, namely it doesn't automatically generate translations instead it creates 3 new top level targets to run. These are: xmlpool-pot xmlpool-update-po xmlpool-gmo v2: - Add new files to autotools dist tarball Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/util/xmlpool')
-rw-r--r--src/util/xmlpool/LINGUAS1
-rw-r--r--src/util/xmlpool/Makefile.am4
-rw-r--r--src/util/xmlpool/POTFILES1
-rw-r--r--src/util/xmlpool/meson.build3
4 files changed, 8 insertions, 1 deletions
diff --git a/src/util/xmlpool/LINGUAS b/src/util/xmlpool/LINGUAS
new file mode 100644
index 00000000000..3620176519e
--- /dev/null
+++ b/src/util/xmlpool/LINGUAS
@@ -0,0 +1 @@
+ca es de nl sv fr
diff --git a/src/util/xmlpool/Makefile.am b/src/util/xmlpool/Makefile.am
index f5142768aa3..1c14311dcf5 100644
--- a/src/util/xmlpool/Makefile.am
+++ b/src/util/xmlpool/Makefile.am
@@ -59,7 +59,9 @@ EXTRA_DIST = \
$(POS) \
$(MOS) \
SConscript \
- meson.build
+ meson.build \
+ LINGUAS \
+ POTFILES
BUILT_SOURCES = options.h
CLEANFILES = \
diff --git a/src/util/xmlpool/POTFILES b/src/util/xmlpool/POTFILES
new file mode 100644
index 00000000000..d68d7009be4
--- /dev/null
+++ b/src/util/xmlpool/POTFILES
@@ -0,0 +1 @@
+src/util/xmlpool/t_options.h
diff --git a/src/util/xmlpool/meson.build b/src/util/xmlpool/meson.build
index 8bdabcb825b..8d645ce385f 100644
--- a/src/util/xmlpool/meson.build
+++ b/src/util/xmlpool/meson.build
@@ -35,3 +35,6 @@ xmlpool_options_h = custom_target(
capture : true,
depend_files : _langs_po_files,
)
+
+i18n = import('i18n')
+i18n.gettext('xmlpool')