chore(color): Add translation for left stick (#2655)

* TR_LEFT_STICK added

* STR_LEFT_STICK added

* Added translation for stick mode

* TR_LEFT_STICK added

* Minor cleanup - removed one commented line of code

* Replaced radio specific define

* Added proper translations from translators

* chore: Whitespace cleanup
This commit is contained in:
ulfhedlund
2022-11-01 12:01:59 +10:00
committed by GitHub
parent e154ee1dea
commit bea7dade53
18 changed files with 83 additions and 9 deletions
+1 -3
View File
@@ -733,12 +733,10 @@ void RadioSetupPage::build(FormWindow * window)
resumePulses();
});
choice->setTextHandler([](uint8_t value) {
return std::to_string(1 + value) + ": left=" +
return std::to_string(1 + value) + ": " + STR_LEFT_STICK + " = " +
std::string(&getSourceString(MIXSRC_Rud + modn12x3[4 * value])[1]) +
"+" +
std::string(
&getSourceString(MIXSRC_Rud + modn12x3[4 * value + 1])[1]);
});
}