Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Return the name used by the locale for the specified currency.

>>> get_currency_name('USD', locale='en_US')
u'US Dollar'

.. versionadded:: 0.9.4

:param currency: the currency code
:param count: the optional count.  If provided the currency name
              will be pluralized to that number if possible.(more...)

        def get_currency_name(currency, count=None, locale=LC_NUMERIC):
    """Return the name used by the locale for the specified currency.

    >>> get_currency_name('USD', locale='en_US')
    u'US Dollar'
    
    .. versionadded:: 0.9.4

    :param currency: the currency code
    :param count: the optional count.  If provided the currency name
                  will be pluralized to that number if possible.
    :param locale: the `Locale` object or locale identifier
    """
    loc = Locale.parse(locale)
    if count is not None:
        plural_form = loc.plural_form(count)
        plural_names = loc._data['currency_names_plural']
        if currency in plural_names:
            return plural_names[currency][plural_form]
    return loc.currencies.get(currency, currency)
        


src/n/a/nagare-0.4.1/nagare/i18n.py   nagare(Download)
          - the currency name
        """
        return numbers.get_currency_name(currency, self)
 
    def get_currency_symbol(self, currency):

src/f/j/fjord-HEAD/vendor/packages/Babel/tests/test_numbers.py   fjord(Download)
def test_get_currency_name():
    assert numbers.get_currency_name('USD', 'en_US') == u'US dollars'
 
 
def test_get_currency_symbol():

src/z/e/ZenPacks.zenoss.OpenStack-HEAD/src/Babel-1.3/tests/test_numbers.py   ZenPacks.zenoss.OpenStack(Download)
def test_get_currency_name():
    assert numbers.get_currency_name('USD', 'en_US') == u'US dollars'
 
 
def test_get_currency_symbol():

src/b/a/Babel-1.3/tests/test_numbers.py   Babel(Download)
def test_get_currency_name():
    assert numbers.get_currency_name('USD', 'en_US') == u'US dollars'
 
 
def test_get_currency_symbol():