wagtail / wagtail

A Django content management system focused on flexibility and user experience

Home Page:https://wagtail.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to translate site specific & generic Settings

lb- opened this issue · comments

Is your proposal related to a problem?

There are regular requests in Slack and within the community for the ability to translate settings.

Often these models are used for shared site facing content such as footers and headers, without the ability to translate these models it makes it harder for developers and content editors.

Describe the solution you'd like

Abstract Settings models should have the ability to support translations if translations are enabled in Wagtail. Alternatively, this may be an opt in feature if using the translatable mixins.

When enabled, the translation UI should be shown throughout the editing interface for settings and listings.

Describe alternatives you've considered

Developers can find other ways around this such as having Snippets that are translated and linked (relation) to the Settings.

Additional context

This solution has been attempted multiple times in various PRs with it being stalled or just getting behind the latest main branch and needing a lot of work to rebase.

The PRs, especially the last one, has a lot of useful feedback to help anyone wanting to pick up and continue with this.

Working on this

  • Confidence with how translations work in Wagtail is a must to pick this up.
  • As this is a complex feature, it will need to go through a few rounds of reviews, have full backwards compatibility and be fully documented.
  • Anyone willing to take up the challenge can contribute, this may also be a suitable scale of work to be sponsored if an organisation wants to do that.
  • View our contributing guidelines, add a comment to the issue once you’re ready to start.

I would like to work on it.

Go for it @riddhisharma-sudo - be sure to review the previous PRs and their feedback and have a reasonable knowledge of how Wagtail's translation system works.

@riddhisharma-sudo are you still working on it or should I pick this up?

@salty-ivy no you can go ahead!

@lb- I am picking this up