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

It shows only 20 locales without any pager in Settings/Locales #851

Open
nrsimha opened this issue Feb 6, 2025 · 2 comments
Open

It shows only 20 locales without any pager in Settings/Locales #851

nrsimha opened this issue Feb 6, 2025 · 2 comments

Comments

@nrsimha
Copy link

nrsimha commented Feb 6, 2025

I have enabled 22 locales, but when I am in Settings / Locales page (/admin/locales/) there is shown only 20 locales (and no pager to go to next page).

It should either show all locales at once (not limiting them to 20) or it should show pager to go to next page to see rest of them.

@murray3k
Copy link

Yes the IndexView for Locales has its own template which doesn't work with the pagination of the current wagtail generic templates. Quick fix is to just override this with an empty template.

Create a file like this ẁagtaillocales/index.html in your main templatesdirectory and put just the extends inside:

{% extends "wagtailadmin/generic/index.html" %}

You lose the extra column with translation stats but gain pagination.

We ran into a similar issue maybe I get around to refactor the IndexView with Columns instead of a custom template and submit a pr.

@zerolab
Copy link
Collaborator

zerolab commented Feb 13, 2025

Thanks both, a PR would be most welcome

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

No branches or pull requests

3 participants