diff options
author | Reinier Heeres <reinier@heeres.eu> | 2007-11-30 11:05:11 (GMT) |
---|---|---|
committer | Reinier Heeres <reinier@heeres.eu> | 2007-11-30 11:05:11 (GMT) |
commit | 43d476d66ba8107995579250eefa2f22d82385e9 (patch) | |
tree | b687d2d285da9c26c0dec971c02cec78a5f8ab20 /mathlib.py | |
parent | cdc7cfd24f22245ed6b565f23db5717c88552b3b (diff) |
Set default thousand/fraction sep if not available
Diffstat (limited to 'mathlib.py')
-rw-r--r-- | mathlib.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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') |