meson: po: use glib preset and read language list from LINGUAS

Supported since meson 0.37, so we can use it now.
This commit is contained in:
Tim-Philipp Müller 2017-07-15 12:49:19 +01:00
parent 3b99cf6c54
commit 9c080387bb

View 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')