refactor(money in words): translatable currency Name (#21672)
This commit is contained in:
parent
c40faddac7
commit
35c929afdb
1 changed files with 2 additions and 2 deletions
|
|
@ -1353,12 +1353,12 @@ def money_in_words(
|
|||
|
||||
# 0.00
|
||||
if main == "0" and fraction in ["00", "000"]:
|
||||
out = "{} {}".format(main_currency, _("Zero"))
|
||||
out = _(main_currency, context="Currency") + " " + _("Zero")
|
||||
# 0.XX
|
||||
elif main == "0":
|
||||
out = _(in_words(fraction, in_million).title()) + " " + fraction_currency
|
||||
else:
|
||||
out = main_currency + " " + _(in_words(main, in_million).title())
|
||||
out = _(main_currency, context="Currency") + " " + _(in_words(main, in_million).title())
|
||||
if cint(fraction):
|
||||
out = (
|
||||
out
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue