diff --git a/gui.js b/gui.js index 12713da4b5..0f7b1aa6fd 100644 --- a/gui.js +++ b/gui.js @@ -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"]); } } } @@ -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; } @@ -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."); } } @@ -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; } diff --git a/translations.php b/translations.php index f00dc0b8c3..e990515525 100644 --- a/translations.php +++ b/translations.php @@ -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( @@ -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:" ) );