Translations
This package contains all views related to machine translations
Translations Management View
- class integreat_cms.cms.views.translations.translations_management_view.TranslationsManagementView(**kwargs)[source]
Bases:
TemplateView
View for showing the machine translations management options
- extra_context = {'current_menu_item': 'translations_management'}[source]
The context dict passed to the template (see
ContextMixin
)
- get(request: HttpRequest, *args: Any, **kwargs: Any) HttpResponse [source]
Render translations management interface
- Parameters:
request (HttpRequest) – The current request
*args (Any) – The supplied arguments
**kwargs (Any) – The supplied keyword arguments
- Returns:
The rendered template response
- Return type:
HttpResponse
- post(request: HttpRequest, *args: Any, **kwargs: Any) HttpResponseRedirect [source]
Submit
TranslationsManagementForm
objects.- Parameters:
request (HttpRequest) – The current request
*args (Any) – The supplied arguments
**kwargs (Any) – The supplied keyword arguments
- Raises:
PermissionDenied – If user does not have the permission to edit the specific page
- Returns:
The rendered template response
- Return type:
HttpResponseRedirect
- template_name = 'translations/translations_management.html'[source]
The template to render (see
TemplateResponseMixin
)