Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Honor MODELTRANSLATION_LANGUAGES in admin #335

Open
olivierdalang opened this issue Mar 16, 2021 · 0 comments
Open

Honor MODELTRANSLATION_LANGUAGES in admin #335

olivierdalang opened this issue Mar 16, 2021 · 0 comments

Comments

@olivierdalang
Copy link
Contributor

Hi !

It is currently not possible to have a language disabled for users, but still displayed in the admin. This however can be useful if you add a new translation to a site, and want editors to translate it before actually enabling it for visitors.

Example settings

LANGUAGES = [
    ("fr", _("French")),
    # ("en", _("English")),  # english translation not ready yet
]
MODELTRANSLATION_LANGUAGES = ["fr", "en"]

From a django-modeltranslation perspective, it looks like it works as expected (/enURL do not exist, but the *_en model fields are properly created). In wagtail-admin however, the *_en fields are displayed as regular field and can't be toggled like normal translations.

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants