diff --git a/frappe/geo/country_info.json b/frappe/geo/country_info.json index 7a1a4fa3b2..3ea2815d74 100644 --- a/frappe/geo/country_info.json +++ b/frappe/geo/country_info.json @@ -27,7 +27,7 @@ "Algeria": { "code": "dz", "currency": "DZD", - "currency_fraction": "Santeem", + "currency_fraction": "Centime", "currency_fraction_units": 100, "currency_name": "Algerian Dinar", "currency_symbol": "\u062f.\u062c", diff --git a/frappe/utils/data.py b/frappe/utils/data.py index 4648d361aa..d3150b1d6b 100644 --- a/frappe/utils/data.py +++ b/frappe/utils/data.py @@ -1558,10 +1558,16 @@ def money_in_words( elif main == "0": out = f"{fraction_in_words()} {fraction_currency}" else: - out = _(main_currency, context="Currency") + " " + in_words(main, in_million).title() + if main_currency == "DZD": + # Use Dinars for Algerian Compliance + out = in_words(main, in_million).title() + " " + _("Dinars", context="Currency") + else: + out = _(main_currency, context="Currency") + " " + in_words(main, in_million).title() if cint(fraction): out = out + " " + _("and") + " " + fraction_in_words() + " " + fraction_currency + if main_currency == "DZD": + return _("{0}.", context="Money in words").format(out) return _("{0} only.", context="Money in words").format(out)