Skip to content

No way to format percentages including decimals in nl locale #12

@tseaver

Description

@tseaver

In https://bugs.launchpad.net/zope.i18n/+bug/686058, @wichert reported:

In the nl locale percentages are always formatted without decimals:

>>> locale.numbers.getFormatter("percent").format(50.1)
'50%'

For most other things a locale can format you can use a 'long' length to get more information. No such luck here though:

>>> locale.numbers.getFormatter("percent", length="long").format(50.1)
KeyError: ('long',)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions