Improve spanish timer speech
This commit is contained in:
@@ -168,11 +168,9 @@ I18N_PLAY_FUNCTION(es, playDuration, int seconds PLAY_DURATION_ATT)
|
||||
seconds = -seconds;
|
||||
}
|
||||
|
||||
uint8_t ore = 0;
|
||||
uint8_t tmp = seconds / 3600;
|
||||
seconds %= 3600;
|
||||
if (tmp > 0 || IS_PLAY_TIME()) {
|
||||
ore = tmp;
|
||||
if (tmp > 1) {
|
||||
PLAY_NUMBER(tmp, 0, 0);
|
||||
PUSH_UNIT_PROMPT(UNIT_HOURS, 1);
|
||||
@@ -185,18 +183,15 @@ I18N_PLAY_FUNCTION(es, playDuration, int seconds PLAY_DURATION_ATT)
|
||||
|
||||
tmp = seconds / 60;
|
||||
seconds %= 60;
|
||||
if (tmp > 0 || ore >0) {
|
||||
if (tmp > 0 ) {
|
||||
if (tmp != 1) {
|
||||
PLAY_NUMBER(tmp, 0, 0);
|
||||
PUSH_UNIT_PROMPT(UNIT_MINUTES, 1);
|
||||
}
|
||||
else {
|
||||
PUSH_NUMBER_PROMPT(ES_PROMPT_UNA);
|
||||
PUSH_NUMBER_PROMPT(ES_PROMPT_UN);
|
||||
PUSH_UNIT_PROMPT(UNIT_MINUTES, 0);
|
||||
}
|
||||
if (seconds > 0) {
|
||||
PUSH_NUMBER_PROMPT(ES_PROMPT_Y);
|
||||
}
|
||||
}
|
||||
|
||||
if (seconds > 0) {
|
||||
@@ -205,7 +200,7 @@ I18N_PLAY_FUNCTION(es, playDuration, int seconds PLAY_DURATION_ATT)
|
||||
PUSH_UNIT_PROMPT(UNIT_SECONDS, 1);
|
||||
}
|
||||
else {
|
||||
PUSH_NUMBER_PROMPT(ES_PROMPT_UNA);
|
||||
PUSH_NUMBER_PROMPT(ES_PROMPT_UN);
|
||||
PUSH_UNIT_PROMPT(UNIT_SECONDS, 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user