mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-07-29 23:58:03 -05:00
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 git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17485 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -185,6 +185,7 @@ gnc_totd_initialize (void)
|
||||
/* 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;
|
||||
|
||||
Reference in New Issue
Block a user