meson: po: use glib preset and read language list from LINGUAS
authorTim-Philipp Müller <tim@centricular.com>
Sat, 15 Jul 2017 11:49:19 +0000 (12:49 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 15 Jul 2017 11:49:41 +0000 (12:49 +0100)
Supported since meson 0.37, so we can use it now.

po/meson.build

index 0644277..2657c01 100644 (file)
@@ -1,9 +1,3 @@
 i18n = import('i18n')
 
-langs = [ 'af', 'az', 'bg', 'ca', 'cs', 'da', 'de', 'el',
-  'en_GB', 'eo', 'es', 'eu', 'fi', 'fr', 'gl', 'hr',
- 'hu', 'id', 'it', 'ja', 'lt', 'lv', 'ms', 'mt',
- 'nb', 'nl', 'or', 'pl', 'pt_BR', 'ro', 'ru', 'sk', 'sl',
- 'sq', 'sr', 'sv', 'tr', 'uk', 'vi', 'zh_CN' ]
-
-i18n.gettext('gst-plugins-ugly-1.0', languages : langs)
+i18n.gettext('gst-plugins-ugly-1.0', preset: 'glib')