Updating language file

This commit is contained in:
SinusFox
2024-10-11 15:56:09 +02:00
parent 231f9c90c1
commit 60f315f65b
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -98,6 +98,8 @@ export default function text(lang: string, input: string): string {
return "Überprüfe auf leere Eingabefelder...";
case "importing":
return "Importiere...";
case "err_invalidConstraintFormat":
return "Fehler: Nicht erlaubter Operator verwendet.";
default:
return input;
}
@@ -203,6 +205,8 @@ export default function text(lang: string, input: string): string {
return "Checking for empty input boxes...";
case "importing":
return "Importing...";
case "err_invalidConstraintFormat":
return "Error: Invalid constraint format.";
default:
return input;
}
+1 -1
View File
@@ -585,7 +585,7 @@ function parseLPConstraint(constraint: string): { vars: Variable[], bound: Bound
const operators = ["<=", ">=", "="];
let operator = operators.find(op => constraint.includes(op));
if (!operator) {
throw new Error("Invalid constraint format");
throw new Error(getTranslation("err_invalidConstraintFormat"));
}
const [expr, boundStr] = constraint.split(operator);