pybitmessage.l10n module

Localization helpers

setlocale(newlocale)[source]

Set the locale

formatTimestamp(timestamp=None)[source]

Return a formatted timestamp

getTranslationLanguage()[source]

Return the user’s language choice

getWindowsLocale(posixLocale)[source]

Get the Windows locale Technically this converts the locale string from UNIX to Windows format, because they use different ones in their libraries. E.g. “en_EN.UTF-8” to “english”.