MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / getTranslationLanguage

Function getTranslationLanguage

src/l10n.py:113–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111 return timestring
112
113def getTranslationLanguage():
114 userlocale = None
115 if BMConfigParser().has_option('bitmessagesettings', 'userlocale'):
116 userlocale = BMConfigParser().get('bitmessagesettings', 'userlocale')
117
118 if userlocale in [None, '', 'system']:
119 return language
120
121 return userlocale
122
123def getWindowsLocale(posixLocale):
124 if posixLocale in windowsLanguageMap:

Callers 1

createSupportMessageFunction · 0.90

Calls 2

BMConfigParserClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected