Exemplo n.º 1
0
def test_application_sets_en_as_default_language_code(mocker):
    mocker.patch("locale.getdefaultlocale", return_value=(None, None))
    language_code = configure_locale_and_language()
    assert language_code == "en"
Exemplo n.º 2
0
def i18n():
    '''
    Set up locale/language/gettext functions. This enables the use of _().
    '''
    configure_locale_and_language()