diff options
Diffstat (limited to 'window.py')
-rw-r--r-- | window.py | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -34,7 +34,6 @@ import pygtk pygtk.require('2.0') import gtk -import os import locale from gettext import gettext as _ @@ -112,9 +111,7 @@ class SlideRule(): self.stators = [] self.scale = 1 - 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 = '.' |