mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug #608306: check amount_word should print the fraction correctly.
Patch by Thomas Troesch: Checks printed the wrong string for the amount_words. The utility number_to_words had produced e.g. from 100.04 -> One Hundred and 4/100. The word string should be One Hundred and 04/100. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18607 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
2e6e8ed5bc
commit
e08fe2a2be
@ -1857,7 +1857,7 @@ number_to_words(gdouble val, gint64 denom)
|
|||||||
/* Inside of the gettext macro _(...) we must not use any macros but
|
/* Inside of the gettext macro _(...) we must not use any macros but
|
||||||
only plain string literals. For this reason, convert the strings
|
only plain string literals. For this reason, convert the strings
|
||||||
separately. */
|
separately. */
|
||||||
nomin_string = g_strdup_printf("%" G_GINT64_FORMAT, frac_part);
|
nomin_string = g_strdup_printf("%02" G_GINT64_FORMAT, frac_part);
|
||||||
denom_string = g_strdup_printf("%" G_GINT64_FORMAT, denom);
|
denom_string = g_strdup_printf("%" G_GINT64_FORMAT, denom);
|
||||||
full_string =
|
full_string =
|
||||||
/* Translators: This is for the "amount, in words" field in check
|
/* Translators: This is for the "amount, in words" field in check
|
||||||
|
Loading…
Reference in New Issue
Block a user