[template-glib] build: install gettext-based i18n translations
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [template-glib] build: install gettext-based i18n translations
- Date: Sat, 3 Jun 2017 01:00:50 +0000 (UTC)
commit 3ed28a40de253dffb785968964f10029ffc0c572
Author: Christian Hergert <chergert redhat com>
Date: Fri Jun 2 18:00:41 2017 -0700
build: install gettext-based i18n translations
meson.build | 6 +++++-
po/LINGUAS | 13 -------------
po/Makevars | 6 ------
po/POTFILES.in | 3 ---
po/meson.build | 44 ++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 49 insertions(+), 23 deletions(-)
---
diff --git a/meson.build b/meson.build
index 2a0ae44..23b343e 100644
--- a/meson.build
+++ b/meson.build
@@ -91,4 +91,8 @@ gnome = import('gnome')
subdir('src')
subdir('tests')
-subdir('doc')
+subdir('po')
+
+if get_option('enable-gtk-doc')
+ subdir('doc')
+endif
diff --git a/po/meson.build b/po/meson.build
new file mode 100644
index 0000000..69eb17b
--- /dev/null
+++ b/po/meson.build
@@ -0,0 +1,44 @@
+i18n = import('i18n')
+
+langs = [
+ 'cs',
+ 'de',
+ 'el',
+ 'es',
+ 'fur',
+ 'hu',
+ 'id',
+ 'pl',
+ 'pt',
+ 'pt_BR',
+ 'sl',
+ 'sr',
+ 'sv',
+]
+
+i18n.gettext('template-glib-1.0',
+ languages: langs,
+ args: [
+ '--default-domain=' + meson.project_name(),
+ '--from-code=UTF-8',
+ '--add-comments',
+ '--msgid-bugs-address=https://bugzilla.gnome.org/enter_bug.cgi?product=template-glib',
+
+ '--keyword=_',
+ '--keyword=N_',
+ '--keyword=C_:1c,2',
+ '--keyword=NC_:1c,2',
+ '--keyword=g_dcgettext:2',
+ '--keyword=g_dngettext:2,3',
+ '--keyword=g_dpgettext2:2c,3',
+
+ '--flag=N_:1:pass-c-format',
+ '--flag=C_:2:pass-c-format',
+ '--flag=NC_:2:pass-c-format',
+ '--flag=g_dngettext:2:pass-c-format',
+ '--flag=g_strdup_printf:1:c-format',
+ '--flag=g_string_printf:2:c-format',
+ '--flag=g_string_append_printf:2:c-format',
+ '--flag=g_error_new:3:c-format',
+ '--flag=g_set_error:4:c-format',
+ ])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]