gtranslator r3610 - in trunk: . plugins/subversion



Author: icq
Date: Mon Sep 22 09:39:00 2008
New Revision: 3610
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3610&view=rev

Log:
Now subversion gets the values from profile manager and it sets correctly the new ChangeLog entry

Modified:
   trunk/ChangeLog
   trunk/plugins/subversion/commit-dialog.c
   trunk/plugins/subversion/subversion-utils.c

Modified: trunk/plugins/subversion/commit-dialog.c
==============================================================================
--- trunk/plugins/subversion/commit-dialog.c	(original)
+++ trunk/plugins/subversion/commit-dialog.c	Mon Sep 22 09:39:00 2008
@@ -259,7 +259,7 @@
 	
 	buf = gtk_text_view_get_buffer (GTK_TEXT_VIEW (textview));
 	
-	log = g_strdup_printf (" * Updated %s translation",
+	log = g_strdup_printf ("Updated %s translation",
 	/*
 	 * Translators: Please change LANGUAGE for your language name in ENGLISH.
 	 * This string is used to fill the ChangeLog entry

Modified: trunk/plugins/subversion/subversion-utils.c
==============================================================================
--- trunk/plugins/subversion/subversion-utils.c	(original)
+++ trunk/plugins/subversion/subversion-utils.c	Mon Sep 22 09:39:00 2008
@@ -146,18 +146,23 @@
 	gchar *name;
 	gchar *email;
 	gchar *changelog_entry;
+	gchar *date;
+	gchar *code;
 	
 	log = subversion_utils_get_log_from_textview (view);
 	
 	profile = gtranslator_application_get_active_profile (GTR_APP);
 	name = gtranslator_profile_get_author_name (profile);
 	email = gtranslator_profile_get_author_email (profile);
+	code = gtranslator_profile_get_language_code (profile);
+	date = gtranslator_utils_get_current_date ();
 	
 	//FIXME: Is missing the date
-	changelog_entry = g_strdup_printf ("date  %s  <%s>\n"
-					   "\n\t %s\n\n", name, email,
-					   log);
+	changelog_entry = g_strdup_printf ("%s  %s  <%s>\n"
+					   "\n\t %s.po: %s\n\n", date, name, email,
+					   code, log);
 	g_free (log);
+	g_free (date);
 	//g_free (name);
 	//g_free (email);
 	



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