diff --git a/locales/en/messages.json b/locales/en/messages.json
index fde8ee0f..a3d31522 100644
--- a/locales/en/messages.json
+++ b/locales/en/messages.json
@@ -1401,6 +1401,13 @@
"message": "Preview"
},
+ "receiverMspWarningText": {
+ "message": "These sticks allow BetaFlight to be armed and tested without a transmitter or receiver being present. However, this feature is not intended for flight and propellers must not be attached.
This feature does not guarantee reliable control of your craft. Serious injury is likely to result if propellers are left on."
+ },
+ "receiverMspEnableButton": {
+ "message": "Enable controls"
+ },
+
"auxiliaryHelp": {
"message": "Use ranges to define the switches on your transmitter and corresponding mode assignments. A receiver channel that gives a reading between a range min/max will activate the mode. Remember to save your settings using the Save button."
},
diff --git a/src/js/tabs/receiver_msp.js b/src/js/tabs/receiver_msp.js
index 6305408d..667ffc70 100644
--- a/src/js/tabs/receiver_msp.js
+++ b/src/js/tabs/receiver_msp.js
@@ -31,8 +31,8 @@ var
// First the vertical axis, then the horizontal:
gimbals = [
- ["throttle", "yaw"],
- ["pitch", "roll"],
+ ["Throttle", "Yaw"],
+ ["Pitch", "Roll"],
],
gimbalElems,
@@ -40,6 +40,18 @@ var
enableTX = false;
+// This is a hack to get the i18n var of the parent, but the localizePage not works
+const i18n = opener.i18n;
+
+$(document).ready(function () {
+ $('[i18n]:not(.i18n-replaced)').each(function() {
+ var element = $(this);
+
+ element.html(i18n.getMessage(element.attr('i18n')));
+ element.addClass('i18n-replaced');
+ });
+})
+
function transmitChannels() {
var
channelValues = [0, 0, 0, 0, 0, 0, 0, 0];
diff --git a/src/tabs/receiver_msp.html b/src/tabs/receiver_msp.html
index 557f7aee..41ce9233 100644
--- a/src/tabs/receiver_msp.html
+++ b/src/tabs/receiver_msp.html
@@ -1,16 +1,16 @@
- These sticks allow BetaFlight to be armed and tested without a transmitter or receiver being present. - However, this feature is not intended for flight and propellers must not be attached. -
-- This feature does not guarantee reliable control of your craft. Serious injury is likely to - result if propellers are left on. -
+