Commit c0cfea81 authored by Jukka-Pekka Iivonen's avatar Jukka-Pekka Iivonen Committed by jpekka
Browse files

Added the i18n stuff that got lost in previous commit.

2001-10-26  Jukka-Pekka Iivonen  <jiivonen@hutcs.cs.hut.fi>

        * mps.c: Added the i18n stuff that got lost in previous commit.
parent 723baf88
2001-10-26 Jukka-Pekka Iivonen <jiivonen@hutcs.cs.hut.fi>
* mps.c: Added the i18n stuff that got lost in previous commit.
2001-10-25 Jukka-Pekka Iivonen <jiivonen@hutcs.cs.hut.fi>
* mps.c: Moved to character position based scanning since many MPS
......
......@@ -2,7 +2,7 @@
* mps.c: MPS file importer.
*
* Authors:
* Jukka-Pekka Iivonen <jiivonen@hucs.cs.hut.fi>
* Jukka-Pekka Iivonen <jiivonen@hutcs.cs.hut.fi>
* File handling code copied from Dif module.
*
* MPS importer module. MPS format is a de facto standard ASCII format
......@@ -271,12 +271,12 @@ mps_create_sheet (WorkbookView *wbv, MpsInputContext *ctxt)
/* Print 'Program Name'. */
mps_set_cell (sh, MAIN_INFO_COL, MAIN_INFO_ROW - 1,
"Program Name");
_("Program Name"));
mps_set_cell (sh, MAIN_INFO_COL, MAIN_INFO_ROW, ctxt->name);
/* Print 'Objective value'. */
mps_set_cell (sh, MAIN_INFO_COL + 1, MAIN_INFO_ROW - 1,
"Objective Value");
_("Objective Value"));
range_init (&range, VARIABLE_COL, VARIABLE_ROW + 1,
ctxt->n_cols, VARIABLE_ROW + 1);
buf = g_string_new ("");
......@@ -287,7 +287,7 @@ mps_create_sheet (WorkbookView *wbv, MpsInputContext *ctxt)
g_string_free (buf, FALSE);
/* Print 'Status'. */
mps_set_cell (sh, MAIN_INFO_COL + 3, MAIN_INFO_ROW - 1, "Feasible");
mps_set_cell (sh, MAIN_INFO_COL + 3, MAIN_INFO_ROW - 1, _("Feasible"));
range_init (&range, ctxt->n_cols + 5, CONSTRAINT_ROW,
ctxt->n_cols + 5, CONSTRAINT_ROW + ctxt->n_rows - 2);
buf = g_string_new ("=IF(COUNTIF(");
......@@ -302,10 +302,10 @@ mps_create_sheet (WorkbookView *wbv, MpsInputContext *ctxt)
*/
/* Print 'Objective function:' */
mps_set_cell (sh, VARIABLE_COL, VARIABLE_ROW - 2, "Objective function:");
mps_set_cell (sh, VARIABLE_COL, VARIABLE_ROW - 2, _("Objective function:"));
/* Print 'Current values' */
mps_set_cell (sh, VARIABLE_COL - 1, VARIABLE_ROW, "Current values");
mps_set_cell (sh, VARIABLE_COL - 1, VARIABLE_ROW, _("Current values"));
/* Print the name of the objective function */
mps_set_cell (sh, VARIABLE_COL - 1, VARIABLE_ROW + 1,
......@@ -326,18 +326,18 @@ mps_create_sheet (WorkbookView *wbv, MpsInputContext *ctxt)
*/
/* Print 'Constraints:'. */
mps_set_cell (sh, CONSTRAINT_COL, CONSTRAINT_ROW - 2, "Constraints:");
mps_set_cell (sh, CONSTRAINT_COL, CONSTRAINT_ROW - 2, _("Constraints:"));
/* Print constraint titles. */
mps_set_cell (sh, CONSTRAINT_COL - 1, CONSTRAINT_ROW - 1, "Name");
mps_set_cell (sh, CONSTRAINT_COL - 1, CONSTRAINT_ROW - 1, _("Name"));
for (i=0; i<ctxt->n_cols; i++)
mps_set_cell (sh, i + CONSTRAINT_COL, CONSTRAINT_ROW - 1,
ctxt->col_name_tbl[i]);
mps_set_cell (sh, ctxt->n_cols + 1, CONSTRAINT_ROW - 1, "Value");
mps_set_cell (sh, ctxt->n_cols + 2, CONSTRAINT_ROW - 1, "Type");
mps_set_cell (sh, ctxt->n_cols + 3, CONSTRAINT_ROW - 1, "RHS");
mps_set_cell (sh, ctxt->n_cols + 4, CONSTRAINT_ROW - 1, "Slack");
mps_set_cell (sh, ctxt->n_cols + 5, CONSTRAINT_ROW - 1, "Status");
mps_set_cell (sh, ctxt->n_cols + 1, CONSTRAINT_ROW - 1, _("Value"));
mps_set_cell (sh, ctxt->n_cols + 2, CONSTRAINT_ROW - 1, _("Type"));
mps_set_cell (sh, ctxt->n_cols + 3, CONSTRAINT_ROW - 1, _("RHS"));
mps_set_cell (sh, ctxt->n_cols + 4, CONSTRAINT_ROW - 1, _("Slack"));
mps_set_cell (sh, ctxt->n_cols + 5, CONSTRAINT_ROW - 1, _("Status"));
/* Print constraints. */
i = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment