[Commits] cm_gdata_contacts.c 1.1.2.14 1.1.2.15

ticho at claws-mail.org ticho at claws-mail.org
Wed Jan 4 16:35:19 CET 2012


Update of /home/claws-mail/plugins/gdata/src
In directory claws-mail:/tmp/cvs-serv16043/src

Modified Files:
      Tag: gtk2
	cm_gdata_contacts.c 
Log Message:
2012-01-04 [ticho]	0.3cvs4

	* src/cm_gdata_contacts.c
		Split the "Added X of X contacts to the cache" message into
		two strings to allow more accurate translating.

Index: cm_gdata_contacts.c
===================================================================
RCS file: /home/claws-mail/plugins/gdata/src/Attic/cm_gdata_contacts.c,v
retrieving revision 1.1.2.14
retrieving revision 1.1.2.15
diff -u -d -r1.1.2.14 -r1.1.2.15
--- cm_gdata_contacts.c	31 Dec 2011 00:40:10 -0000	1.1.2.14
+++ cm_gdata_contacts.c	4 Jan 2012 15:35:17 -0000	1.1.2.15
@@ -176,6 +176,7 @@
   GError *error = NULL;
   guint num_contacts = 0;
   guint num_contacts_added = 0;
+	gchar *tmpstr1, *tmpstr2;
 
   feed = gdata_service_query_finish(GDATA_SERVICE(service), res, &error);
   cm_gdata_contacts_query_running = FALSE;
@@ -197,7 +198,11 @@
   }
   g_object_unref(feed);
   contacts_cache.contacts = g_slist_reverse(contacts_cache.contacts);
-  log_message(LOG_PROTOCOL, _("GData plugin: Added %d of %d contacts to the cache\n"), num_contacts_added, num_contacts);
+	tmpstr1 = g_strdup_printf(_("Added %d of"), num_contacts_added);
+	tmpstr2 = g_strdup_printf(_("%d contacts to the cache"), num_contacts);
+  log_message(LOG_PROTOCOL, "%s %s\n", tmpstr1, tmpstr2);
+	g_free(tmpstr1);
+	g_free(tmpstr2);
 }
 
 static void query_after_auth(GDataContactsService *service)



More information about the Commits mailing list