Languages

Forms for creating and modifying language objects

Language Form

class integreat_cms.cms.forms.languages.language_form.LanguageForm(*args: Any, **kwargs: Any)[source]

Bases: CustomModelForm

Form for creating and modifying language objects

Form fields:

  • slug: Language Slug (SlugField)

  • bcp47_tag: BCP47 Tag (SlugField)

  • english_name: Name in English (CharField)

  • native_name: Native name (CharField)

  • text_direction: Text direction (TypedChoiceField)

  • table_of_contents: “Table of contents” in this language (CharField)

  • primary_country_code: Primary country flag (TypedChoiceField)

  • secondary_country_code: Secondary country flag (TypedChoiceField)

  • message_content_not_available: “This page does not exist in the selected language. It is however available in these languages:” in this language (CharField)

  • message_partial_live_content_not_available: “Part of the page does not exist in the selected language. It is however available in these languages:” in this language (CharField)

Parameters:
  • args (Any) –

  • kwargs (Any) –

__init__(*args: Any, **kwargs: Any) None[source]

Initialize language form

Parameters:
  • *args (Any) – The supplied arguments

  • **kwargs (Any) – The supplied keyword arguments

Return type:

None

property media[source]

Return all media required to render the widgets on this form.