[gnumeric] solver: i18n issues.



commit e252d571d1630062c730e058abb7777eedea3491
Author: Morten Welinder <terra gnome org>
Date:   Wed Nov 11 23:09:26 2009 -0500

    solver: i18n issues.

 src/dialogs/ChangeLog       |    4 ++++
 src/dialogs/dialog-solver.c |   20 ++++++++++++++------
 2 files changed, 18 insertions(+), 6 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 9d545a0..66adfa8 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-11  Morten Welinder  <terra gnome org>
+
+	* dialog-solver.c (cb_notify_result): i18n issues.
+
 2009-11-11  Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* dialog-doc-metadata.c (dialog_doc_meta_data_add_item): fix wrong
diff --git a/src/dialogs/dialog-solver.c b/src/dialogs/dialog-solver.c
index d158690..676d365 100644
--- a/src/dialogs/dialog-solver.c
+++ b/src/dialogs/dialog-solver.c
@@ -557,20 +557,28 @@ cb_notify_result (SolverState *state)
 		txt = g_strdup ("");
 		break;
 
-	case GNM_SOLVER_RESULT_FEASIBLE:
-		txt = g_strdup_printf ("Feasible: %.15g", (double)r->value);
+	case GNM_SOLVER_RESULT_FEASIBLE: {
+		char *valtxt = go_format_value (go_format_general (),
+						r->value);
+		txt = g_strdup_printf (_("Feasible: %s"), valtxt);
+		g_free (valtxt);
 		break;
+	}
 
-	case GNM_SOLVER_RESULT_OPTIMAL:
-		txt = g_strdup_printf ("Optimal: %.15g", (double)r->value);
+	case GNM_SOLVER_RESULT_OPTIMAL: {
+		char *valtxt = go_format_value (go_format_general (),
+						r->value);
+		txt = g_strdup_printf (_("Optimal: %s"), valtxt);
+		g_free (valtxt);
 		break;
+	}
 
 	case GNM_SOLVER_RESULT_INFEASIBLE:
-		txt = g_strdup ("Infeasible");
+		txt = g_strdup (_("Infeasible"));
 		break;
 
 	case GNM_SOLVER_RESULT_UNBOUNDED:
-		txt = g_strdup ("Unbounded");
+		txt = g_strdup (_("Unbounded"));
 		break;
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]