mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Added currency symbol for RUB
This commit is contained in:
parent
8dddfb9c05
commit
bf6f617800
@ -112,7 +112,7 @@ def format_price_in_RUR(price):
|
||||
'''
|
||||
if price and re.match(r"^\d*?\.\d*?$", price):
|
||||
try:
|
||||
price = u'{:,.2F} руб.'.format(float(price))
|
||||
price = u'{:,.2F} \u20BD'.format(float(price)) # \u20BD => руб.
|
||||
price = price.replace(',', ' ').replace('.', ',', 1)
|
||||
except:
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user