shellbot.i18n module

class shellbot.i18n.Localization(context=None)[source]

Bases: object

Changes static strings used by shellbot

Throughout the full shellbot code the function _() is used for both internationalization and for localization.

credit: https://www.w3.org/International/questions/qa-i18n

set_context(context)[source]

Use context settings for program localization

Parameters:context – the settings of this engine

This function also resets previous localizations