-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Ad french translation * Update platformio/src/locales/locale_fr_FR.inc Co-authored-by: Luke Marzen <98473324+lmarzen@users.noreply.github.com> * Update platformio/src/locales/locale_fr_FR.inc Co-authored-by: Luke Marzen <98473324+lmarzen@users.noreply.github.com> * Update platformio/src/locales/locale_fr_FR.inc Co-authored-by: Luke Marzen <98473324+lmarzen@users.noreply.github.com> * Update platformio/src/locales/locale_fr_FR.inc Co-authored-by: Luke Marzen <98473324+lmarzen@users.noreply.github.com> * Update platformio/src/locales/locale_fr_FR.inc Co-authored-by: Luke Marzen <98473324+lmarzen@users.noreply.github.com> * Update platformio/src/locales/locale_fr_FR.inc Co-authored-by: Luke Marzen <98473324+lmarzen@users.noreply.github.com> * Update platformio/src/locales/locale_fr_FR.inc Co-authored-by: Luke Marzen <98473324+lmarzen@users.noreply.github.com> * Update locale_fr_FR.inc * Update platformio/src/locales/locale_fr_FR.inc Co-authored-by: Luke Marzen <98473324+lmarzen@users.noreply.github.com> --------- Co-authored-by: Luke Marzen <98473324+lmarzen@users.noreply.github.com>
- Loading branch information
1 parent
b7eda65
commit 9c252d0
Showing
1 changed file
with
289 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,289 @@ | ||
/* French France locale data for esp32-weather-epd. | ||
* Copyright (C) 2022-2023 Luke Marzen | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include <vector> | ||
#include <Arduino.h> | ||
#include "_locale.h" | ||
|
||
// LC_TIME | ||
// locale-based information, | ||
// see https://man7.org/linux/man-pages/man3/nl_langinfo.3.html for more info. | ||
// Note to Translators: | ||
// The LC_TIME definitions are included in the localedata/locales directory of | ||
// the glibc source tree, in files named after the locale codes and encoding | ||
// schemes. For example, the fr_FR locale data is stored in the | ||
// localedata/locales/fr_FR file, which contains the definitions for date and | ||
// time formats, month and day names, and other time-related settings for the | ||
// LC_TIME category. | ||
// https://www.gnu.org/software/libc/sources.html | ||
// D_T_FMT string for formatting date and time | ||
const char *LC_D_T_FMT = "%a %d %b %Y %T"; | ||
// LC_D_FMT date format string | ||
const char *LC_D_FMT = "%d/%m/%y"; | ||
// T_FMT time format string | ||
const char *LC_T_FMT = "%T"; | ||
// T_FMT_AMPM a.m. or p.m. time format string | ||
const char *LC_T_FMT_AMPM = ""; | ||
// AM_STR Ante Meridian affix | ||
const char *LC_AM_STR = ""; | ||
// PM_STR Post Meridian affix | ||
const char *LC_PM_STR = ""; | ||
// DAY_{1-7} name of the n-th day of the week | ||
const char *LC_DAY[7] = {"dimanche", "lundi", "mardi", "mercredi", | ||
"jeudi", "vendredi", "samedi"}; | ||
// ABDAY_{1-7} abbreviated ame of the n-th day of the week | ||
const char *LC_ABDAY[7] = {"dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."}; | ||
// MON_{1-12} name of the n-th month of the year | ||
const char *LC_MON[12] = {"janvier", "f\xE9""vrier", "mars", "avril", | ||
"mai", "juin", "juillet", "ao\xFB""t", | ||
"septembre", "octobre", "novembre", "d\xE9""cembre"}; | ||
// ABMON_{1-12} abbreviated name of the n-th month of the year | ||
const char *LC_ABMON[12] = {"janv.", "f\xE9""vr.", "mars", "avril", "mai", "juin", | ||
"juil.", "ao\xFB""t", "sept.", "oct.", "nov.", "d\xE9""c."}; | ||
// ERA era description segments | ||
const char *LC_ERA = ""; | ||
// ERA_D_FMT era date format string | ||
const char *LC_ERA_D_FMT = ""; | ||
// ERA_D_T_FMT era date and time format string | ||
const char *LC_ERA_D_T_FMT = ""; | ||
// ERA_T_FMT era time format string | ||
const char *LC_ERA_T_FMT = ""; | ||
|
||
// OWM LANGUAGE | ||
// For full list of languages, see | ||
// https://openweathermap.org/api/one-call-api#multi | ||
// Note: "[only] The contents of the 'description' field will be translated." | ||
const String OWM_LANG = "fr"; | ||
|
||
// CURRENT CONDITIONS | ||
const char *TXT_FEELS_LIKE = "Temperature ressentie"; | ||
const char *TXT_SUNRISE = "Lever de soleil"; | ||
const char *TXT_SUNSET = "Coucher de soleil"; | ||
const char *TXT_WIND = "Vent"; | ||
const char *TXT_HUMIDITY = "Humidit\xE9"; | ||
const char *TXT_UV_INDEX = "Indice UV"; | ||
const char *TXT_PRESSURE = "Pression"; | ||
const char *TXT_AIR_QUALITY_INDEX = "Qualit\xE9"" de l'air"; | ||
const char *TXT_VISIBILITY = "Visibilit\xE9"; | ||
const char *TXT_INDOOR_TEMPERATURE = "Temp\xE9""rature"; | ||
const char *TXT_INDOOR_HUMIDITY = "Humidit\xE9"; | ||
|
||
// UV INDEX | ||
const char *TXT_UV_LOW = "Bas"; | ||
const char *TXT_UV_MODERATE = "Moderat\xE9"; | ||
const char *TXT_UV_HIGH = "Haut"; | ||
const char *TXT_UV_VERY_HIGH = "Tr\xE8""s haut"; | ||
const char *TXT_UV_EXTREME = "Extr\xEA""me"; | ||
|
||
// WIFI | ||
const char *TXT_WIFI_EXCELLENT = "Excellent"; | ||
const char *TXT_WIFI_GOOD = "Bon"; | ||
const char *TXT_WIFI_FAIR = "Juste"; | ||
const char *TXT_WIFI_WEAK = "Faible"; | ||
const char *TXT_WIFI_NO_CONNECTION = "Pas de Connection"; | ||
|
||
// UNIT SYMBOLS - TEMPERATURE | ||
const char *TXT_UNITS_TEMP_KELVIN = "K"; | ||
const char *TXT_UNITS_TEMP_CELSIUS = "\xB0" "C"; | ||
const char *TXT_UNITS_TEMP_FAHRENHEIT = "\xB0" "F"; | ||
// UNIT SYMBOLS - WIND SPEED | ||
const char *TXT_UNITS_SPEED_METERSPERSECOND = "m/s"; | ||
const char *TXT_UNITS_SPEED_FEETPERSECOND = "ft/s"; | ||
const char *TXT_UNITS_SPEED_KILOMETERSPERHOUR = "km/h"; | ||
const char *TXT_UNITS_SPEED_MILESPERHOUR = "mph"; | ||
const char *TXT_UNITS_SPEED_KNOTS = "kt"; | ||
const char *TXT_UNITS_SPEED_BEAUFORT = ""; | ||
// UNIT SYMBOLS - PRESSURE | ||
const char *TXT_UNITS_PRES_HECTOPASCALS = "hPa"; | ||
const char *TXT_UNITS_PRES_PASCALS = "Pa"; | ||
const char *TXT_UNITS_PRES_MILLIMETERSOFMERCURY = "mmHg"; | ||
const char *TXT_UNITS_PRES_INCHESOFMERCURY = "inHg"; | ||
const char *TXT_UNITS_PRES_MILLIBARS = "mbar"; | ||
const char *TXT_UNITS_PRES_ATMOSPHERES = "atm"; | ||
const char *TXT_UNITS_PRES_GRAMSPERSQUARECENTIMETER = "g/cm\xB2"; | ||
const char *TXT_UNITS_PRES_POUNDSPERSQUAREINCH = "lb/in\xB2"; | ||
// UNITS - VISIBILITY DISTANCE | ||
const char *TXT_UNITS_DIST_KILOMETERS = "km"; | ||
const char *TXT_UNITS_DIST_MILES = "mi"; | ||
|
||
// LAST REFRESH | ||
const char *TXT_UNKNOWN = "Unknown"; | ||
|
||
// ALERTS | ||
// The display can show up to 2 alerts, but alerts can be unpredictible in | ||
// severity and number. If more than 2 alerts are active, the esp32 will attempt | ||
// to interpret the urgency of each alert and prefer to display the most urgent | ||
// and recently issued alerts of each event type. Depending on your region | ||
// different keywords are used to convey the level of urgency. | ||
// | ||
// A vector array is used to store these keywords. Urgency is ranked from low to | ||
// high where the first index of the vector is the least urgent keyword and the | ||
// last index is the most urgent keyword. Expected as all lowercase. | ||
// | ||
// Note to Translators: | ||
// OpenWeatherMap returns alerts in English regardless of the OWM LANGUAGE | ||
// option or territory. For this reason it is preferred that you do not | ||
// translate text related to Alerts. Understandably, it may be undesirable to | ||
// see English alerts in territories where English is uncommon. To satisify | ||
// this, users should uncomment the DISABLE_ALERTS macro in config.h. | ||
// | ||
// Here are a few examples, uncomment the array for your region (or create your | ||
// own). | ||
// const std::vector<String> ALERT_URGENCY = {"statement", "watch", "advisory", "warning", "emergency"}; // US National Weather Service | ||
const std::vector<String> ALERT_URGENCY = {"yellow", "amber", "red"}; // United Kingdom's national weather service (MET Office) | ||
// const std::vector<String> ALERT_URGENCY = {"minor", "moderate", "severe", "extreme"}; // METEO | ||
// const std::vector<String> ALERT_URGENCY = {}; // Disable urgency interpretation (algorithm will fallback to only prefer the most recently issued alerts) | ||
|
||
// ALERT TERMINOLOGY | ||
// Weather terminology associated with each alert icon | ||
const std::vector<String> TERM_SMOG = | ||
{"smog"}; | ||
const std::vector<String> TERM_SMOKE = | ||
{"smoke"}; | ||
const std::vector<String> TERM_FOG = | ||
{"fog", "haar"}; | ||
const std::vector<String> TERM_METEOR = | ||
{"meteor", "asteroid"}; | ||
const std::vector<String> TERM_NUCLEAR = | ||
{"nuclear", "ionizing radiation"}; | ||
const std::vector<String> TERM_BIOHAZARD = | ||
{"biohazard", "biological hazard"}; | ||
const std::vector<String> TERM_EARTHQUAKE = | ||
{"earthquake"}; | ||
const std::vector<String> TERM_TSUNAMI = | ||
{"tsunami"}; | ||
const std::vector<String> TERM_FIRE = | ||
{"fire", "red flag"}; | ||
const std::vector<String> TERM_HEAT = | ||
{"heat"}; | ||
const std::vector<String> TERM_WINTER = | ||
{"blizzard", "winter", "ice", "snow", "sleet", "cold", "freezing rain", | ||
"wind chill", "freeze", "frost", "hail"}; | ||
const std::vector<String> TERM_LIGHTNING = | ||
{"thunderstorm", "storm cell", "pulse storm", "squall line", "supercell", | ||
"lightning"}; | ||
const std::vector<String> TERM_SANDSTORM = | ||
{"sandstorm", "blowing dust", "dust storm"}; | ||
const std::vector<String> TERM_FLOOD = | ||
{"flood", "storm surge", "seiche", "swell", "high seas", "high tides", | ||
"tidal surge"}; | ||
const std::vector<String> TERM_VOLCANO = | ||
{"volcanic", "ash", "volcano", "eruption"}; | ||
const std::vector<String> TERM_AIR_QUALITY = | ||
{"air", "stagnation", "pollution"}; | ||
const std::vector<String> TERM_TORNADO = | ||
{"tornado"}; | ||
const std::vector<String> TERM_SMALL_CRAFT_ADVISORY = | ||
{"small craft", "wind advisory"}; | ||
const std::vector<String> TERM_GALE_WARNING = | ||
{"gale"}; | ||
const std::vector<String> TERM_STORM_WARNING = | ||
{"storm warning"}; | ||
const std::vector<String> TERM_HURRICANE_WARNING = | ||
{"hurricane force wind", "extreme wind", "high wind"}; | ||
const std::vector<String> TERM_HURRICANE = | ||
{"hurricane", "tropical storm", "typhoon", "cyclone"}; | ||
const std::vector<String> TERM_DUST = | ||
{"dust", "sand"}; | ||
const std::vector<String> TERM_STRONG_WIND = | ||
{"wind"}; | ||
|
||
// AIR QUALITY INDEX | ||
extern "C" { | ||
const char *AUSTRALIA_AQI_TXT[6] = | ||
{ | ||
"Tr\xE8""s bon", | ||
"Bon", | ||
"Juste", | ||
"Mauvais", | ||
"Tr\xE8""s mauvais", | ||
"Dangereux", | ||
}; | ||
const char *CANADA_AQHI_TXT[4] = | ||
{ | ||
"Bas", | ||
"Mod\xE9""r\xE9", | ||
"Haut", | ||
"Tr\xE8""s haut", | ||
}; | ||
const char *EUROPE_CAQI_TXT[5] = | ||
{ | ||
"Tr\xE8""s bas", | ||
"Bas", | ||
"Moyen", | ||
"Haut", | ||
"Tr\xE8""s haut", | ||
}; | ||
const char *HONG_KONG_AQHI_TXT[5] = | ||
{ | ||
"Bas", | ||
"Mod\xE9""r\xE9", | ||
"Haut", | ||
"Tr\xE8""s haut", | ||
"Dangereux", | ||
}; | ||
const char *INDIA_AQI_TXT[6] = | ||
{ | ||
"Bon", | ||
"Satisfaisant", | ||
"Mod\xE9""r\xE9", | ||
"Mauvais", | ||
"Tr\xE8""s mauvais", | ||
"S\xE9""v\xE8""re", | ||
}; | ||
const char *MAINLAND_CHINA_AQI_TXT[6] = | ||
{ | ||
"Excellent", | ||
"Bon", | ||
"L\xE9""g\xE8""rement pollu\xE9", | ||
"Mod\xE9""r\xE9""ment pollu\xE9", | ||
"Tr\xE8""s pollu\xE9", | ||
"S\xE9""v\xE8""rement pollu\xE9", | ||
}; | ||
const char *SINGAPORE_PSI_TXT[5] = | ||
{ | ||
"Bon", | ||
"Mod\xE9""r\xE9", | ||
"Malsain", | ||
"Tr\xE8""s malsain", | ||
"Dangereux", | ||
}; | ||
const char *SOUTH_KOREA_CAI_TXT[4] = | ||
{ | ||
"Bon", | ||
"Moyen", | ||
"Malsain", | ||
"Tr\xE8""s malsain", | ||
}; | ||
const char *UNITED_KINGDOM_DAQI_TXT[4] = | ||
{ | ||
"Bas", | ||
"Mod\xE9""r\xE9", | ||
"Haut", | ||
"Tr\xE8""s haut", | ||
}; | ||
const char *UNITED_STATES_AQI_TXT[6] = | ||
{ | ||
"Bon", | ||
"Mod\xE9""r\xE9", | ||
"Malsain pour les groupes sensibles", | ||
"Malsain", | ||
"Tr\xE8""s malsain", | ||
"Dangereux", | ||
}; | ||
} // end extern "C" | ||
|