module documentation

Undocumented

Function check_language_settings_consistent Error if language settings are not consistent with each other.
Function check_setting_language_code Error if LANGUAGE_CODE setting is invalid.
Function check_setting_languages Error if LANGUAGES setting is invalid.
Function check_setting_languages_bidi Error if LANGUAGES_BIDI setting is invalid.
Constant E001 Undocumented
Constant E002 Undocumented
Constant E003 Undocumented
Constant E004 Undocumented
@register(Tags.translation)
def check_language_settings_consistent(app_configs, **kwargs): (source)

Error if language settings are not consistent with each other.

@register(Tags.translation)
def check_setting_language_code(app_configs, **kwargs): (source)

Error if LANGUAGE_CODE setting is invalid.

@register(Tags.translation)
def check_setting_languages(app_configs, **kwargs): (source)

Error if LANGUAGES setting is invalid.

@register(Tags.translation)
def check_setting_languages_bidi(app_configs, **kwargs): (source)

Error if LANGUAGES_BIDI setting is invalid.

Undocumented

Value
Error('You have provided an invalid value for the LANGUAGE_CODE setting: {!r}.',
      id='translation.E001')

Undocumented

Value
Error('You have provided an invalid language code in the LANGUAGES setting: {!r}
.',
      id='translation.E002')

Undocumented

Value
Error('You have provided an invalid language code in the LANGUAGES_BIDI setting:
 {!r}.',
      id='translation.E003')

Undocumented

Value
Error('You have provided a value for the LANGUAGE_CODE setting that is not in th
e LANGUAGES setting.',
      id='translation.E004')