[totem] build: Use meson to translate appdata
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] build: Use meson to translate appdata
- Date: Fri, 23 Jun 2017 18:29:46 +0000 (UTC)
commit a13d42100ab3337de5050e82da81577c46cc6a64
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jun 23 20:28:46 2017 +0200
build: Use meson to translate appdata
Instead of intltool-merge.
data/appdata/meson.build | 16 +++++++---------
data/appdata/org.gnome.Totem.appdata.xml.in | 12 ++++++------
2 files changed, 13 insertions(+), 15 deletions(-)
---
diff --git a/data/appdata/meson.build b/data/appdata/meson.build
index e5711b5..4c496ab 100644
--- a/data/appdata/meson.build
+++ b/data/appdata/meson.build
@@ -1,10 +1,8 @@
-info_name = 'org.gnome.Totem.metainfo.xml'
+po_dir = join_paths(meson.source_root(), 'po')
-custom_target(
- info_name,
- input: 'org.gnome.Totem.appdata.xml.in',
- output: info_name,
- command: intltool_xml_cmd,
- install: true,
- install_dir: join_paths(totem_datadir, 'appdata')
-)
+i18n.merge_file ('appdata',
+ input: 'org.gnome.Totem.appdata.xml.in',
+ output: 'org.gnome.Totem.appdata.xml',
+ install: true,
+ install_dir: join_paths(totem_datadir, 'appdata'),
+ po_dir: po_dir,)
diff --git a/data/appdata/org.gnome.Totem.appdata.xml.in b/data/appdata/org.gnome.Totem.appdata.xml.in
index d2b46ed..4ede057 100644
--- a/data/appdata/org.gnome.Totem.appdata.xml.in
+++ b/data/appdata/org.gnome.Totem.appdata.xml.in
@@ -2,23 +2,23 @@
<!-- Copyright 2013 Richard Hughes <richard hughsie com>
Copyright 2013 William Jon McCann <william jon mccann gmail com> -->
<application>
- <_name>Videos</_name>
- <_summary>Play movies</_summary>
+ <name>Videos</name>
+ <summary>Play movies</summary>
<id type="desktop">org.gnome.Totem.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0+</project_license><!-- with the GStreamer exception -->
<description>
- <_p>
+ <p>
Videos, also known as Totem, is the official movie player of the GNOME
desktop environment.
It features a searchable list of local videos, and DVDs, as well as local
network video shares (using UPnP/DLNA) and video highlights from a number
of web sites.
- </_p>
- <_p>
+ </p>
+ <p>
Totem comes with added functionality such as: subtitle downloader,
and support for recording DVDs.
- </_p>
+ </p>
<ul>
<_li>Video thumbnailer for the file manager</_li>
<_li>Files properties tab</_li>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]