mirror of
https://github.com/opentx/opentx.git
synced 2025-07-17 21:35:27 +03:00
TOOLS internationalisation
This commit is contained in:
parent
5be4890cce
commit
962cdc7b67
16 changed files with 143 additions and 12 deletions
|
@ -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");
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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[];
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue