[gtranslator] Solved problem when a new translator is included in the po header.



commit 7a966908d433caaf12b640b045cd8cf0d3f87942
Author: Francisco Puga <fran puga gmail com>
Date:   Mon Jul 27 22:04:27 2009 -0700

    Solved problem when a new translator is included in the po header.
    Now it is not added a empty line between the last translator and the
    new one. (Fixes bug #569054)

 src/po.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/po.c b/src/po.c
index d1b90ed..e894f7d 100644
--- a/src/po.c
+++ b/src/po.c
@@ -715,8 +715,8 @@ gtranslator_po_save_header_in_msg (GtranslatorPo *po, GtranslatorHeader *header)
 	 */
 	if ((g_utf8_collate (prev_translator, aux) != 0) || (prev_translator == NULL)) {
 	  
-	  header_comment = gtranslator_header_get_comment (header);
-	  aux2 = g_strconcat(header_comment, gtranslator_header_get_translator(header), " ", "<",
+	  header_comment = g_strchomp(gtranslator_header_get_comment (header));
+	  aux2 = g_strconcat(header_comment, "\n",gtranslator_header_get_translator(header), " ", "<",
 			     gtranslator_header_get_tr_email(header), ">", ",", " ", year, ".", NULL);
 	  
 	  gtranslator_header_set_comment (header, (const gchar *)aux2);



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