Forum Archive

Locale.error: unsupported Locale setting

baschni

Hallo!

I would like to output German day names in a strftime-Statement, but it fails with the error: „unsupported Locale Setting“


        locale.setlocale(locale.LC_TIME,"de")
        self.menu.buttons["contentDate"].title = time.strftime("%d.%m.%y\n %a %H:%M")

Is there anyway to work around this?

Kind regards

cvp

@baschni try 'de_DE'

ccc

https://github.com/omz/Pythonista-Issues/issues/27