From 7e81c50bae4e74ce81e896511e485c8ca3c13f23 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 11 Mar 2016 21:29:09 +0100 Subject: Add german info/error strings (Use "LANG=DE make") --- Makefile | 4 ++++ src/static_patterns.h | 24 ++++++++++++++++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a80b709..f0e1bd4 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,10 @@ SHARED_FLAGS = ${MCU_FLAGS} -I. -Os -Wall -Wextra -pedantic SHARED_FLAGS += -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums SHARED_FLAGS += -flto -mstrict-X +ifeq (${LANG},DE) + SHARED_FLAGS += -DLANG_DE +endif + CFLAGS += ${SHARED_FLAGS} -std=c11 CXXFLAGS += ${SHARED_FLAGS} -std=c++11 -fno-rtti -fno-exceptions diff --git a/src/static_patterns.h b/src/static_patterns.h index 155c68e..5df47a0 100644 --- a/src/static_patterns.h +++ b/src/static_patterns.h @@ -33,6 +33,15 @@ const uint8_t PROGMEM flashingPattern[] = { 0x00, 0x00, 0x07, 0x33, 0x55, 0x98, 0x00, 0x00 }; +#ifdef LANG_DE +const uint8_t PROGMEM emptyPattern[] = { + 0x10, 0x29, + 0x20, 0x00, + ' ', 1, ' ', 'B', 'l', 'i', 'n', 'k', 'e', 'n', 'r', 'o', 'c', 'k', 'e', + 't', ' ', 'v', '0', '.', '9', ' ', '-', ' ', 'S', 'p', 'e', 'i', 'c', 'h', + 'e', 'r', ' ', 'i', 's', 't', ' ', 'l', 'e', 'e', 'r' +}; +#else const uint8_t PROGMEM emptyPattern[] = { 0x10, 0x28, 0x20, 0x00, @@ -40,11 +49,22 @@ const uint8_t PROGMEM emptyPattern[] = { 't', ' ', 'v', '0', '.', '9', ' ', '-', ' ', 'S', 't', 'o', 'r', 'a', 'g', 'e', ' ', 'i', 's', ' ', 'e', 'm', 'p', 't', 'y' }; +#endif +#ifdef LANG_DE +const uint8_t PROGMEM timeoutPattern[] = { + 0x10, 0x16, + 0x20, 0x00, + ' ', 2, ' ', 'U', 'e', 'b', 'e', 'r', 't', 'r', 'a', 'g', 'u', 'n', 'g', + 's', 'f', 'e', 'h', 'l', 'e', 'r' +}; +#else const uint8_t PROGMEM timeoutPattern[] = { - 0x10, 0x0a, + 0x10, 0x15, 0x20, 0x00, - ' ', 2, ' ', 'T', 'i', 'm', 'e', 'o', 'u', 't' + ' ', 2, ' ', 'T', 'r', 'a', 'n', 's', 'm', 'i', 's', 's', 'i', 'o', 'n', + ' ', 'e', 'r', 'r', 'o', 'r' }; +#endif #endif /* STATIC_PATTERNS_H_ */ -- cgit v1.2.3