Skip to content

Commit

Permalink
Merge pull request #64 from seddonym/master
Browse files Browse the repository at this point in the history
Added support for GBP in en_GB locale
  • Loading branch information
spookylukey committed Sep 15, 2015
2 parents c0d7d06 + 696eed9 commit abde40e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion moneyed/localization.py
Expand Up @@ -165,6 +165,12 @@ def format(self, money, include_symbol=True, locale=DEFAULT,
negative_sign="-", trailing_negative_sign="",
rounding_method=ROUND_HALF_EVEN)

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


# CURRENCY SIGNS
# Default currency signs. These can be overridden for locales where
# foreign or local currency signs for one reason or another differ
Expand Down Expand Up @@ -325,7 +331,7 @@ def format(self, money, include_symbol=True, locale=DEFAULT,
_sign(DEFAULT, moneyed.ZWL, prefix='Z$')

_sign('en_US', moneyed.USD, prefix='$')
_sign('en_UK', moneyed.GBP, prefix='£')
_sign('en_GB', moneyed.GBP, prefix='£')
_sign('sv_SE', moneyed.SEK, prefix=' kr')
_sign('pl_PL', moneyed.PLN, suffix=' zł')
_sign('de_DE', moneyed.EUR, suffix=' €')
Expand Down

0 comments on commit abde40e

Please sign in to comment.