r17562 - gnucash/branches/2.2/src/gnome-utils - [r17485] 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
Thu Sep 18 23:31:52 EDT 2008
Author: andi5
Date: 2008-09-18 23:31:51 -0400 (Thu, 18 Sep 2008)
New Revision: 17562
Trac: http://svn.gnucash.org/trac/changeset/17562
Modified:
gnucash/branches/2.2/src/gnome-utils/dialog-totd.c
Log:
[r17485] 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.
Modified: gnucash/branches/2.2/src/gnome-utils/dialog-totd.c
===================================================================
--- gnucash/branches/2.2/src/gnome-utils/dialog-totd.c 2008-09-19 03:31:43 UTC (rev 17561)
+++ gnucash/branches/2.2/src/gnome-utils/dialog-totd.c 2008-09-19 03:31:51 UTC (rev 17562)
@@ -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