AUDIT: r17485 - gnucash/trunk/src/gnome-utils - Fix the i18n of the first and last string in the list of tips of the day.
Andreas Köhler
andi5 at cvs.gnucash.org
Mon Sep 1 16:44:51 EDT 2008
Author: andi5
Date: 2008-09-01 16:44:51 -0400 (Mon, 01 Sep 2008)
New Revision: 17485
Trac: http://svn.gnucash.org/trac/changeset/17485
Modified:
gnucash/trunk/src/gnome-utils/dialog-totd.c
Log:
Fix the i18n of the first and last string in the list of tips of the day.
Add a call to g_strstrip() on the tips to remove unwanted whitespace.
The first and last item should appear translated now.
BP
Modified: gnucash/trunk/src/gnome-utils/dialog-totd.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-totd.c 2008-09-01 20:11:47 UTC (rev 17484)
+++ gnucash/trunk/src/gnome-utils/dialog-totd.c 2008-09-01 20:44:51 UTC (rev 17485)
@@ -185,6 +185,7 @@
/* Convert any escaped characters while counting the strings */
for (tip_count = 0; tip_list[tip_count] != NULL; tip_count++) {
+ g_strstrip(tip_list[tip_count]);
new = g_strcompress(g_strdelimit(tip_list[tip_count], "\n", ' '));
g_free(tip_list[tip_count]);
tip_list[tip_count] = new;
More information about the gnucash-changes
mailing list