From 1a98896f25543b63844ceebf45e879b1b531bed7 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Thu, 30 Sep 2010 07:37:01 +0000 Subject: simpler locale handling --- (limited to 'abacus_window.py') 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 = '.' -- cgit v0.9.1