[gnome-documents] build: Use LINGUAS file for help generation



commit 2b4796b4289961b9d80632724b7fda689c07156f
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Fri Nov 17 17:58:25 2017 +0100

    build: 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.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=787013

 help/LINGUAS     |   32 ++++++++++++++++++++++++++++++++
 help/meson.build |   38 +-------------------------------------
 2 files changed, 33 insertions(+), 37 deletions(-)
---
diff --git a/help/LINGUAS b/help/LINGUAS
new file mode 100644
index 0000000..71ffce3
--- /dev/null
+++ b/help/LINGUAS
@@ -0,0 +1,32 @@
+as
+ca
+cs
+de
+el
+fi
+fr
+es
+gl
+gu
+hi
+hu
+id
+it
+ja
+kn
+ko
+lv
+mr
+nl
+pa
+pl
+pt_BR
+ru
+sl
+sr
+sr@latin
+sv
+te
+vi
+ta
+zh_CN
diff --git a/help/meson.build b/help/meson.build
index f508ed9..1690176 100644
--- a/help/meson.build
+++ b/help/meson.build
@@ -19,45 +19,9 @@ media = [
   'media/icon_gnome-documents.png'
 ]
 
-linguas = [
-  'as',
-  'ca',
-  'cs',
-  'de',
-  'el',
-  'fi',
-  'fr',
-  'es',
-  'gl',
-  'gu',
-  'hi',
-  'hu',
-  'id',
-  'it',
-  'ja',
-  'kn',
-  'ko',
-  'lv',
-  'mr',
-  'nl',
-  'pa',
-  'pl',
-  'pt_BR',
-  'ru',
-  'sl',
-  'sr',
-  'sr@latin',
-  'sv',
-  'te',
-  'vi',
-  'ta',
-  'zh_CN'
-]
-
 gnome.yelp(
   meson.project_name(),
   sources: sources,
   media: media,
-  symlink_media: true,
-  languages: linguas
+  symlink_media: true
 )


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