[rhythmbox/wip/hadess/use-gettext: 42/42] data: Use gettext to translate desktop files




commit d49be2bd872a93931c3b0d93f7e8556ab6f892ac
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Nov 16 14:55:49 2021 +0100

    data: Use gettext to translate desktop files

 data/meson.build                               |  7 ++++---
 data/org.gnome.Rhythmbox3.desktop.in.in        | 10 +++++-----
 data/org.gnome.Rhythmbox3.device.desktop.in.in |  8 ++++----
 3 files changed, 13 insertions(+), 12 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index 2aa8568bc..1f5d2f36f 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -9,14 +9,15 @@ foreach desktop_file : desktop_files
     output: desktop_file + '.in',
     configuration: cdata
   )
-  desktop_file = custom_target(
+  desktop_file = i18n.merge_file(
     desktop_file,
     input: desktop_in_file,
     output: desktop_file,
     install: true,
     install_dir: datadir / 'applications',
-    command: [intltool_merge, '--quiet', '--desktop-style', '--utf8', po_dir, '@INPUT@', '@OUTPUT@'],
-)
+    po_dir: po_dir,
+    type: 'desktop',
+  )
 endforeach
 
 service_conf = configuration_data()
diff --git a/data/org.gnome.Rhythmbox3.desktop.in.in b/data/org.gnome.Rhythmbox3.desktop.in.in
index 47bc596e4..252eef042 100644
--- a/data/org.gnome.Rhythmbox3.desktop.in.in
+++ b/data/org.gnome.Rhythmbox3.desktop.in.in
@@ -1,9 +1,9 @@
 [Desktop Entry]
-_Name=Rhythmbox
-_GenericName=Music Player
-_X-GNOME-FullName=Rhythmbox Music Player
-_Comment=Play and organize your music collection
-_Keywords=Audio;Song;MP3;CD;Podcast;MTP;iPod;Playlist;Last.fm;UPnP;DLNA;Radio;
+Name=Rhythmbox
+GenericName=Music Player
+X-GNOME-FullName=Rhythmbox Music Player
+Comment=Play and organize your music collection
+Keywords=Audio;Song;MP3;CD;Podcast;MTP;iPod;Playlist;Last.fm;UPnP;DLNA;Radio;
 Exec=rhythmbox %U
 Terminal=false
 Type=Application
diff --git a/data/org.gnome.Rhythmbox3.device.desktop.in.in b/data/org.gnome.Rhythmbox3.device.desktop.in.in
index 857a12dc2..07e2311ac 100644
--- a/data/org.gnome.Rhythmbox3.device.desktop.in.in
+++ b/data/org.gnome.Rhythmbox3.device.desktop.in.in
@@ -1,8 +1,8 @@
 [Desktop Entry]
-_Name=Rhythmbox
-_GenericName=Music Player
-_X-GNOME-FullName=Rhythmbox Music Player
-_Comment=Play and organize your music collection
+Name=Rhythmbox
+GenericName=Music Player
+X-GNOME-FullName=Rhythmbox Music Player
+Comment=Play and organize your music collection
 Exec=rhythmbox-client --select-source %U
 Terminal=false
 NoDisplay=true


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]