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

RESTAPI @controlpanel/language doesn't update language folders #1549

Open
me-kell opened this issue Dec 6, 2022 · 0 comments
Open

RESTAPI @controlpanel/language doesn't update language folders #1549

me-kell opened this issue Dec 6, 2022 · 0 comments

Comments

@me-kell
Copy link

me-kell commented Dec 6, 2022

RESTAPI @controlpanel/language doesn't call plone.app.multilingual.browser.setup.SetupMultilingualSite.setupSite when updating data.
When available languages are changed via RESTAPI the language folders remain unchanged. Old folders are not removed. No new folders created.
According to the documentation this method "needs to be executed every time a new language is added to the Available Languages":

    def setupSite(self, context, forceOneLanguage=False):
        """This method is called from the control panel to setup a site in
        order to have root language folders and a redirect view. It needs to be
        executed every time a new language is added to the Available Languages.
        """
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

1 participant