From b0f0bac3e2f2fb464c316e56fae091562ac92945 Mon Sep 17 00:00:00 2001 From: bsongis Date: Wed, 6 Jun 2012 15:38:00 +0000 Subject: [PATCH] SOMO-14D again for french --- src/translations/fr.cpp | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/src/translations/fr.cpp b/src/translations/fr.cpp index 91f10e53b..ffa8cf885 100644 --- a/src/translations/fr.cpp +++ b/src/translations/fr.cpp @@ -44,15 +44,12 @@ enum FrenchPrompts { PROMPT_CENT = PROMPT_NUMBERS_BASE+28, PROMPT_MILLE = PROMPT_NUMBERS_BASE+29, - PROMPT_HOUR = 40, - PROMPT_HOURS = 41, - PROMPT_MINUTE = 42, - PROMPT_MINUTES = 43, - PROMPT_SECOND = 44, - PROMPT_SECONDS = 45, + PROMPT_HEURE = 40, + PROMPT_MINUTE = 41, + PROMPT_SECONDE = 42, - PROMPT_AND = 47, - PROMPT_MINUS = 48, + PROMPT_ET = 47, + PROMPT_MOINS = 48, PROMPT_UNITS_BASE = 50, PROMPT_VOLTS = PROMPT_UNITS_BASE+UNIT_VOLTS, @@ -111,7 +108,7 @@ void playNumber(int16_t number, uint8_t unit, uint8_t att) void playDuration(int16_t seconds) { if (seconds < 0) { - pushPrompt(PROMPT_MINUS); + pushPrompt(PROMPT_MOINS); seconds = -seconds; } @@ -119,21 +116,21 @@ void playDuration(int16_t seconds) seconds %= 3600; if (tmp > 0) { playNumber(tmp); - pushPrompt(tmp == 1 ? PROMPT_HOUR : PROMPT_HOURS); + pushPrompt(PROMPT_HEURE); } tmp = seconds / 60; seconds %= 60; if (tmp > 0) { playNumber(tmp); - pushPrompt(tmp == 1 ? PROMPT_MINUTE : PROMPT_MINUTES); + pushPrompt(PROMPT_MINUTE); if (seconds > 0) - pushPrompt(PROMPT_AND); + pushPrompt(PROMPT_ET); } if (seconds > 0) { playNumber(seconds); - pushPrompt(tmp == 1 ? PROMPT_SECOND : PROMPT_SECONDS); + pushPrompt(PROMPT_SECONDE); } }