嘉渊
2023-04-24 5358dbc8df26f51c610aa69cd2ed0da2e4be1f28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# -*- coding: utf-8 -*-
 
from __future__ import unicode_literals
 
from .lang_FR import Num2Word_FR
 
 
class Num2Word_FR_DZ(Num2Word_FR):
    CURRENCY_FORMS = {
        'DIN': (('dinard', 'dinards'), ('centime', 'centimes')),
    }
 
    def to_currency(self, val, currency='DIN', cents=True, separator=' et',
                    adjective=False):
        result = super(Num2Word_FR, self).to_currency(
            val, currency=currency, cents=cents, separator=separator,
            adjective=adjective)
        return result