[gtranslator] Add/update X-Generator header in PO file



commit 0fb5658f58e261ecb49afdd50883e8d6d75d3648
Author: Daniel Mustieles <daniel mustieles gmail com>
Date:   Mon May 21 11:27:19 2012 +0200

    Add/update X-Generator header in PO file

 src/gtr-header.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gtr-header.c b/src/gtr-header.c
index 7561b53..8a0a373 100644
--- a/src/gtr-header.c
+++ b/src/gtr-header.c
@@ -22,6 +22,10 @@
  *   Ignacio Casal Quinteiro <icq gnome org>
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "gtr-application.h"
 #include "gtr-header.h"
 #include "gtr-settings.h"
@@ -713,6 +717,9 @@ gtr_header_update_header (GtrHeader * header)
 
   /* We need to unfuzzy the header to not produce errors */
   gtr_msg_set_fuzzy (GTR_MSG (header), FALSE);
+
+  /* Update X-Generator field */
+  gtr_header_set_field (header, "X-Generator", "Gtranslator "PACKAGE_VERSION);
 }
 
 void



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