Skip to content

Commit

Permalink
Added German locale to config.h
Browse files Browse the repository at this point in the history
  • Loading branch information
lmarzen committed Apr 13, 2023
1 parent 3fc9df3 commit 9e05f02
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion platformio/include/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@
// the files in src/locales. Please feel free to create a pull request to add
// official support for your locale.
// Uncomment your preferred locale. (exactly 1 must be defined)
#define LOCALE_de_DE // German
// #define LOCALE_en_GB // British English
#define LOCALE_en_US // American English
// #define LOCALE_en_US // American English
// #define LOCALE_nl_BE // Belgian Dutch

// UNITS
Expand Down
12 changes: 9 additions & 3 deletions platformio/src/locales/locale_de_DE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

/* Special thanks to Matthias Deimbacher (deimi) for contributing this
* translation.
*
* If you have any feedback or suggestions, please open an issue on this
* project's github page: <https://github.com/lmarzen/esp32-weather-epd/issues>
*/

#include "config.h"

#ifdef LOCALE_de_DE
Expand All @@ -36,7 +43,6 @@
// 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 %Z";

// LC_D_FMT date format string
const char *LC_D_FMT = "%d.%m.%y";
// T_FMT time format string
Expand All @@ -53,12 +59,12 @@ const char *LC_DAY[7] = {"Sonntag", "Montag", "Dienstag", "Mittwoch",
// ABDAY_{1-7} abbreviated ame of the n-th day of the week
const char *LC_ABDAY[7] = {"So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"};
// MON_{1-12} name of the n-th month of the year
const char *LC_MON[12] = { "Januar", "Februar", "M\xE4rz", "April",
const char *LC_MON[12] = { "Januar", "Februar", "M\xE4rz", "April",
"Mai", "Juni", "Juli", "August",
"September", "Oktober", "November", "Dezember"};
// ABMON_{1-12} abbreviated name of the n-th month of the year
const char *LC_ABMON[12] = {"Jan", "Feb", "M\xE4r", "Apr", "Mai", "Jun",
"Jul", "Aug", "Sep", "Okt", "Nov", "Dez"};
"Jul", "Aug", "Sep", "Okt", "Nov", "Dez"};
// ERA era description segments
const char *LC_ERA = "";
// ERA_D_FMT era date format string
Expand Down

0 comments on commit 9e05f02

Please sign in to comment.