mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-06 06:42:25 +00:00
Improved currency gender handling, now splitting 'dollars' and 'cents' parts on
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user