diff --git a/radio/src/gui/common/stdlcd/radio_power_meter.cpp b/radio/src/gui/common/stdlcd/radio_power_meter.cpp index 12bcc7d1c..52dfaf042 100644 --- a/radio/src/gui/common/stdlcd/radio_power_meter.cpp +++ b/radio/src/gui/common/stdlcd/radio_power_meter.cpp @@ -34,10 +34,10 @@ enum PowerMeterFields { void menuRadioPowerMeter(event_t event) { - SUBMENU("POWER METER", POWER_METER_FIELDS_MAX-1, {0, 0, READONLY_ROW, READONLY_ROW}); + SUBMENU(STR_MENU_POWER_METER, POWER_METER_FIELDS_MAX-1, {0, 0, READONLY_ROW, READONLY_ROW}); if (TELEMETRY_STREAMING()) { - lcdDrawCenteredText(LCD_H/2, "Turn off receiver"); + lcdDrawCenteredText(LCD_H/2, STR_TURN_OFF_RECEIVER); if (event == EVT_KEY_FIRST(KEY_EXIT)) { killEvents(event); popMenu(); @@ -46,7 +46,7 @@ void menuRadioPowerMeter(event_t event) } if (menuEvent) { - lcdDrawCenteredText(LCD_H/2, "Stopping..."); + lcdDrawCenteredText(LCD_H/2, STR_STOPPING); lcdRefresh(); moduleSettings[g_moduleIdx].mode = MODULE_MODE_NORMAL; /* wait 1s to resume normal operation before leaving */ @@ -65,7 +65,8 @@ void menuRadioPowerMeter(event_t event) } // The warning - lcdDrawText(3 * FW, FH + 3, "Max: ", BOLD); + lcdDrawText(3 * FW, FH + 3, STR_MAX, BOLD); + lcdDrawText(lcdLastRightPos, FH + 3, ": ", BOLD); lcdDrawNumber(lcdLastRightPos, FH + 3, -10 + 10 * reusableBuffer.powerMeter.attn, BOLD); lcdDrawText(lcdLastRightPos, FH + 3, "dBm ", BOLD); lcdDrawText(lcdLastRightPos, FH + 3, "(", BOLD); @@ -78,7 +79,7 @@ void menuRadioPowerMeter(event_t event) switch (i) { case POWER_METER_FREQ_RANGE: - lcdDrawText(0, y, "Freq."); + lcdDrawText(0, y, STR_POWERMETER_FREQ); lcdDrawNumber(8 * FW, y, reusableBuffer.powerMeter.freq / 1000000, LEFT | attr); lcdDrawText(lcdNextPos, y, " MHz band"); if (attr) { @@ -91,7 +92,7 @@ void menuRadioPowerMeter(event_t event) break; case POWER_METER_ATTENUATOR: - lcdDrawText(0, y, "Attn"); + lcdDrawText(0, y, STR_POWERMETER_ATTN); lcdDrawNumber(8 * FW, y, -10 * reusableBuffer.powerMeter.attn, LEFT | attr); lcdDrawText(lcdNextPos, y, " dB"); if (attr) { @@ -100,7 +101,7 @@ void menuRadioPowerMeter(event_t event) break; case POWER_METER_POWER: - lcdDrawText(0, y, "Power"); + lcdDrawText(0, y, STR_POWERMETER_POWER); if (reusableBuffer.powerMeter.power) { lcdDrawNumber(8 * FW, y, reusableBuffer.powerMeter.power + reusableBuffer.powerMeter.attn * 1000, LEFT | PREC2); lcdDrawText(lcdNextPos, y, "dBm"); @@ -108,7 +109,7 @@ void menuRadioPowerMeter(event_t event) break; case POWER_METER_PEAK: - lcdDrawText(0, y, "Peak"); + lcdDrawText(0, y, STR_POWERMETER_PEAK); if (reusableBuffer.powerMeter.peak) { lcdDrawNumber(8 * FW, y, reusableBuffer.powerMeter.peak + reusableBuffer.powerMeter.attn * 1000, LEFT | PREC2); lcdDrawText(lcdNextPos, y, "dBm"); diff --git a/radio/src/gui/common/stdlcd/radio_spectrum_analyser.cpp b/radio/src/gui/common/stdlcd/radio_spectrum_analyser.cpp index 50355ac89..053e4ad87 100644 --- a/radio/src/gui/common/stdlcd/radio_spectrum_analyser.cpp +++ b/radio/src/gui/common/stdlcd/radio_spectrum_analyser.cpp @@ -30,10 +30,10 @@ enum SpectrumFields { void menuRadioSpectrumAnalyser(event_t event) { - SUBMENU("SPECTRUM ANALYSER", 1, {1}); + SUBMENU(STR_MENU_SPECTRUM_ANALYSER, 1, {1}); if (TELEMETRY_STREAMING()) { - lcdDrawCenteredText(LCD_H/2, "Turn off receiver"); + lcdDrawCenteredText(LCD_H/2, STR_TURN_OFF_RECEIVER ); if (event == EVT_KEY_FIRST(KEY_EXIT)) { killEvents(event); popMenu(); @@ -42,7 +42,7 @@ void menuRadioSpectrumAnalyser(event_t event) } if (menuEvent) { - lcdDrawCenteredText(LCD_H/2, "Stopping..."); + lcdDrawCenteredText(LCD_H/2, STR_STOPPING ); lcdRefresh(); moduleSettings[g_moduleIdx].mode = MODULE_MODE_NORMAL; /* wait 1s to resume normal operation before leaving */ diff --git a/radio/src/gui/common/stdlcd/radio_tools.cpp b/radio/src/gui/common/stdlcd/radio_tools.cpp index b95c17294..ad3e3bb23 100644 --- a/radio/src/gui/common/stdlcd/radio_tools.cpp +++ b/radio/src/gui/common/stdlcd/radio_tools.cpp @@ -62,7 +62,7 @@ void menuRadioTools(event_t event) } } - SIMPLE_MENU("TOOLS", menuTabGeneral, MENU_RADIO_TOOLS, HEADER_LINE + spectrum_modules + power_modules); + SIMPLE_MENU(STR_MENUTOOLS, menuTabGeneral, MENU_RADIO_TOOLS, HEADER_LINE + spectrum_modules + power_modules); #if defined(PXX2) uint8_t menu_index = 0; diff --git a/radio/src/translations.cpp b/radio/src/translations.cpp index 73b27e1bc..dbe73d9d1 100644 --- a/radio/src/translations.cpp +++ b/radio/src/translations.cpp @@ -377,6 +377,16 @@ const char STR_PINMAPSET[] = TR_PINMAPSET; const char STR_HOLD[] = TR_HOLD; const char STR_NONE[] = TR_NONE; const char STR_MENUSENSOR[] = TR_MENUSENSOR; +const char STR_POWERMETER_PEAK[] = TR_POWERMETER_PEAK; +const char STR_POWERMETER_POWER[] = TR_POWERMETER_POWER; +const char STR_POWERMETER_ATTN[] = TR_POWERMETER_ATTN; +const char STR_POWERMETER_FREQ[] = TR_POWERMETER_FREQ; +const char STR_MENUTOOLS[] = TR_MENUTOOLS; +const char STR_TURN_OFF_RECEIVER [] = TR_TURN_OFF_RECEIVER ; +const char STR_STOPPING [] = TR_STOPPING ; +const char STR_MENU_SPECTRUM_ANALYSER[] = TR_MENU_SPECTRUM_ANALYSER; +const char STR_MENU_POWER_METER[] = TR_MENU_POWER_METER; +const char STR_MENUTOOLS[] = TR_MENUTOOLS; const char STR_SENSOR[] = TR_SENSOR; const char STR_DISABLE_INTERNAL[] = TR_DISABLE_INTERNAL; diff --git a/radio/src/translations.h b/radio/src/translations.h index 025b10370..df4943af6 100644 --- a/radio/src/translations.h +++ b/radio/src/translations.h @@ -591,6 +591,16 @@ extern const char STR_PINMAPSET[]; extern const char STR_HOLD[]; extern const char STR_NONE[]; extern const char STR_MENUSENSOR[]; +extern const char STR_POWERMETER_PEAK[]; +extern const char STR_POWERMETER_POWER[]; +extern const char STR_POWERMETER_ATTN[]; +extern const char STR_POWERMETER_FREQ[]; +extern const char STR_MENUTOOLS[]; +extern const char STR_TURN_OFF_RECEIVER []; +extern const char STR_STOPPING []; +extern const char STR_MENU_SPECTRUM_ANALYSER[]; +extern const char STR_MENU_POWER_METER[]; +extern const char STR_MENUTOOLS[]; extern const char STR_SENSOR[]; extern const char STR_COUNTRYCODE[]; extern const char STR_USBMODE[]; diff --git a/radio/src/translations/cz.h.txt b/radio/src/translations/cz.h.txt index b14b814df..3fcfa2cea 100644 --- a/radio/src/translations/cz.h.txt +++ b/radio/src/translations/cz.h.txt @@ -937,6 +937,16 @@ #define TR_HOLD "HOLD" #define TR_NONE "NONE" #define TR_MENUSENSOR "SENZOR" +#define TR_POWERMETER_PEAK "Peak" +#define TR_POWERMETER_POWER "Power" +#define TR_POWERMETER_ATTN "Attn" +#define TR_POWERMETER_FREQ "Freq." +#define TR_MENUTOOLS "TOOLS" +#define TR_TURN_OFF_RECEIVER "Turn off receiver" +#define TR_STOPPING "Stopping..." +#define TR_MENU_SPECTRUM_ANALYSER "SPECTRUM ANALYSER" +#define TR_MENU_POWER_METER "POWER METER" +#define TR_MENUTOOLS "TOOLS" #define TR_SENSOR "SENZOR" #define TR_COUNTRYCODE "Kód regionu" #define TR_USBMODE "USB Mode" diff --git a/radio/src/translations/de.h.txt b/radio/src/translations/de.h.txt index f572865ab..e67d7a0de 100644 --- a/radio/src/translations/de.h.txt +++ b/radio/src/translations/de.h.txt @@ -942,6 +942,16 @@ #define TR_HOLD "HOLD" #define TR_NONE "NONE" #define TR_MENUSENSOR "SENSOR" +#define TR_POWERMETER_PEAK "Peak" +#define TR_POWERMETER_POWER "Power" +#define TR_POWERMETER_ATTN "Attn" +#define TR_POWERMETER_FREQ "Freq." +#define TR_MENUTOOLS "TOOLS" +#define TR_TURN_OFF_RECEIVER "Turn off receiver" +#define TR_STOPPING "Stopping..." +#define TR_MENU_SPECTRUM_ANALYSER "SPECTRUM ANALYSER" +#define TR_MENU_POWER_METER "POWER METER" +#define TR_MENUTOOLS "TOOLS" #define TR_SENSOR "SENSOR" #define TR_COUNTRYCODE "Landescode" #define TR_USBMODE "USB Modus" diff --git a/radio/src/translations/en.h.txt b/radio/src/translations/en.h.txt index 49700a0ca..22cbce33a 100644 --- a/radio/src/translations/en.h.txt +++ b/radio/src/translations/en.h.txt @@ -953,6 +953,16 @@ #define TR_HOLD "HOLD" #define TR_NONE "NONE" #define TR_MENUSENSOR "SENSOR" +#define TR_POWERMETER_PEAK "Peak" +#define TR_POWERMETER_POWER "Power" +#define TR_POWERMETER_ATTN "Attn" +#define TR_POWERMETER_FREQ "Freq." +#define TR_MENUTOOLS "TOOLS" +#define TR_TURN_OFF_RECEIVER "Turn off receiver" +#define TR_STOPPING "Stopping..." +#define TR_MENU_SPECTRUM_ANALYSER "SPECTRUM ANALYSER" +#define TR_MENU_POWER_METER "POWER METER" +#define TR_MENUTOOLS "TOOLS" #define TR_SENSOR "SENSOR" #define TR_COUNTRYCODE "Country code" #define TR_USBMODE "USB Mode" diff --git a/radio/src/translations/es.h.txt b/radio/src/translations/es.h.txt index 78cff9bb6..8ea899205 100644 --- a/radio/src/translations/es.h.txt +++ b/radio/src/translations/es.h.txt @@ -948,6 +948,16 @@ #define TR_HOLD "HOLD" #define TR_NONE "NONE" #define TR_MENUSENSOR "SENSOR" +#define TR_POWERMETER_PEAK "Peak" +#define TR_POWERMETER_POWER "Power" +#define TR_POWERMETER_ATTN "Attn" +#define TR_POWERMETER_FREQ "Freq." +#define TR_MENUTOOLS "TOOLS" +#define TR_TURN_OFF_RECEIVER "Turn off receiver" +#define TR_STOPPING "Stopping..." +#define TR_MENU_SPECTRUM_ANALYSER "SPECTRUM ANALYSER" +#define TR_MENU_POWER_METER "POWER METER" +#define TR_MENUTOOLS "TOOLS" #define TR_SENSOR "SENSOR" #define TR_COUNTRYCODE "Codigo Pais" #define TR_USBMODE "USB Mode" diff --git a/radio/src/translations/fi.h.txt b/radio/src/translations/fi.h.txt index 2612aaa27..5fc0fef94 100644 --- a/radio/src/translations/fi.h.txt +++ b/radio/src/translations/fi.h.txt @@ -940,6 +940,16 @@ #define TR_HOLD "HOLD" #define TR_NONE "NONE" #define TR_MENUSENSOR "SENSOR" +#define TR_POWERMETER_PEAK "Peak" +#define TR_POWERMETER_POWER "Power" +#define TR_POWERMETER_ATTN "Attn" +#define TR_POWERMETER_FREQ "Freq." +#define TR_MENUTOOLS "TOOLS" +#define TR_TURN_OFF_RECEIVER "Turn off receiver" +#define TR_STOPPING "Stopping..." +#define TR_MENU_SPECTRUM_ANALYSER "SPECTRUM ANALYSER" +#define TR_MENU_POWER_METER "POWER METER" +#define TR_MENUTOOLS "TOOLS" #define TR_SENSOR "SENSOR" #define TR_COUNTRYCODE "Country Code" #define TR_USBMODE "USB Mode" diff --git a/radio/src/translations/fr.h.txt b/radio/src/translations/fr.h.txt index cbd819ae0..5b873be1b 100644 --- a/radio/src/translations/fr.h.txt +++ b/radio/src/translations/fr.h.txt @@ -952,6 +952,16 @@ #define TR_HOLD "HOLD" #define TR_NONE "NONE" #define TR_MENUSENSOR "CAPTEUR" +#define TR_POWERMETER_PEAK "Peak" +#define TR_POWERMETER_POWER "Power" +#define TR_POWERMETER_ATTN "Attn" +#define TR_POWERMETER_FREQ "Freq." +#define TR_MENUTOOLS "TOOLS" +#define TR_TURN_OFF_RECEIVER "Turn off receiver" +#define TR_STOPPING "Stopping..." +#define TR_MENU_SPECTRUM_ANALYSER "SPECTRUM ANALYSER" +#define TR_MENU_POWER_METER "POWER METER" +#define TR_MENUTOOLS "TOOLS" #define TR_SENSOR "SENSOR" #define TR_COUNTRYCODE TR("Zone géo.", "Zone géographique") #define TR_USBMODE "USB Mode" diff --git a/radio/src/translations/it.h.txt b/radio/src/translations/it.h.txt index f2b372462..0d9a0f428 100644 --- a/radio/src/translations/it.h.txt +++ b/radio/src/translations/it.h.txt @@ -942,6 +942,16 @@ #define TR_HOLD "HOLD" #define TR_NONE "NONE" #define TR_MENUSENSOR "SENSOR" +#define TR_POWERMETER_PEAK "Peak" +#define TR_POWERMETER_POWER "Power" +#define TR_POWERMETER_ATTN "Attn" +#define TR_POWERMETER_FREQ "Freq." +#define TR_MENUTOOLS "TOOLS" +#define TR_TURN_OFF_RECEIVER "Turn off receiver" +#define TR_STOPPING "Stopping..." +#define TR_MENU_SPECTRUM_ANALYSER "SPECTRUM ANALYSER" +#define TR_MENU_POWER_METER "POWER METER" +#define TR_MENUTOOLS "TOOLS" #define TR_SENSOR "SENSOR" #define TR_COUNTRYCODE TR("Codice Paese","Standard 2.4Ghz") #define TR_USBMODE "USB Mode" diff --git a/radio/src/translations/nl.h.txt b/radio/src/translations/nl.h.txt index ae3573b6d..1232ec9f9 100644 --- a/radio/src/translations/nl.h.txt +++ b/radio/src/translations/nl.h.txt @@ -943,6 +943,16 @@ #define TR_HOLD "HOLD" #define TR_NONE "NONE" #define TR_MENUSENSOR "SENSOR" +#define TR_POWERMETER_PEAK "Peak" +#define TR_POWERMETER_POWER "Power" +#define TR_POWERMETER_ATTN "Attn" +#define TR_POWERMETER_FREQ "Freq." +#define TR_MENUTOOLS "TOOLS" +#define TR_TURN_OFF_RECEIVER "Turn off receiver" +#define TR_STOPPING "Stopping..." +#define TR_MENU_SPECTRUM_ANALYSER "SPECTRUM ANALYSER" +#define TR_MENU_POWER_METER "POWER METER" +#define TR_MENUTOOLS "TOOLS" #define TR_SENSOR "SENSOR" #define TR_COUNTRYCODE "Landcode" #define TR_USBMODE "USB Mode" diff --git a/radio/src/translations/pl.h.txt b/radio/src/translations/pl.h.txt index b5e9ea2d7..fcd8ea835 100644 --- a/radio/src/translations/pl.h.txt +++ b/radio/src/translations/pl.h.txt @@ -943,6 +943,16 @@ #define TR_HOLD "HOLD" #define TR_NONE "NONE" #define TR_MENUSENSOR "CZUJNIK" +#define TR_POWERMETER_PEAK "Peak" +#define TR_POWERMETER_POWER "Power" +#define TR_POWERMETER_ATTN "Attn" +#define TR_POWERMETER_FREQ "Freq." +#define TR_MENUTOOLS "TOOLS" +#define TR_TURN_OFF_RECEIVER "Turn off receiver" +#define TR_STOPPING "Stopping..." +#define TR_MENU_SPECTRUM_ANALYSER "SPECTRUM ANALYSER" +#define TR_MENU_POWER_METER "POWER METER" +#define TR_MENUTOOLS "TOOLS" #define TR_SENSOR "SENSOR" #define TR_COUNTRYCODE "Kod regionu" #define TR_USBMODE "USB Mode" diff --git a/radio/src/translations/pt.h.txt b/radio/src/translations/pt.h.txt index 7ef8597bb..9f285cbd8 100644 --- a/radio/src/translations/pt.h.txt +++ b/radio/src/translations/pt.h.txt @@ -947,6 +947,16 @@ #define TR_HOLD "HOLD" #define TR_NONE "NONE" #define TR_MENUSENSOR "SENSOR" +#define TR_POWERMETER_PEAK "Peak" +#define TR_POWERMETER_POWER "Power" +#define TR_POWERMETER_ATTN "Attn" +#define TR_POWERMETER_FREQ "Freq." +#define TR_MENUTOOLS "TOOLS" +#define TR_TURN_OFF_RECEIVER "Turn off receiver" +#define TR_STOPPING "Stopping..." +#define TR_MENU_SPECTRUM_ANALYSER "SPECTRUM ANALYSER" +#define TR_MENU_POWER_METER "POWER METER" +#define TR_MENUTOOLS "TOOLS" #define TR_SENSOR "SENSOR" #define TR_COUNTRYCODE "Country Code" #define TR_USBMODE "USB Mode" diff --git a/radio/src/translations/se.h.txt b/radio/src/translations/se.h.txt index b213f7346..e7aaf6ad0 100644 --- a/radio/src/translations/se.h.txt +++ b/radio/src/translations/se.h.txt @@ -956,6 +956,16 @@ #define TR_HOLD "HOLD" #define TR_NONE "NONE" #define TR_MENUSENSOR "SENSOR" +#define TR_POWERMETER_PEAK "Peak" +#define TR_POWERMETER_POWER "Power" +#define TR_POWERMETER_ATTN "Attn" +#define TR_POWERMETER_FREQ "Freq." +#define TR_MENUTOOLS "TOOLS" +#define TR_TURN_OFF_RECEIVER "Turn off receiver" +#define TR_STOPPING "Stopping..." +#define TR_MENU_SPECTRUM_ANALYSER "SPECTRUM ANALYSER" +#define TR_MENU_POWER_METER "POWER METER" +#define TR_MENUTOOLS "TOOLS" #define TR_SENSOR "SENSOR" #define TR_COUNTRYCODE "Landskod" #define TR_USBMODE "USB Mode"