-
Notifications
You must be signed in to change notification settings - Fork 926
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
Language selector on CMS pages is showing too many languages #15037
Comments
cc @alexgibson for awareness |
it's drawn from bedrock/lib/l10n_utils/__init__.py Lines 160 to 161 in 3e8f11b
so it's patched as: bedrock/bedrock/cms/models/base.py Lines 46 to 49 in 3e8f11b
to get the translations from |
yeah, poking around lightly i can see that my local build has other locale versions of the test page i intended to be in en-US only, but saved as draft. So, two things there:
so we might be able to change things like this to skip the drafts, which is an important fix anyway, plus limit it to public (rather than password-protected) pages, too: - ... [x.locale.language_code for x in self.get_translations()]
+ ... [x.locale.language_code for x in self.get_translations().live().public()] |
Ah, I've got it - the other pages are live and public, but they're also auto-generated aliases of the page in question. So I think we need to
|
@alexgibson I'd hold off merging (or at least trying to set up) #14801 till this is done in case we need to replumb anything |
Moving the issues with auto-creation of alias pages to a separate ticket: #15063 |
As we'll see when #14801 lands, there's currently a niggle where a page that intended for just one locale has all the other CMS-supported langages available in the language picker in the footer.
This may be a bug in the integration of the lang picker or it may just be that Wagtail is creating aliases of a the en-US page in all the other available locales and we don't want that.
Need investigation and is a blocker for turning on the CMS-backed leadership page in prod, so P2
The text was updated successfully, but these errors were encountered: