mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 00:05:17 +03:00
Improve spanish timer speech
This commit is contained in:
parent
b97696624f
commit
3faa7e10d0
2 changed files with 7 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,9 +45,9 @@ for i, (s, f) in enumerate([("Voltio","volt0"),
|
|||
("radianes ", "rad0"),
|
||||
("mililitro", "ml0"),
|
||||
("onzas", "founce0"),
|
||||
("horas", "hour0"),
|
||||
("minutos", "minute0"),
|
||||
("segundos", "second0"),
|
||||
("hora", "hour0"), ("horas", "hour1"),
|
||||
("minuto", "minute0"), ("minutos", "minute1"),
|
||||
("segundo", "second0"), ("segundos", "second1"),
|
||||
]):
|
||||
systemSounds.append((s, filename(f, PROMPT_SYSTEM_BASE + 122 + i)))
|
||||
for s, f, a in [("me tienes abandonada", "inactiv", 486),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue