[tracker-miners/wip/piotrdrag/kill-intltool] Remove intltool also from the D-Bus service files



commit 3236c365a09a5d15d4f4972725a21dcfba03fb5c
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Fri Sep 28 19:00:23 2018 +0200

    Remove intltool also from the D-Bus service files

 meson.build                                                         | 1 +
 po/meson.build                                                      | 6 +++++-
 src/miners/apps/meson.build                                         | 6 +++---
 ...g.freedesktop.Tracker1.Miner.Applications.service.desktop.in.in} | 4 ++--
 src/miners/fs/meson.build                                           | 6 +++---
 ...n => org.freedesktop.Tracker1.Miner.Files.service.desktop.in.in} | 4 ++--
 src/miners/rss/meson.build                                          | 6 +++---
 ....in => org.freedesktop.Tracker1.Miner.RSS.service.desktop.in.in} | 4 ++--
 src/tracker-extract/meson.build                                     | 6 +++---
 ...=> org.freedesktop.Tracker1.Miner.Extract.service.desktop.in.in} | 4 ++--
 10 files changed, 26 insertions(+), 21 deletions(-)
---
diff --git a/meson.build b/meson.build
index ba857ca86..2834d5f77 100644
--- a/meson.build
+++ b/meson.build
@@ -393,6 +393,7 @@ vapi_dir = join_paths(get_option('prefix'), get_option('datadir'), 'vala', 'vapi
 xdg_autostart_dir = join_paths(get_option('sysconfdir'), 'xdg', 'autostart')
 
 glib_mkenums = find_program('glib-mkenums')
+msgfmt = find_program('msgfmt')
 
 subdir('src')
 
diff --git a/po/meson.build b/po/meson.build
index 9fec2bcf0..428b40639 100644
--- a/po/meson.build
+++ b/po/meson.build
@@ -1 +1,5 @@
-i18n.gettext('tracker-miners', preset: 'glib')
+i18n.gettext(
+  'tracker-miners',
+  preset: 'glib',
+  args: '--keyword=TypeDescription --keyword=Comment',
+)
diff --git a/src/miners/apps/meson.build b/src/miners/apps/meson.build
index f90c3d7c0..8d69c1870 100644
--- a/src/miners/apps/meson.build
+++ b/src/miners/apps/meson.build
@@ -12,14 +12,14 @@ executable('tracker-miner-apps', sources,
 )
 
 dbus_service_file_untranslated = configure_file(
-    input: 'org.freedesktop.Tracker1.Miner.Applications.service.in.in',
-    output: 'org.freedesktop.Tracker1.Miner.Applications.service.in',
+    input: 'org.freedesktop.Tracker1.Miner.Applications.service.desktop.in.in',
+    output: 'org.freedesktop.Tracker1.Miner.Applications.service.desktop.in',
     configuration: conf)
 
 dbus_service_file = custom_target('tracker-miner-apps-dbus-service-file',
     input: dbus_service_file_untranslated,
     output: 'org.freedesktop.Tracker1.Miner.Applications.service',
-    command: ['intltool-merge', '--quiet', '--desktop-style', '--utf8', join_paths(meson.source_root(), 
'po'), '@INPUT@', '@OUTPUT@'],
+    command: [msgfmt, '--desktop', '--keyword=DisplayName', '--keyword=Comment', '--template', '@INPUT@', 
'-d', po_dir, '-o', '@OUTPUT@'],
     install: true,
     install_dir: dbus_services_dir)
 
diff --git a/src/miners/apps/org.freedesktop.Tracker1.Miner.Applications.service.in.in 
b/src/miners/apps/org.freedesktop.Tracker1.Miner.Applications.service.desktop.in.in
similarity index 81%
rename from src/miners/apps/org.freedesktop.Tracker1.Miner.Applications.service.in.in
rename to src/miners/apps/org.freedesktop.Tracker1.Miner.Applications.service.desktop.in.in
index 13e26c3e0..b798f0bab 100644
--- a/src/miners/apps/org.freedesktop.Tracker1.Miner.Applications.service.in.in
+++ b/src/miners/apps/org.freedesktop.Tracker1.Miner.Applications.service.desktop.in.in
@@ -6,5 +6,5 @@ SystemdService=tracker-miner-apps.service
 # Miner details needed for tracker-control
 Path=/org/freedesktop/Tracker1/Miner/Applications
 NameSuffix=Miner.Applications
-_DisplayName=Applications
-_Comment=Applications data miner
+DisplayName=Applications
+Comment=Applications data miner
diff --git a/src/miners/fs/meson.build b/src/miners/fs/meson.build
index 7b5dd7124..14d22080e 100644
--- a/src/miners/fs/meson.build
+++ b/src/miners/fs/meson.build
@@ -35,14 +35,14 @@ executable('tracker-miner-fs', sources,
 )
 
 dbus_service_file_untranslated = configure_file(
-    input: 'org.freedesktop.Tracker1.Miner.Files.service.in.in',
-    output: 'org.freedesktop.Tracker1.Miner.Files.service.in',
+    input: 'org.freedesktop.Tracker1.Miner.Files.service.desktop.in.in',
+    output: 'org.freedesktop.Tracker1.Miner.Files.service.desktop.in',
     configuration: conf)
 
 dbus_service_file = custom_target('tracker-miner-files-dbus-service-file',
     input: dbus_service_file_untranslated,
     output: 'org.freedesktop.Tracker1.Miner.Files.service',
-    command: ['intltool-merge', '--quiet', '--desktop-style', '--utf8', join_paths(meson.source_root(), 
'po'), '@INPUT@', '@OUTPUT@'],
+    command: [msgfmt, '--desktop', '--keyword=DisplayName', '--keyword=Comment', '--template', '@INPUT@', 
'-d', po_dir, '-o', '@OUTPUT@'],
     install: true,
     install_dir: dbus_services_dir)
 
diff --git a/src/miners/fs/org.freedesktop.Tracker1.Miner.Files.service.in.in 
b/src/miners/fs/org.freedesktop.Tracker1.Miner.Files.service.desktop.in.in
similarity index 81%
rename from src/miners/fs/org.freedesktop.Tracker1.Miner.Files.service.in.in
rename to src/miners/fs/org.freedesktop.Tracker1.Miner.Files.service.desktop.in.in
index a61719947..b58c0b8b2 100644
--- a/src/miners/fs/org.freedesktop.Tracker1.Miner.Files.service.in.in
+++ b/src/miners/fs/org.freedesktop.Tracker1.Miner.Files.service.desktop.in.in
@@ -6,5 +6,5 @@ SystemdService=tracker-miner-fs.service
 # Miner details needed for tracker-control
 Path=/org/freedesktop/Tracker1/Miner/Files
 NameSuffix=Miner.Files
-_DisplayName=File System
-_Comment=File system data miner
+DisplayName=File System
+Comment=File system data miner
diff --git a/src/miners/rss/meson.build b/src/miners/rss/meson.build
index 037d74a9f..1cd589744 100644
--- a/src/miners/rss/meson.build
+++ b/src/miners/rss/meson.build
@@ -12,14 +12,14 @@ executable('tracker-miner-rss', sources,
 )
 
 dbus_service_file_untranslated = configure_file(
-    input: 'org.freedesktop.Tracker1.Miner.RSS.service.in.in',
-    output: 'org.freedesktop.Tracker1.Miner.RSS.service.in',
+    input: 'org.freedesktop.Tracker1.Miner.RSS.service.desktop.in.in',
+    output: 'org.freedesktop.Tracker1.Miner.RSS.service.desktop.in',
     configuration: conf)
 
 dbus_service_file = custom_target('tracker-miner-rss-dbus-service-file',
     input: dbus_service_file_untranslated,
     output: 'org.freedesktop.Tracker1.Miner.RSS.service',
-    command: ['intltool-merge', '--quiet', '--desktop-style', '--utf8', join_paths(meson.source_root(), 
'po'), '@INPUT@', '@OUTPUT@'],
+    command: [msgfmt, '--desktop', '--keyword=DisplayName', '--keyword=Comment', '--template', '@INPUT@', 
'-d', po_dir, '-o', '@OUTPUT@'],
     install: true,
     install_dir: dbus_services_dir)
 
diff --git a/src/miners/rss/org.freedesktop.Tracker1.Miner.RSS.service.in.in 
b/src/miners/rss/org.freedesktop.Tracker1.Miner.RSS.service.desktop.in.in
similarity index 80%
rename from src/miners/rss/org.freedesktop.Tracker1.Miner.RSS.service.in.in
rename to src/miners/rss/org.freedesktop.Tracker1.Miner.RSS.service.desktop.in.in
index 372c21965..5da6d455e 100644
--- a/src/miners/rss/org.freedesktop.Tracker1.Miner.RSS.service.in.in
+++ b/src/miners/rss/org.freedesktop.Tracker1.Miner.RSS.service.desktop.in.in
@@ -6,5 +6,5 @@ SystemdService=tracker-miner-rss.service
 # Miner details needed for tracker-control
 Path=/org/freedesktop/Tracker1/Miner/RSS
 NameSuffix=Miner.RSS
-_DisplayName=RSS/ATOM Feeds
-_Comment=Fetch RSS/ATOM Feeds
+DisplayName=RSS/ATOM Feeds
+Comment=Fetch RSS/ATOM Feeds
diff --git a/src/tracker-extract/meson.build b/src/tracker-extract/meson.build
index 78cae54e7..31761b068 100644
--- a/src/tracker-extract/meson.build
+++ b/src/tracker-extract/meson.build
@@ -175,14 +175,14 @@ executable('tracker-extract',
   install_rpath: tracker_internal_libs_dir)
 
 dbus_service_file_untranslated = configure_file(
-  input: 'org.freedesktop.Tracker1.Miner.Extract.service.in.in',
-  output: 'org.freedesktop.Tracker1.Miner.Extract.service.in',
+  input: 'org.freedesktop.Tracker1.Miner.Extract.service.desktop.in.in',
+  output: 'org.freedesktop.Tracker1.Miner.Extract.service.desktop.in',
   configuration: conf)
 
 dbus_service_file = custom_target('tracker-extract-dbus-service-file',
   input: dbus_service_file_untranslated,
   output: 'org.freedesktop.Tracker1.Miner.Extract.service',
-  command: ['intltool-merge', '--quiet', '--desktop-style', '--utf8', join_paths(meson.source_root(), 'po'), 
'@INPUT@', '@OUTPUT@'],
+    command: [msgfmt, '--desktop', '--keyword=DisplayName', '--keyword=Comment', '--template', '@INPUT@', 
'-d', po_dir, '-o', '@OUTPUT@'],
   install: true,
   install_dir: dbus_services_dir)
 
diff --git a/src/tracker-extract/org.freedesktop.Tracker1.Miner.Extract.service.in.in 
b/src/tracker-extract/org.freedesktop.Tracker1.Miner.Extract.service.desktop.in.in
similarity index 82%
rename from src/tracker-extract/org.freedesktop.Tracker1.Miner.Extract.service.in.in
rename to src/tracker-extract/org.freedesktop.Tracker1.Miner.Extract.service.desktop.in.in
index 32dd1dfd0..17b294bfc 100644
--- a/src/tracker-extract/org.freedesktop.Tracker1.Miner.Extract.service.in.in
+++ b/src/tracker-extract/org.freedesktop.Tracker1.Miner.Extract.service.desktop.in.in
@@ -6,5 +6,5 @@ SystemdService=tracker-extract.service
 # Miner details needed for tracker-control
 Path=/org/freedesktop/Tracker1/Miner/Extract
 NameSuffix=Miner.Extract
-_DisplayName=Extractor
-_Comment=Metadata extractor
+DisplayName=Extractor
+Comment=Metadata extractor


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