diff --git a/src/app/lang.ts b/src/app/lang.ts index 4b1f2d1..d390de0 100644 --- a/src/app/lang.ts +++ b/src/app/lang.ts @@ -24,6 +24,8 @@ export default function text(lang: string, input: string): string { return "Listen Sie alle Ihre Variablen auf. Eine pro Zeile (mit der 'Enter'-Taste trennen). Erlaubte Symbole sind a-z, A-Z.\nBeispiel:\nx\ny"; case "boxExportLP": return "Als LP exportieren"; + case "boxExportMPS": + return "Als MPS exportieren"; case "boxOut": return "Geben Sie ein Problem ein und drücken Sie eine Aktionstaste, um die Ausgabe anzuzeigen..."; case "buttonCalc": @@ -125,6 +127,8 @@ export default function text(lang: string, input: string): string { return "List all your variables. One per line (divide by 'return' button). Allowed symbols are a-z, A-Z.\nExample:\nx\ny"; case "boxExportLP": return "Export as LP"; + case "boxExportMPS": + return "Export as MPS"; case "boxOut": return "Input a problem and an action button to display output..."; case "buttonCalc": diff --git a/src/app/page.tsx b/src/app/page.tsx index 3375c12..fdf95e8 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,7 +2,7 @@ import React, { useState } from 'react'; import { Box, Button, Output } from "./modules"; -import { calculate_clickMaximize, calculate_clickMinimize, downloadLP, import_click } from "./scripts" +import { calculate_clickMaximize, calculate_clickMinimize, downloadLP, downloadMPS, import_click } from "./scripts" import text from "./lang" export default function Home() { @@ -19,6 +19,7 @@ export default function Home() { const tr_boxVarsDesc = text(language, "boxVarsDesc"); const tr_boxOut = text(language, "boxOut"); const tr_boxExportLP = text(language, "boxExportLP"); + const tr_boxExoprtMPS = text(language, "boxExportMPS"); const tr_calc_max = text(language, "maximize"); const tr_calc_min = text(language, "minimize"); @@ -71,6 +72,10 @@ export default function Home() { title={tr_boxExportLP} className={"button"} onClickFunc={downloadLP} /> +