In Mac OS X 10.4 up to 10.15 the German locales (de_DE*, de_CH* and de_AT*) are missing a thousands separator. This can be shown using Python:
>>> import locale >>> locale.setlocale(locale.LC_ALL, 'de_DE') >>> locale.format_string("%.2f", 1234.34, grouping=True) '1234,34'
When using Python, the MacOS installation does not need to be altered as described in Add missing thousands separator to German locale on Mac OS X. It is enough to change the locale configuration during runtime like the following:
import locale locale.setlocale(locale.LC_ALL, 'de_DE') locale._override_localeconv["thousands_sep"] = "." locale._override_localeconv["grouping"] = [3, 3, 0]
This leads to:
>>> locale.format_string("%.2f", 1234.34, grouping=True) '1.234,34'
Tested in Python 3.7 and 3.8.
Idea taken from Stack Overflow.
Pingback: Add missing thousands separator to German locale on Mac OS X | icemac