Improved currency gender handling, now splitting 'dollars' and 'cents' parts on

This commit is contained in:
gonzy
2022-03-24 00:37:53 +01:00
committed by Marlon Rodriguez Garcia
parent 72f1f88c2c
commit ef69a13084

View File

@@ -367,7 +367,7 @@ class Num2Word_ES(Num2Word_EU):
# Source: https://www.rae.es/dpd/una (section 2.2) # Source: https://www.rae.es/dpd/una (section 2.2)
# split "dollars" part from "cents" part # split "dollars" part from "cents" part
list_result = result.split(" con ") list_result = result.split(separator + " ")
# "DOLLARS" PART (list_result[0]) # "DOLLARS" PART (list_result[0])
@@ -403,6 +403,6 @@ class Num2Word_ES(Num2Word_EU):
list_result[1] = list_result[1].replace("uno", "un") list_result[1] = list_result[1].replace("uno", "un")
# join back "dollars" part with "cents" part # join back "dollars" part with "cents" part
result = " con ".join(list_result) result = (separator + " ").join(list_result)
return result return result