[gcalctool] Disable localized digits (Bug #644980)



commit 190f46259bd0a63c00ea674026081ef469d95f5a
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Mar 18 13:58:09 2011 +1100

    Disable localized digits (Bug #644980)

 NEWS                |    4 ++++
 src/math-equation.c |    4 +++-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index f75d19c..f129b86 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+Overview of changes in gcalctool 5.91.91
+
+    * Disable localized digits (Bug #644980)
+
 Overview of changes in gcalctool 5.91.90
 
     * Integrate unittests into build process
diff --git a/src/math-equation.c b/src/math-equation.c
index a5a4540..6a0bcdb 100644
--- a/src/math-equation.c
+++ b/src/math-equation.c
@@ -1815,7 +1815,9 @@ math_equation_init(MathEquation *equation)
     const char *digit_values = _("0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F");
     const char *default_digits[] = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"};
     gchar **digits;
-    gboolean use_default_digits = FALSE;
+    /* Default to using untranslated digits, this is because it doesn't make sense in most languages and we need to make this optional.
+     * See https://bugzilla.gnome.org/show_bug.cgi?id=632661 */
+    gboolean use_default_digits = TRUE;
     int i;
 
     equation->priv = G_TYPE_INSTANCE_GET_PRIVATE(equation, math_equation_get_type(), MathEquationPrivate);



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