[geary/wip/piotrdrag/fix-contract-description: 3/3] Fix extracting Description key from contractor file for translation



commit 52d218003de479f3619411bc4ed9fdef4f317db9
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Sun Sep 30 19:40:00 2018 +0200

    Fix extracting Description key from contractor file for translation

 desktop/meson.build | 8 +++++---
 po/meson.build      | 3 ++-
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/desktop/meson.build b/desktop/meson.build
index 15a69209..56e39d2f 100644
--- a/desktop/meson.build
+++ b/desktop/meson.build
@@ -21,11 +21,13 @@ i18n.merge_file(
 
 # Contractor file (Elementary OS)
 if install_contractor_file
-  i18n.merge_file(
+
+  msgfmt = find_program('msgfmt')
+
+  custom_target(
     input: 'geary-attach.contract.desktop.in',
     output: 'geary-attach.contract',
-    type: 'desktop',
-    po_dir: po_dir,
+    command: [msgfmt, '--desktop', '--keyword=Description', '--template', '@INPUT@', '-d', po_dir, '-o', 
'@OUTPUT@'],
     install: true,
     install_dir: join_paths(datadir, 'contractor')
   )
diff --git a/po/meson.build b/po/meson.build
index f904cde4..5a7309d8 100644
--- a/po/meson.build
+++ b/po/meson.build
@@ -1,3 +1,4 @@
 i18n.gettext(meson.project_name(),
-  preset: 'glib'
+  preset: 'glib',
+  args: '--keyword=Description'
 )


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