summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2019-07-29 22:58:05 +0200
committerMichael Catanzaro <mcatanzaro@gnome.org>2019-08-05 21:19:38 +0000
commitf4fe90e3902ef7be09fa18f95cd13983489c485d (patch)
tree9b74cefcdac90a50d8d7c2135ed692981cf674ac /data
parent9cc1bb0cd4c45553b0f5b9434c2e4c8198f57f0e (diff)
downloadcheese-f4fe90e3902ef7be09fa18f95cd13983489c485d.tar.gz
build: Migrate from Intltool to Gettext
Recent versions of Gettext are able to translate several formats that are used in GNOME applications. The use of Intltool in Cheese has been replaced by Gettext.
Diffstat (limited to 'data')
-rw-r--r--data/meson.build9
-rw-r--r--data/org.gnome.Cheese.appdata.xml.in16
-rw-r--r--data/org.gnome.Cheese.desktop.in8
3 files changed, 17 insertions, 16 deletions
diff --git a/data/meson.build b/data/meson.build
index aa5acbdb..34e669da 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -22,22 +22,23 @@ resource_sources = gnome.compile_resources(
desktop = cheese_namespace + '.desktop'
-custom_target(
+i18n.merge_file(
desktop,
+ type: 'desktop',
input: desktop + '.in',
output: '@BASENAME@',
- command: intltool_desktop_cmd,
+ po_dir: po_dir,
install: true,
install_dir: cheese_datadir / 'applications',
)
appdata = cheese_namespace + '.appdata.xml'
-custom_target(
+i18n.merge_file(
appdata,
input: appdata + '.in',
output: '@BASENAME@',
- command: intltool_xml_cmd,
+ po_dir: po_dir,
install: true,
install_dir: cheese_datadir / 'metainfo',
)
diff --git a/data/org.gnome.Cheese.appdata.xml.in b/data/org.gnome.Cheese.appdata.xml.in
index e8dc6545..19c7b5d7 100644
--- a/data/org.gnome.Cheese.appdata.xml.in
+++ b/data/org.gnome.Cheese.appdata.xml.in
@@ -6,24 +6,24 @@
<project_license>GPL-2.0+</project_license>
<!-- Both taken from the desktop file. -->
- <_name>Cheese</_name>
- <_summary>Take photos and videos with your webcam, with fun graphical effects</_summary>
+ <name>Cheese</name>
+ <summary>Take photos and videos with your webcam, with fun graphical effects</summary>
<description>
- <_p>
+ <p>
Cheese uses your webcam to take photos and videos, applies fancy
special effects and lets you share the fun with others.
- </_p>
- <_p>
+ </p>
+ <p>
Take multiple photos in quick succession with burst mode.
Use the countdown to give yourself time to strike a pose, and wait for the
flash!
- </_p>
- <_p>
+ </p>
+ <p>
Under the hood, Cheese uses GStreamer to apply fancy effects to
photos and videos.
With Cheese it is easy to take photos of you, your friends, pets or
whatever you want and share them with others.
- </_p>
+ </p>
</description>
<url type="homepage">https://wiki.gnome.org/Apps/Cheese</url>
<url type="bugtracker">https://bugzilla.gnome.org/enter_bug.cgi?product=cheese</url>
diff --git a/data/org.gnome.Cheese.desktop.in b/data/org.gnome.Cheese.desktop.in
index 63ea4d5e..db420143 100644
--- a/data/org.gnome.Cheese.desktop.in
+++ b/data/org.gnome.Cheese.desktop.in
@@ -1,8 +1,8 @@
[Desktop Entry]
-_Name=Cheese
-_GenericName=Webcam Booth
-_Comment=Take photos and videos with your webcam, with fun graphical effects
-_Keywords=photo;video;webcam;
+Name=Cheese
+GenericName=Webcam Booth
+Comment=Take photos and videos with your webcam, with fun graphical effects
+Keywords=photo;video;webcam;
Exec=cheese
Terminal=false
Type=Application