Fix tts for German number over 100 with decimal point

This commit is contained in:
Arne Schwabe
2018-06-12 17:31:45 +02:00
parent ad26e4acba
commit 6f116510da
+4 -3
View File
@@ -131,9 +131,9 @@ I18N_PLAY_FUNCTION(de, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
#endif
div_t qr = div((int)number, 10);
if (qr.rem > 0) {
PUSH_NUMBER_PROMPT(qr.quot);
PLAY_NUMBER(qr.quot, 0, 0);
PUSH_NUMBER_PROMPT(DE_PROMPT_COMMA);
PUSH_NUMBER_PROMPT(qr.rem);
PUSH_NUMBER_PROMPT(DE_PROMPT_NUMBERS_BASE + qr.rem);
}
else {
if (qr.quot == 1) {
@@ -143,7 +143,8 @@ I18N_PLAY_FUNCTION(de, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
PUSH_NUMBER_PROMPT(qr.quot);
}
}
DE_PUSH_UNIT_PROMPT(unit);
if(unit)
DE_PUSH_UNIT_PROMPT(unit);
return;
}