Page MenuHomePhabricator

Format budget string
Closed, ResolvedPublic

Description

The budget should be formatted with thousands separator and currency. At minimum this should work for Swedish, i.e. "50000" -> "50 000 kr" (with non-breaking space as separator).

Event Timeline

See https://docs.python.org/3/library/string.html#format-examples for thousands separator. Hopefully it can be used with space as separator. Quick test didn't work.

We could just wrap numbers in the MediaWiki magic word formatnum. It would require us to convert the input to use . as a decimal separator though.

Lokal_Profil claimed this task.