From 2d62054e9ae3cac5eac32536c5c596f1f9b26314 Mon Sep 17 00:00:00 2001 From: mhotar Date: Mon, 28 Apr 2014 20:20:04 +0200 Subject: [PATCH] TAB "\t" added to strings --- radio/src/lcd.cpp | 6 ++++++ radio/src/translations/cz.h.txt | 15 ++++++++------- radio/src/translations/de.h.txt | 21 +++++++++++---------- radio/src/translations/en.h.txt | 15 ++++++++------- radio/src/translations/es.h.txt | 19 ++++++++++--------- radio/src/translations/fi.h.txt | 13 +++++++------ radio/src/translations/fr.h.txt | 13 +++++++------ radio/src/translations/it.h.txt | 13 +++++++------ radio/src/translations/pl.h.txt | 13 +++++++------ radio/src/translations/pt.h.txt | 13 +++++++------ radio/src/translations/se.h.txt | 13 +++++++------ radio/util/translate.py | 5 ++++- 12 files changed, 89 insertions(+), 70 deletions(-) diff --git a/radio/src/lcd.cpp b/radio/src/lcd.cpp index bf5293ef0..fd998a50c 100644 --- a/radio/src/lcd.cpp +++ b/radio/src/lcd.cpp @@ -367,6 +367,12 @@ void lcd_putsnAtt(xcoord_t x, uint8_t y, const pm_char * s, uint8_t len, LcdFlag #endif if (y >= LCD_H) break; } +#if defined(CPUARM) + else if (c == 0x1D) { //TAB + x |= 0x3F; + x += 1; + } +#endif else { x += (c*FW/2); //EXTENDED SPACE } diff --git a/radio/src/translations/cz.h.txt b/radio/src/translations/cz.h.txt index 74e881c9c..fd08d6828 100644 --- a/radio/src/translations/cz.h.txt +++ b/radio/src/translations/cz.h.txt @@ -33,11 +33,12 @@ * * !!!!! DO NOT EDIT cz.h - EDIT cz.h.txt INSTEAD !!!!!!! */ - /* Formatting octal codes available in TR_ strings: - * \037\x -sets LCD x-coord (x value in octal) - * \036 -newline - * \001 to \035 -extended spacing (value * FW/2) - * \0 -ends actual string +/* Formatting octal codes available in TR_ strings: + * \037\x -sets LCD x-coord (x value in octal) + * \n -newline + * \t -horizontal tab (ARM only) + * \001 to \034 -extended spacing (value * FW/2) + * \0 -ends actual string */ // NON ZERO TERMINATED STRINGS @@ -187,9 +188,9 @@ #define LEN_VCSWFUNC "\005" #if defined(CPUARM) -#define TR_VCSWFUNC "---\0 " TR_CSWEQUAL "a{x\0 ""a>x\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""ax\0 ""ax""|a|b\0 ""a