[gtranslator] Do not duplicate the current year.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtranslator] Do not duplicate the current year.
- Date: Sat, 30 Jan 2010 21:20:48 +0000 (UTC)
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]