Great find! I think is probably the best approach to the symbol-code thing.


On Thu, Aug 8, 2013 at 10:16 AM, Michael Maurizi
<notifications@github.com>wrote:

> In opentreemap/treemap/templates/treemap/eco_benefits.html:
>
> >          <br>
> > -        $??.?? saved
> > +        {{ currency_symbol }}{{ benefit.currency_saved }} saved
>
> @jwalgran <https://github.com/jwalgran> @ahinz <https://github.com/ahinz>For helping with storing currency codes instead of actual symbols, we could
> use https://pypi.python.org/pypi/pycountry
>
> Then converting the code to the symbol becomes:
>
> argentine_peso = pycountry.currencies.get(letter='ARS')
>
> Storing all currency multipliers in USD seems like far too much work for
> little gain though. We'd be showing different numbers all the time for
> non-US instances.
> We should use 1 currency per instance, and only do conversions when
> aggregating over mutliple instances.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/azavea/OTM2/pull/162/files#r5658445>
> .
>



-- 
Adam Hinz
Software Engineer, Azavea
hinz.adam@gmail.com | c: 608-445-8391 | Twitter: @ahinz