mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06: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:
parent
c2eb587552
commit
0f1b50c2d4
@ -185,6 +185,7 @@ gnc_totd_initialize (void)
|
|||||||
/* Convert any escaped characters while counting the strings */
|
/* Convert any escaped characters while counting the strings */
|
||||||
for (tip_count = 0; tip_list[tip_count] != NULL; tip_count++) {
|
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", ' '));
|
new = g_strcompress(g_strdelimit(tip_list[tip_count], "\n", ' '));
|
||||||
g_free(tip_list[tip_count]);
|
g_free(tip_list[tip_count]);
|
||||||
tip_list[tip_count] = new;
|
tip_list[tip_count] = new;
|
||||||
|
Loading…
Reference in New Issue
Block a user