Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab adjustments: Sort the translated optionlist #3152

Merged
merged 4 commits into from
Dec 28, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/js/tabs/adjustments.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,14 +303,6 @@ adjustments.adjust_template = function () {
selectFunction.append(new Option(i18n.getMessage(`adjustmentsFunction${i}`), i));
}

// For 1.40, the D Setpoint has been replaced, so we replace it with the correct values
const element22 = selectFunction.find("option[value='22']");
const element23 = selectFunction.find("option[value='23']");

// Change the "text"
element22.text(i18n.getMessage('adjustmentsFunction22_2'));
element23.text(i18n.getMessage('adjustmentsFunction23_2'));

HThuren marked this conversation as resolved.
Show resolved Hide resolved
// Sort the element, if need to group, do it by lexical sort, ie. by naming of (the translated) selection text
selectFunction.sortSelect();
};
Expand Down