Code Monkey home page Code Monkey logo

Comments (5)

patrys avatar patrys commented on August 10, 2024

It looks like you're using prices_i18n which in turn depends on Babel. Are you sure this bug is in django-prices?

from django-prices.

pcompassion avatar pcompassion commented on August 10, 2024

oh..

It might be a bug of babel.

babel takes parameters (such as format) django-prices won't pass.
So It might be configurable by setting correct parameters though.

2016-02-16 20:10 GMT+09:00 Patryk Zawadzki [email protected]:

It looks like you're using prices_i18n which in turn depend on Babel
http://babel.pocoo.org/en/latest/. Are you sure this bug is in
django-prices?


Reply to this email directly or view it on GitHub
#33 (comment)
.

from django-prices.

pcompassion avatar pcompassion commented on August 10, 2024

actually it is the babeldjango that doesn't accept the whole parameter
set..

2016-02-16 20:12 GMT+09:00 eugene kim [email protected]:

oh..

It might be a bug of babel.

babel takes parameters (such as format) django-prices won't pass.
So It might be configurable by setting correct parameters though.

2016-02-16 20:10 GMT+09:00 Patryk Zawadzki [email protected]:

It looks like you're using prices_i18n which in turn depend on Babel
http://babel.pocoo.org/en/latest/. Are you sure this bug is in
django-prices?


Reply to this email directly or view it on GitHub
#33 (comment)
.

from django-prices.

patrys avatar patrys commented on August 10, 2024

We pass the current locale to Babel's format_currency. For me that's what it returns:

from babel.numbers import format_currency
print(format_currency(3300000, 'KRW', locale='ko_KR'))
# ₩3,300,000

from django-prices.

pcompassion avatar pcompassion commented on August 10, 2024

oh..

That looks ok.

although we koreans are more accustomed to see
3,300,000 원

I'm closing this is minor issue.
(it is better to get the 3,300,000 원 but I guess It is better to talk to babel people)

from django-prices.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.