Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NormanTUD committed Dec 17, 2024
1 parent 8a0e345 commit a73e6b2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
9 changes: 5 additions & 4 deletions gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ async function set_labels (arr, force_allow_empty=0) {

if(old_array_string != new_array_string) {
labels = arr;
dbg("Set labels = [" + arr.join(", ") + "]");
dbg(`${language[lang]["set_labels"]} = [${arr.join(", ")}]`);
} else {
dbg("Not changing labels, they stayed the same.");
dbg(language[lang]["not_changing_labels_they_stayed_the_same"]);

return;
}
Expand Down Expand Up @@ -2246,7 +2246,7 @@ function set_batch_size(val) {
function set_epochs(val) {
assert(typeof(val) == "number" || is_numeric(val), val + " is not numeric but " + typeof(val));
val = parse_int(val);
dbg("[set_epochs] Setting epochs to " + val);
dbg(`[set_epochs] ${language[lang]["setting_epochs_to"]} ${val}`);
document.getElementById("epochs").value = val;
$(document.getElementById("epochs")).trigger("change");

Expand Down Expand Up @@ -3122,7 +3122,8 @@ async function set_config(index) {
disable_all_non_selected_layer_types();

if (!index) {
dbg("[set_config] Saving current status");
dbg(`[set_config] ${language[lang]["saving_current_status"]}`);

await save_current_status();
}

Expand Down
12 changes: 10 additions & 2 deletions translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,11 @@
"taking_photo_from_webcam" => "Taking photo from webcam",
"changed_metrics" => "Changed metrics",
"using_camera" => "Using camera",
"no_webgl_using_cpu" => "Has no WebGL. Using CPU backend."
"no_webgl_using_cpu" => "Has no WebGL. Using CPU backend.",
"setting_epochs_to" => "Setting epochs to",
"set_labels" => "Set labels",
"not_changing_labels_they_stayed_the_same" => "Not changing labels, they stayed the same",
"saving_current_status" => "Saving current status"
),

'de' => array(
Expand Down Expand Up @@ -773,7 +777,11 @@
"taking_photo_from_webcam" => "Nehme ein einzelnes Bild per Webcam auf",
"changed_metrics" => "Metrik geändert",
"using_camera" => "Benutze Kamera",
"no_webgl_using_cpu" => "Kein WebGL-Support. Benutze CPU-Backend."
"no_webgl_using_cpu" => "Kein WebGL-Support. Benutze CPU-Backend.",
"setting_epochs_to" => "Setze die Epochenzahl auf",
"set_labels" => "Setze die Labels",
"not_changing_labels_they_stayed_the_same" => "Ändere die Labels nicht, sie sind gleich geblieben",
"saving_current_status" => "Speichere aktuellen Stand"
)
);

Expand Down

0 comments on commit a73e6b2

Please sign in to comment.