Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tawindow.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2010-09-30 07:37:31 (GMT)
committer Walter Bender <walter@sugarlabs.org>2010-09-30 07:37:31 (GMT)
commit0edd452a2c4e1628fb35ec2cc8e5f09594eed4a7 (patch)
tree08115913983f94f2a4705747bca4883343791243 /TurtleArt/tawindow.py
parentdce9973befba3e9c5f44c2b92521c45162fca870 (diff)
simpler locale handling
Diffstat (limited to 'TurtleArt/tawindow.py')
-rw-r--r--TurtleArt/tawindow.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index b8c6cac..9928334 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -126,13 +126,10 @@ class TurtleArtWindow():
self.mouse_x = 0
self.mouse_y = 0
- 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 = '.'
- print self.decimal_point, os.environ['LANG']
self.orientation = HORIZONTAL_PALETTE
if olpc_xo_1():