meson: hook up translations
authorTim-Philipp Müller <tim@centricular.com>
Sat, 24 Sep 2016 08:36:24 +0000 (09:36 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 26 Sep 2016 10:43:29 +0000 (11:43 +0100)
meson.build
po/meson.build [new file with mode: 0644]

index 1489268..fe6b3b9 100644 (file)
@@ -242,6 +242,7 @@ subdir('gst')
 subdir('sys')
 subdir('ext')
 subdir('tests')
+subdir('po')
 
 configure_file(input : 'config.h.meson',
   output : 'config.h',
diff --git a/po/meson.build b/po/meson.build
new file mode 100644 (file)
index 0000000..e8d70eb
--- /dev/null
@@ -0,0 +1,9 @@
+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', 'mt', 'nb',
+ 'nl', 'or', 'pl', 'pt_BR', 'ro', 'ru', 'sk', 'sl',
+ 'sq', 'sr', 'sv', 'tr', 'uk', 'vi', 'zh_CN', 'zh_TW' ]
+
+i18n.gettext('gst-plugins-good-1.0', languages : langs)