Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/abacus_window.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2010-09-30 07:37:01 (GMT)
committer Walter Bender <walter@sugarlabs.org>2010-09-30 07:37:01 (GMT)
commit1a98896f25543b63844ceebf45e879b1b531bed7 (patch)
tree0578c122b30685b1c064a6f741f1b5973a057d6f /abacus_window.py
parent2b84e9e5258b71136285f56a2bdd689102a160a6 (diff)
simpler locale handling
Diffstat (limited to 'abacus_window.py')
-rw-r--r--abacus_window.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/abacus_window.py b/abacus_window.py
index c84d952..c7cc625 100644
--- a/abacus_window.py
+++ b/abacus_window.py
@@ -33,7 +33,6 @@ pygtk.require('2.0')
import gtk
from math import pow, floor, ceil
-import os
import locale
from gettext import gettext as _
@@ -293,9 +292,7 @@ class Abacus():
self.press = None
self.last = None
- lang = os.environ['LANG']
- if lang != '' and lang is not None:
- locale.setlocale(locale.LC_NUMERIC, lang)
+ locale.setlocale(locale.LC_NUMERIC, '')
self.decimal_point = locale.localeconv()['decimal_point']
if self.decimal_point == '' or self.decimal_point is None:
self.decimal_point = '.'