From 451cc73e166cd0748c08af8dbba92d0ccdf06054 Mon Sep 17 00:00:00 2001 From: Rop Date: Fri, 4 Oct 2019 12:45:51 +0200 Subject: [PATCH] Added french days/months --- src/lang/FR | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/lang/FR diff --git a/src/lang/FR b/src/lang/FR new file mode 100644 index 0000000..3b85073 --- /dev/null +++ b/src/lang/FR @@ -0,0 +1,40 @@ + String monthStr(const uint8_t month) { + switch(month) { + case 1: return F("janvier"); + case 2: return F("fevrier"); + case 3: return F("mars"); + case 4: return F("avril"); + case 5: return F("mai"); + case 6: return F("juin"); + case 7: return F("juillet"); + case 8: return F("aout"); + case 9: return F("septembre"); + case 10: return F("octobre"); + case 11: return F("novembre"); + case 12: return F("decembre"); + } + return ""; + } + + String monthShortStr(const uint8_t month) { + switch(month) { + case 6: return F("jun"); + case 7: return F("jul"); + } + return monthStr(month).substring(0,3); + } + + String dayStr(const uint8_t day) { + switch(day) { + case 1: return F("dimanche"); + case 2: return F("lundi"); + case 3: return F("mardi"); + case 4: return F("mercredi"); + case 5: return F("jeudi"); + case 6: return F("vendredi"); + case 7: return F("samedi"); + } + return ""; + } + + String dayShortStr(const uint8_t day) { return dayStr(day).substring(0,3); }