Make labels in toolbar translatable

<label> elements in toolbar should have "tr" class to be translatable too.
This commit is contained in:
Volkov Maksim 2023-11-26 22:24:31 +03:00 committed by GitHub
parent d36fbadd86
commit 53d3ef7f83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -254,6 +254,7 @@ class GUI_tools_class {
var elementTitle = document.createElement('label');
elementTitle.innerHTML = title + ': ';
elementTitle.id = 'attribute_label_' + k;
elementTitle.className = 'trn';
const elementInput = document.createElement('input');
elementInput.type = 'number';
@ -295,6 +296,7 @@ class GUI_tools_class {
var elementTitle = document.createElement('label');
elementTitle.innerHTML = title + ': ';
elementTitle.for = k;
elementTitle.className = 'trn';
var selectList = document.createElement("select");
selectList.id = k;
@ -342,6 +344,7 @@ class GUI_tools_class {
var elementTitle = document.createElement('label');
elementTitle.innerHTML = title + ': ';
elementTitle.for = k;
elementTitle.className = 'trn';
var colorInput = document.createElement('input');
colorInput.type = 'color';