|
|
@@ -1,7 +1,7 @@ |
|
|
|
/* |
|
|
|
* Copyright (C) 2005 to 2015 by Jonathan Duddington |
|
|
|
* email: [email protected] |
|
|
|
* Copyright (C) 2015-2016 Reece H. Dunn |
|
|
|
* Copyright (C) 2015-2016, 2020 Reece H. Dunn |
|
|
|
* |
|
|
|
* This program is free software; you can redistribute it and/or modify |
|
|
|
* it under the terms of the GNU General Public License as published by |
|
|
@@ -1590,8 +1590,8 @@ static int LookupNum3(Translator *tr, int value, char *ph_out, bool suppress_nul |
|
|
|
LookupNum2(tr, hundreds/10, thousandplex, x, ph_digits); |
|
|
|
} |
|
|
|
|
|
|
|
if (tr->langopts.numbers2 & 0x200) |
|
|
|
sprintf(ph_thousands, "%s%c%s%c", ph_10T, phonEND_WORD, ph_digits, phonEND_WORD); // say "thousands" before its number, not after |
|
|
|
if (tr->langopts.numbers2 & NUM2_SWAP_THOUSANDS) |
|
|
|
sprintf(ph_thousands, "%s%c%s%c", ph_10T, phonEND_WORD, ph_digits, phonEND_WORD); |
|
|
|
else |
|
|
|
sprintf(ph_thousands, "%s%c%s%c", ph_digits, phonEND_WORD, ph_10T, phonEND_WORD); |
|
|
|
|
|
|
@@ -1963,8 +1963,8 @@ static int TranslateNumber_1(Translator *tr, char *word, char *ph_out, unsigned |
|
|
|
} |
|
|
|
|
|
|
|
LookupNum3(tr, value, ph_buf, suppress_null, thousandplex, prev_thousands | ordinal | decimal_point); |
|
|
|
if ((thousandplex > 0) && (tr->langopts.numbers2 & 0x200)) |
|
|
|
sprintf(ph_out, "%s%s%c%s%s", ph_zeros, ph_append, phonEND_WORD, ph_buf2, ph_buf); // say "thousands" before its number |
|
|
|
if ((thousandplex > 0) && (tr->langopts.numbers2 & NUM2_SWAP_THOUSANDS)) |
|
|
|
sprintf(ph_out, "%s%s%c%s%s", ph_zeros, ph_append, phonEND_WORD, ph_buf2, ph_buf); |
|
|
|
else |
|
|
|
sprintf(ph_out, "%s%s%s%c%s", ph_zeros, ph_buf2, ph_buf, phonEND_WORD, ph_append); |
|
|
|
|