diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-03-11 21:29:09 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-03-11 21:29:09 +0100 |
commit | 7e81c50bae4e74ce81e896511e485c8ca3c13f23 (patch) | |
tree | 706366fc5ef4f4eef83d835fc4b70418739a1d8a | |
parent | 8625fa013eb7b835215d7089ae8f182e47b04136 (diff) |
Add german info/error strings (Use "LANG=DE make")
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | src/static_patterns.h | 24 |
2 files changed, 26 insertions, 2 deletions
@@ -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_ */ |