From cfbd25fa504ece2097a3849102311254e1929f64 Mon Sep 17 00:00:00 2001 From: Peter Feerick Date: Wed, 7 Aug 2024 08:53:16 +0000 Subject: [PATCH] chore: add missing translation string, limit some to colorlcd Use `TR_PHASES_HEADERS_NAME` as source text for missing language defines --- radio/src/translations.cpp | 4 ++-- radio/src/translations.h | 4 ++-- radio/src/translations/cn.h | 4 ++++ radio/src/translations/cz.h | 4 ++++ radio/src/translations/da.h | 4 ++++ radio/src/translations/de.h | 4 ++++ radio/src/translations/en.h | 6 ++++-- radio/src/translations/es.h | 4 ++++ radio/src/translations/fi.h | 4 ++++ radio/src/translations/fr.h | 4 ++++ radio/src/translations/he.h | 8 +++++++- radio/src/translations/it.h | 4 ++++ radio/src/translations/jp.h | 4 ++++ radio/src/translations/nl.h | 4 ++++ radio/src/translations/pl.h | 4 ++++ radio/src/translations/pt.h | 4 ++++ radio/src/translations/ru.h | 8 +++++++- radio/src/translations/se.h | 4 ++++ radio/src/translations/tw.h | 4 ++++ radio/src/translations/ua.h | 8 +++++++- 20 files changed, 85 insertions(+), 9 deletions(-) diff --git a/radio/src/translations.cpp b/radio/src/translations.cpp index c7ec15fc732..6d02e131d8d 100644 --- a/radio/src/translations.cpp +++ b/radio/src/translations.cpp @@ -337,9 +337,7 @@ const char STR_MENUCURVES[] = TR_MENUCURVES; const char STR_MENUCURVE[] = TR_MENUCURVE; const char STR_MENULOGICALSWITCH[] = TR_MENULOGICALSWITCH; const char STR_MENULOGICALSWITCHES[] = TR_MENULOGICALSWITCHES; -const char STR_CUST_LOGICALSWITCH_LABEL[] = TR_CUST_LOGICALSWITCH_LABEL; const char STR_MENUCUSTOMFUNC[] = TR_MENUCUSTOMFUNC; -const char STR_CUST_FUNC_CUST_LABEL[] = TR_CUST_FUNC_CUST_LABEL; const char STR_SPLASHSCREEN[] = TR_SPLASHSCREEN; const char STR_PLAY_HELLO[] = TR_PLAY_HELLO; const char STR_PWR_ON_DELAY[] = TR_PWR_ON_DELAY; @@ -804,6 +802,8 @@ const char STR_BACKLIGHT_TIMER[] = TR_BACKLIGHT_TIMER; const char STR_LABELS_SELECT[] = TR_LABELS_SELECT; const char STR_LABELS_MATCH[] = TR_LABELS_MATCH; const char STR_FAV_MATCH[] = TR_FAV_MATCH; +const char STR_CUST_LOGICALSWITCH_LABEL[] = TR_CUST_LOGICALSWITCH_LABEL; +const char STR_CUST_FUNC_CUST_LABEL[] = TR_CUST_FUNC_CUST_LABEL; ISTR(LABELS_SELECT_MODE); ISTR(LABELS_MATCH_MODE); ISTR(FAV_MATCH_MODE); diff --git a/radio/src/translations.h b/radio/src/translations.h index f02a82d682d..4e0672b5f0c 100644 --- a/radio/src/translations.h +++ b/radio/src/translations.h @@ -528,9 +528,7 @@ extern const char STR_MENUCURVES[]; extern const char STR_MENUCURVE[]; extern const char STR_MENULOGICALSWITCH[]; extern const char STR_MENULOGICALSWITCHES[]; -extern const char STR_CUST_LOGICALSWITCH_LABEL[]; extern const char STR_MENUCUSTOMFUNC[]; -extern const char STR_CUST_FUNC_CUST_LABEL[]; extern const char STR_MENUCUSTOMSCRIPTS[]; extern const char STR_MENUTELEMETRY[]; extern const char STR_MENUSTAT[]; @@ -813,6 +811,8 @@ extern const char STR_FAV_MATCH[]; extern const char* const STR_LABELS_SELECT_MODE[]; extern const char* const STR_LABELS_MATCH_MODE[]; extern const char* const STR_FAV_MATCH_MODE[]; +extern const char STR_CUST_LOGICALSWITCH_LABEL[]; +extern const char STR_CUST_FUNC_CUST_LABEL[]; #endif extern const char STR_EXECUTE_FILE[]; extern const char STR_DELETE_FILE[]; diff --git a/radio/src/translations/cn.h b/radio/src/translations/cn.h index 69484cfcbec..656a0c86e67 100644 --- a/radio/src/translations/cn.h +++ b/radio/src/translations/cn.h @@ -514,6 +514,10 @@ #define TR_MENULIMITS "输出设置" #define TR_MENUCURVES "曲线设置" #define TR_MENUCURVE "曲线" +#if defined(COLORLCD) +#define TR_CUST_LOGICALSWITCH_LABEL "名称" +#define TR_CUST_FUNC_CUST_LABEL "名称" +#endif #define TR_MENULOGICALSWITCH "逻辑开关" #define TR_MENULOGICALSWITCHES "逻辑开关设置" #define TR_MENUCUSTOMFUNC "特殊功能设置" diff --git a/radio/src/translations/cz.h b/radio/src/translations/cz.h index cd070c42f95..bc4d4df35ef 100644 --- a/radio/src/translations/cz.h +++ b/radio/src/translations/cz.h @@ -532,6 +532,10 @@ #define TR_MENUCURVES "KŘIVKY" #define TR_MENUCURVE "\002K" +#if defined(COLORLCD) +#define TR_CUST_LOGICALSWITCH_LABEL "Název" +#define TR_CUST_FUNC_CUST_LABEL "Název" +#endif #define TR_MENULOGICALSWITCH "LOG. SPÍNAČ" #define TR_MENULOGICALSWITCHES "LOGICKÉ SPÍNAČE" #define TR_MENUCUSTOMFUNC "SPECIÁLNÍ FUNKCE" diff --git a/radio/src/translations/da.h b/radio/src/translations/da.h index e211a4f0a3a..403dcc9f233 100644 --- a/radio/src/translations/da.h +++ b/radio/src/translations/da.h @@ -519,6 +519,10 @@ #define TR_MENULIMITS "UDGANGE" #define TR_MENUCURVES "KURVER" #define TR_MENUCURVE "KURVE" +#if defined(COLORLCD) +#define TR_CUST_LOGICALSWITCH_LABEL "Navn" +#define TR_CUST_FUNC_CUST_LABEL "Navn" +#endif #define TR_MENULOGICALSWITCH "LOGISK FUNKTION" #define TR_MENULOGICALSWITCHES "LOGISKE FUNKTIONER" #define TR_MENUCUSTOMFUNC "SPECIALFUNKTIONER" diff --git a/radio/src/translations/de.h b/radio/src/translations/de.h index ddab720e121..aa76ccc04db 100644 --- a/radio/src/translations/de.h +++ b/radio/src/translations/de.h @@ -520,6 +520,10 @@ #define TR_MENULIMITS "SERVOS" //"AUSGABEN" oder "Servos" #define TR_MENUCURVES "KURVEN" #define TR_MENUCURVE "KURVE" +#if defined(COLORLCD) +#define TR_CUST_LOGICALSWITCH_LABEL "Name" +#define TR_CUST_FUNC_CUST_LABEL "Name" +#endif #define TR_MENULOGICALSWITCH "LOGIKSCHALTER" #define TR_MENULOGICALSWITCHES "LOGIKSCHALTER" #define TR_MENUCUSTOMFUNC TR("SPEZ.-FUNKTIONEN", "SPEZIAL-FUNKTIONEN") diff --git a/radio/src/translations/en.h b/radio/src/translations/en.h index f7d1f019165..610ca55a3a5 100644 --- a/radio/src/translations/en.h +++ b/radio/src/translations/en.h @@ -517,11 +517,13 @@ #define TR_MENULIMITS "OUTPUTS" #define TR_MENUCURVES "CURVES" #define TR_MENUCURVE "CURVE" +#if defined(COLORLCD) +#define TR_CUST_LOGICALSWITCH_LABEL "Name" +#define TR_CUST_FUNC_CUST_LABEL "Name" +#endif #define TR_MENULOGICALSWITCH "LOGICAL SWITCH" #define TR_MENULOGICALSWITCHES "LOGICAL SWITCHES" -#define TR_CUST_LOGICALSWITCH_LABEL "Name" #define TR_MENUCUSTOMFUNC "SPECIAL FUNCTIONS" -#define TR_CUST_FUNC_CUST_LABEL "Name" #define TR_MENUCUSTOMSCRIPTS "CUSTOM SCRIPTS" #define TR_MENUTELEMETRY "TELEMETRY" #define TR_MENUSTAT "STATS" diff --git a/radio/src/translations/es.h b/radio/src/translations/es.h index 6f96f87b9d7..f61990e0e97 100644 --- a/radio/src/translations/es.h +++ b/radio/src/translations/es.h @@ -515,6 +515,10 @@ #define TR_MENUCURVES "CURVAS" #define TR_MENUCURVE "CURVA" +#if defined(COLORLCD) +#define TR_CUST_LOGICALSWITCH_LABEL "Nombre" +#define TR_CUST_FUNC_CUST_LABEL "Nombre" +#endif #define TR_MENULOGICALSWITCH "INTERRUP.LÓGICO" #define TR_MENULOGICALSWITCHES TR3("INTERRUP. LÓGICOS", "INTERRUP. LÓGICOS", "INTERRUPTORES LÓGICOS") #define TR_MENUCUSTOMFUNC TR("FUNCIONES", "FUNCIONES ESPECIALES") diff --git a/radio/src/translations/fi.h b/radio/src/translations/fi.h index 54cf88411b3..c5a96b745c0 100644 --- a/radio/src/translations/fi.h +++ b/radio/src/translations/fi.h @@ -529,6 +529,10 @@ #define TR_MENUCURVES "CURVES" #define TR_MENUCURVE "CURVE" +#if defined(COLORLCD) +#define TR_CUST_LOGICALSWITCH_LABEL "Name" +#define TR_CUST_FUNC_CUST_LABEL "Name" +#endif #define TR_MENULOGICALSWITCH "CUSTOM SWITCH" #define TR_MENULOGICALSWITCHES "CUSTOM SWITCHES" #define TR_MENUCUSTOMFUNC "CUSTOM FUNCTIONS" diff --git a/radio/src/translations/fr.h b/radio/src/translations/fr.h index f524e76ad1b..4060adfc940 100644 --- a/radio/src/translations/fr.h +++ b/radio/src/translations/fr.h @@ -521,6 +521,10 @@ #define TR_MENUCURVES "COURBES" #define TR_MENUCURVE "COURBE" +#if defined(COLORLCD) +#define TR_CUST_LOGICALSWITCH_LABEL "Nom" +#define TR_CUST_FUNC_CUST_LABEL "Nom" +#endif #define TR_MENULOGICALSWITCH "INTER LOG." #define TR_MENULOGICALSWITCHES TR("INTERS LOG.", "INTERS LOGIQUES") #define TR_MENUCUSTOMFUNC TR("FONCTIONS SPEC.", "FONCTIONS SPÉCIALES") diff --git a/radio/src/translations/he.h b/radio/src/translations/he.h index 926fd266555..05bc99ff75f 100644 --- a/radio/src/translations/he.h +++ b/radio/src/translations/he.h @@ -78,15 +78,17 @@ #if LCD_W >= 212 #define TR_CSWTIMER "שעון" #define TR_CSWSTICKY "Stcky" + #define TR_CSWSAFE "Safe" #define TR_CSWSTAY "Edge" #else #define TR_CSWTIMER "שעון" #define TR_CSWSTICKY "Stky" + #define TR_CSWSAFE "Safe" #define TR_CSWSTAY "Edge" #endif #define TR_CSWEQUAL "a=x" -#define TR_VCSWFUNC "---",TR_CSWEQUAL,"a" STR_CHAR_TILDE "x","a>x","ax","|a|b","ax","ax","|a|b","a= 212 #define TR_CSWTIMER "Таймер" #define TR_CSWSTICKY "Липучка" + #define TR_CSWSAFE "Safe" #define TR_CSWSTAY "Край" #else #define TR_CSWTIMER "Таймер" #define TR_CSWSTICKY "Липучка" + #define TR_CSWSAFE "Safe" #define TR_CSWSTAY "Кррай" #endif #define TR_CSWEQUAL "a=x" -#define TR_VCSWFUNC "---",TR_CSWEQUAL,"a" STR_CHAR_TILDE "x","a>x","ax","|a|b","ax","ax","|a|b","a= 212 #define TR_CSWTIMER "Таймер" #define TR_CSWSTICKY "Липучка" + #define TR_CSWSAFE "Safe" #define TR_CSWSTAY "Край" #else #define TR_CSWTIMER "Тмр" #define TR_CSWSTICKY "Лип." + #define TR_CSWSAFE "Safe" #define TR_CSWSTAY "Край" #endif #define TR_CSWEQUAL "a=x" -#define TR_VCSWFUNC "---",TR_CSWEQUAL,"a" STR_CHAR_TILDE "x","a>x","ax","|a|b","ax","ax","|a|b","a