[gnome-boxes] meson: Use LINGUAS file for help generation



commit b23671c41a1bc8909b6a29a68a8c63391b427fb7
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Sat Dec 9 18:38:29 2017 +0100

    meson: Use LINGUAS file for help generation
    
    The linguas parameter is deprecated in gnome's yelp function for
    the future meson's versions.
    
    The patch uses the LINGUAS file instead of the linguas parameter.
    It also bumps meson's version to support this feature properly.
    
    The polish translations has also been added as it was present in
    autotools but not in meson.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=791421

 help/LINGUAS     |   12 ++++++++++++
 help/meson.build |   15 ---------------
 meson.build      |    2 +-
 3 files changed, 13 insertions(+), 16 deletions(-)
---
diff --git a/help/LINGUAS b/help/LINGUAS
new file mode 100644
index 0000000..9cfc554
--- /dev/null
+++ b/help/LINGUAS
@@ -0,0 +1,12 @@
+# Keep this list sorted alphabetically
+cs
+de
+el
+es
+fr
+hu
+it
+ko
+pl
+pt_BR
+sv
diff --git a/help/meson.build b/help/meson.build
index 8d5666b..56eff8c 100644
--- a/help/meson.build
+++ b/help/meson.build
@@ -32,23 +32,8 @@ help_media = [
   'figures/open-menu-symbolic.svg'
 ]
 
-help_linguas = [
-  'cs',
-  'de',
-  'el',
-  'es',
-  'fr',
-  'hu',
-  'it',
-  'ko',
-  'pl',
-  'pt_BR',
-  'sv'
-]
-
 gnome.yelp (meson.project_name (),
             sources: help_files,
             media: help_media,
-            languages: help_linguas,
             symlink_media: true,
 )
diff --git a/meson.build b/meson.build
index 80b2257..98f816e 100644
--- a/meson.build
+++ b/meson.build
@@ -2,7 +2,7 @@ project ('gnome-boxes',
          ['vala', 'c'],
          version: '3.25.3',
          license: 'LGPLv2+',
-         meson_version: '>= 0.40',
+         meson_version: '>= 0.43',
 )
 
 gnome = import ('gnome')


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