[gtranslator] Do not duplicate the current year.



commit b6bc4d885832cfe6b7c182b3ab346142356ed927
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sat Jan 30 22:20:32 2010 +0100

    Do not duplicate the current year.

 src/header.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/header.c b/src/header.c
index 0aee11a..0d7420e 100644
--- a/src/header.c
+++ b/src/header.c
@@ -602,7 +602,8 @@ update_comments (GtranslatorHeader *header,
               else
                 search = g_strdup (year_array[j]);
 
-              if (g_strrstr (years->str, search) == NULL)
+              if ((g_strrstr (years->str, search) == NULL) &&
+                  (strcmp (search + 1, current_year) != 0))
                 {
                   years = g_string_append (years, search);
                   years = g_string_append_c (years, ',');



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