Skip to content

Commit

Permalink
Merge pull request #25 from codingjoe/patch-1
Browse files Browse the repository at this point in the history
Add formats for German-speaking countries.
  • Loading branch information
Kai committed Dec 11, 2013
2 parents 68f38b1 + 7756cd6 commit 8d832b9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/moneyed/localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,21 @@ def format(self, money, include_symbol=True, locale=DEFAULT,
positive_sign="", trailing_positive_sign="",
negative_sign="-", trailing_negative_sign="",
rounding_method=ROUND_HALF_EVEN)

_format("de_DE", group_size=3, group_separator=" ", decimal_point=",",
positive_sign="", trailing_positive_sign="",
negative_sign="-", trailing_negative_sign="",
rounding_method=ROUND_HALF_EVEN)

_format("de_AT", group_size=3, group_separator=" ", decimal_point=",",
positive_sign="", trailing_positive_sign="",
negative_sign="-", trailing_negative_sign="",
rounding_method=ROUND_HALF_EVEN)

_format("de_CH", group_size=3, group_separator=" ", decimal_point=".",
positive_sign="", trailing_positive_sign="",
negative_sign="-", trailing_negative_sign="",
rounding_method=ROUND_HALF_EVEN)

_format("sv_SE", group_size=3, group_separator=" ", decimal_point=",",
positive_sign="", trailing_positive_sign="",
Expand Down

0 comments on commit 8d832b9

Please sign in to comment.