Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NormanTUD committed Dec 18, 2024
1 parent 19df68f commit ad4de40
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
10 changes: 5 additions & 5 deletions gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -4341,7 +4341,7 @@ function auto_adjust_number_of_neurons(n) {
}
no_update_math = original_no_update_math;
} else {
log("last layer not dense");
log(language[lang]["last_layer_not_dense"]);
}
}
}
Expand Down Expand Up @@ -6093,12 +6093,12 @@ async function _download_model_for_training () {
var data = JSON.parse(await get_x_y_as_array());

if(!Object.keys(data).includes("x")) {
err("Could not retrieve x data");
err(language[lang["could_not_retrieve_x_data"]);
return;
}

if(!Object.keys(data).includes("y")) {
err("Could not retrieve y data");
err(language[lang["could_not_retrieve_y_data"]);
return;
}

Expand Down Expand Up @@ -7663,7 +7663,7 @@ function show_overlay(text, title="") {

return overlay;
} catch (error) {
log("An error occurred:", error);
log(language[lang]["an_error_occured"], error);
wrn("[show_overlay] Failed to display overlay.");
}
}
Expand Down Expand Up @@ -8860,7 +8860,7 @@ async function restart_fcnn () {
var fcnn_data = get_fcnn_data();

if(!fcnn_data) {
wrn("Could not get FCNN data");
wrn(language[lang]["could_not_get_fcnn_data"]);
return;
}

Expand Down
14 changes: 12 additions & 2 deletions translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,12 @@
"idname_is_null_returning" => "idname is null. Returning.",
"idname_is_undefined_returning" => "Undefined idname. Returning.",
"x_and_y_keys_must_have_same_nr_of_values_but_has_m_and_y" => "x and y keys must have the same number of values. They are different, x has %d keys and y has %d keys!",
"failed_temml" => "failed temml:"
"failed_temml" => "failed temml:",
"could_not_get_fcnn_data" => "Could not get FCNN data",
"could_not_retrieve_x_data" => "Could not retrieve x data",
"could_not_retrieve_y_data" => "Could not retrieve y data",
"last_layer_not_dense" => "Last layer not dense",
"an_error_occured" => "An error occurred:"
),

'de' => array(
Expand Down Expand Up @@ -1117,7 +1122,12 @@
"idname_is_null_returning" => "idname ist null. Verlasse Funktion.",
"idname_is_undefined_returning" => "idname ist undefiniert. Verlasse Funktion.",
"x_and_y_keys_must_have_same_nr_of_values_but_has_m_and_y" => "x und y keys müssen die gleiche Anzahl an Werten haben, aber sie sind unterschiedlich.x hat %d keys und y hat %d keys!",
"failed_temml" => "Temml fehlgeschlagen:"
"failed_temml" => "Temml fehlgeschlagen:",
"could_not_get_fcnn_data" => "Konnte FCNN-Daten nicht holen",
"could_not_retrieve_x_data" => "Konnte x-Daten nicht holen",
"could_not_retrieve_y_data" => "Konnte y-Daten nicht holen",
"last_layer_not_dense" => "Der letzte Layer ist nicht Dense",
"an_error_occured" => "Es ist ein Fehler aufgetreten:"
)
);

Expand Down

0 comments on commit ad4de40

Please sign in to comment.