MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / supported_languages

Method supported_languages

service/settings.py:583–586  ·  view source on GitHub ↗

Requires the application to be initialized, otherwise wx.Translation isn't set.

(cls)

Source from the content-addressed store, hash-verified

581
582 @classmethod
583 def supported_languages(cls):
584 """Requires the application to be initialized, otherwise wx.Translation isn't set."""
585 pyfalog.info(f'using "{config.CATALOG}" to fetch languages, relatively base path "{os.getcwd()}"')
586 return {x: wx.Locale.FindLanguageInfo(x) for x in wx.Translations.Get().GetAvailableTranslations(config.CATALOG)}
587
588 def get(self, key):
589 """gets the raw value fo the setting"""

Callers 2

setMethod · 0.95
populatePanelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected