diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 91642a20..e129b275 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -123,5 +123,45 @@ }, "defaultDonateText": { "message": "This utility is fully open source and is available free of charge to all baseflight users.
If you found the utility useful, please consider supporting its development by donating." + }, + + "pidTuningName": { + "message": "Name" + }, + "pidTuningProportional": { + "message": "Proportional" + }, + "pidTuningIntegral": { + "message": "Integral" + }, + "pidTuningDerivative": { + "message": "Derivative" + }, + "pidTuningRollPitchRate": { + "message": "ROLL & PITCH rate" + }, + "pidTuningYawRate": { + "message": "YAW rate" + }, + "pidTuningTPA": { + "message": "TPA" + }, + "pidTuningButtonSave": { + "message": "Save" + }, + "pidTuningButtonRefresh": { + "message": "Refresh" + }, + "pidTuningProfileHead": { + "message": "Profile" + }, + "pidTuningLoadedProfile": { + "message": "Loaded Profile: $1" + }, + "pidTuningDataRefreshed": { + "message": "PID data refreshed" + }, + "pidTuningEepromSaved": { + "message": "EEPROM saved" } } \ No newline at end of file diff --git a/tabs/pid_tuning.html b/tabs/pid_tuning.html index 8db6d728..4d2e81ff 100644 --- a/tabs/pid_tuning.html +++ b/tabs/pid_tuning.html @@ -1,10 +1,10 @@
- - - - + + + + @@ -66,9 +66,9 @@
NameProportionalIntegralDerivative
- - - + + + @@ -76,11 +76,11 @@
ROLL & PITCH rateYAW rateTPA
- Save - Refresh + +
- Profile +
\ No newline at end of file diff --git a/tabs/pid_tuning.js b/tabs/pid_tuning.js index 65743fa7..a298b5de 100644 --- a/tabs/pid_tuning.js +++ b/tabs/pid_tuning.js @@ -181,7 +181,7 @@ function tab_initialize_pid_tuning() { $('input[name="profile"]').change(function() { var profile = parseInt($(this).val()); send_message(MSP_codes.MSP_SELECT_SETTING, [profile - 1], false, function() { - GUI.log('Loaded Profile: ' + profile + ''); + GUI.log(chrome.i18n.getMessage('pidTuningLoadedProfile', [profile])); GUI.tab_switch_cleanup(tab_initialize_pid_tuning); }); @@ -189,7 +189,7 @@ function tab_initialize_pid_tuning() { $('a.refresh').click(function() { GUI.tab_switch_cleanup(function() { - GUI.log('PID data refreshed'); + GUI.log(chrome.i18n.getMessage('pidTuningDataRefreshed')); tab_initialize_pid_tuning(); }); @@ -299,7 +299,7 @@ function tab_initialize_pid_tuning() { function save_to_eeprom() { send_message(MSP_codes.MSP_EEPROM_WRITE, false, false, function() { - GUI.log('EEPROM saved'); + GUI.log(chrome.i18n.getMessage('pidTuningEepromSaved')); var element = $('a.update'); element.addClass('success');