[rygel/wip/meson: 25/49] meson: Add i18n and desktop files
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/wip/meson: 25/49] meson: Add i18n and desktop files
- Date: Mon, 22 Oct 2018 20:14:29 +0000 (UTC)
commit 35a2abf269e7c52ed8b598dec0e8a27cfbffe9ff
Author: Jens Georg <mail jensge org>
Date: Mon May 22 08:20:57 2017 +0200
meson: Add i18n and desktop files
data/meson.build | 18 ++++++++++++++++--
meson.build | 3 +++
po/meson.build | 1 +
3 files changed, 20 insertions(+), 2 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index d7d07198..65994350 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -25,13 +25,27 @@ configure_file(input: 'rygel.service.in',
configuration: data_conf,
install_dir : rygel_systemduserdir)
-configure_file(input: 'rygel-preferences.desktop.in.in',
+rygel_desktop_preferences_in = configure_file(input: 'rygel-preferences.desktop.in.in',
output : 'rygel-preferences.desktop.in',
configuration : data_conf)
-configure_file(input: 'rygel.desktop.in.in',
+rygel_desktop_in = configure_file(input: 'rygel.desktop.in.in',
output : 'rygel.desktop.in',
configuration : data_conf)
+i18n.merge_file(input: rygel_desktop_in,
+ output: 'rygel.desktop',
+ po_dir : join_paths('..','po'),
+ type: 'desktop',
+ install : true,
+ install_dir: join_paths(get_option('datadir'), 'applications'))
+
+i18n.merge_file(input: rygel_desktop_preferences_in,
+ output: 'rygel-preferences.desktop',
+ po_dir : join_paths('..','po'),
+ type: 'desktop',
+ install : true,
+ install_dir: join_paths(get_option('datadir'), 'applications'))
+
subdir('presets')
subdir('xml')
diff --git a/meson.build b/meson.build
index cf3919b2..78b882be 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,8 @@
project('rygel', ['vala', 'c'],
version : '0.35.0')
+i18n = import('i18n')
+
rygel_sysconfdir = join_paths(get_option('prefix'), get_option('sysconfdir'))
rygel_datadir = join_paths(get_option('prefix'), get_option('datadir'))
rygel_libdir = join_paths(get_option('prefix'), get_option('libdir'))
@@ -107,5 +109,6 @@ ui_deps = common_deps + [gtk]
configure_file(output: 'config.h', configuration: conf)
subdir('src')
+subdir('po')
subdir('data')
subdir('doc')
diff --git a/po/meson.build b/po/meson.build
new file mode 100644
index 00000000..55001cf4
--- /dev/null
+++ b/po/meson.build
@@ -0,0 +1 @@
+i18n.gettext('rygel', preset: 'glib')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]