summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2020-09-03 12:30:16 +1000
committerSergey Udaltsov <sergey.udaltsov@gmail.com>2020-09-23 14:58:52 +0000
commitc0dacda21b3ed315e84e211e08a500058c102c56 (patch)
treea817b0a965cc81cb5b5b5a4701410b18d8346aaf
parentb16713efeb62229fd63629fd9e7ff19e2ef91bf2 (diff)
po: pass the custom xgettext args through
Same as with the autotools build, see po/MakeVars This makes translations work with meson now, in the usual fashion: $ meson translation-build $ ninja -C translation-build xkeyboard-config-pot # Now you can optionally remove the build directory $ rm -rf translation-build $ cp po/xkeyboard-config.pot po/$lang.po To update an existing translation, run: $ meson translation-build $ ninja -C translation-build xkeyboard-config-update-po # Now you can optionally remove the build directory $ rm -rf translation-build Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--po/meson.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/po/meson.build b/po/meson.build
index 0521810c..3e512def 100644
--- a/po/meson.build
+++ b/po/meson.build
@@ -1,2 +1,5 @@
i18n = import('i18n')
-i18n.gettext('xkeyboard-config', preset: 'glib')
+i18n.gettext('xkeyboard-config', preset: 'glib',
+ args: ['--keyword=_',
+ '--keyword=N_',
+ '--its=@0@/rules/xkb.its'.format(meson.source_root())])