Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/mathlib.py
diff options
context:
space:
mode:
authorReinier Heeres <reinier@heeres.eu>2007-11-30 11:05:11 (GMT)
committer Reinier Heeres <reinier@heeres.eu>2007-11-30 11:05:11 (GMT)
commit43d476d66ba8107995579250eefa2f22d82385e9 (patch)
treeb687d2d285da9c26c0dec971c02cec78a5f8ab20 /mathlib.py
parentcdc7cfd24f22245ed6b565f23db5717c88552b3b (diff)
Set default thousand/fraction sep if not available
Diffstat (limited to 'mathlib.py')
-rw-r--r--mathlib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mathlib.py b/mathlib.py
index 1edeab0..5dc10d7 100644
--- a/mathlib.py
+++ b/mathlib.py
@@ -60,9 +60,13 @@ class MathLib:
# The separator to mark thousands (default: ',')
self.thousand_sep = loc['thousands_sep']
+ if self.thousand_sep == "" or self.thousand_sep == None:
+ self.thousand_sep = ","
# The separator to mark fractions (default: '.')
self.fraction_sep = loc['decimal_point']
+ if self.fraction_sep == "" or self.fraction_sep == None:
+ self.fraction_sep = "."
# TRANS: multiplication symbol (default: '*')
self.mul_sym = _('mul_sym')