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
In /admin default language is selected to english on resource pages #562
Conversation
Can I just confirm that when you open, for example, |
Hi Yash, Unfortunately this isn't quite what I had in mind with this ticket. When browsing a resource, there is a language selector at the top of the page: It's this selector (which is Sorry that my description on Phabricator wasn't clear enough, I can see how it was ambiguous! |
Hi Sam, |
|
Hi Sam, |
@YashAgrawal9265 This isn't a model field, rather it's a capability added by the I think this is the information you need on how to change the default, but I could be wrong: https://django-modeltranslation.readthedocs.io/en/latest/installation.html?highlight=default#modeltranslation-default-language |
In settings.py the default language is already selected to the en by default. |
Hey Yash - I'm not sure how to proceed with this, it's clearly not something we can change easily in a configuration variable. I'd suggest you work on other tasks because this is a very low priority task for us and we don't have much bandwidth to provide help :) |
Since this task is a low priority and the team is focusing on other work, I am going to close this PR. Once we have more bandwidth to take a look at this, we can re-open this PR (or even create a new one). |
Description
In the admin interface, on resource pages, staff can select the language of fields they want to edit. 90% of the time we want to edit the English versions, so I have added English language as selected in the drop down by default.
Before Change:
After Change:
Rationale
Phabricator Ticket
https://phabricator.wikimedia.org/T240170
How Has This Been Tested?
Screenshots of your changes (if appropriate):
Types of changes
What types of changes does your code introduce? Add an
x
in all the boxes that apply: