[devhelp] meson: gettext



commit 79d85b2834f4f67430bb7699cd53e67a0b8e7f7b
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Tue Mar 13 13:17:17 2018 +0100

    meson: gettext
    
    OK, the *.pot file contains the same set of translatable strings
    (compared to the one downloaded from
    https://l10n.gnome.org/module/devhelp/ ).

 meson.build    |    4 +++-
 po/meson.build |    4 ++++
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/meson.build b/meson.build
index b9788a6..0c6a0d2 100644
--- a/meson.build
+++ b/meson.build
@@ -55,9 +55,10 @@ DEVHELP_APP_DEPS = [
 # config.h
 
 config_data = configuration_data()
+GETTEXT_PACKAGE_NAME = meson.project_name()
 config_data.set_quoted(
         'GETTEXT_PACKAGE',
-        meson.project_name(),
+        GETTEXT_PACKAGE_NAME,
         description : 'Define to the gettext package name.'
 )
 config_data.set_quoted(
@@ -146,6 +147,7 @@ add_global_arguments(supported_warning_cflags, language : 'c')
 ##### end CFLAGS
 
 subdir('data')
+subdir('po')
 subdir('devhelp')
 subdir('src')
 subdir('unit-tests')
diff --git a/po/meson.build b/po/meson.build
new file mode 100644
index 0000000..de52c7d
--- /dev/null
+++ b/po/meson.build
@@ -0,0 +1,4 @@
+I18N.gettext(
+        GETTEXT_PACKAGE_NAME,
+        preset : 'glib'
+)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]