This commit is contained in:
bsongis
2014-06-22 00:14:49 +02:00
parent 5fcba6e193
commit cfd6d47dfb
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -153,6 +153,11 @@ I18N_PLAY_FUNCTION(en, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
I18N_PLAY_FUNCTION(en, playDuration, int seconds PLAY_DURATION_ATT)
{
if (seconds == 0) {
PLAY_NUMBER(seconds, 0 , 0);
return;
}
if (seconds < 0) {
PUSH_NUMBER_PROMPT(EN_PROMPT_MINUS);
seconds = -seconds;
+5
View File
@@ -178,6 +178,11 @@ I18N_PLAY_FUNCTION(fr, playNumber, getvalue_t number, uint8_t unit, uint8_t att)
I18N_PLAY_FUNCTION(fr, playDuration, int seconds PLAY_DURATION_ATT)
{
if (seconds == 0) {
PLAY_NUMBER(0, 0, FEMININ);
return;
}
if (seconds < 0) {
PUSH_NUMBER_PROMPT(FR_PROMPT_MOINS);
seconds = -seconds;