wagtail / wagtail-localize

Translation plugin for Wagtail CMS
https://wagtail-localize.org/
Other
222 stars 84 forks source link

Wagtail-localize only syncs to the translated pages, sometimes. #823

Open bonegenetics opened 1 week ago

bonegenetics commented 1 week ago

Hello, I’m using Wagtail localize and having an issue getting the translated pages (in French) to sync to changes in the original language (English). It synced once in the beginning, but after that, I am unable to get the synchronization to go into the French page. Is there a reason why the synchronization won’t work after the initial translation? I noticed the “Translate with Dummy translator” button is greyed out in the destination page, and none of the new text I entered in the English page appears in the destination (French) page, after I save the draft and hit the “sync translated pages” button. It seems the target page did not detect the changes in the original language, even after the "sync translated pages" was pressed. Any idea on how to debug this or what’s happening would be greatly appreciated.I’m not sure if this is normal behavior. Below are relevant sections of my settings (base.py) file: INSTALLED_APPS = [ "home", "search", "blog", "wagtail_localize", "wagtail_localize.locales", MIDDLEWARE = [ "django.contrib.sessions.middleware.SessionMiddleware", "django.middleware.common.CommonMiddleware", "django.middleware.csrf.CsrfViewMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", "django.middleware.security.SecurityMiddleware", "django.middleware.locale.LocaleMiddleware", "wagtail.contrib.redirects.middleware.RedirectMiddleware", ] LANGUAGE_CODE = "en-us" TIME_ZONE = "UTC" USE_I18N = True

pvwagtail: Enable Wagtail i18n

WAGTAIL_I18N_ENABLED = True WAGTAIL_CONTENT_LANGUAGES = LANGUAGES = [ ("en", "English"), ("fr", "French"), ] WAGTAILLOCALIZE_MACHINE_TRANSLATOR = { "CLASS": "wagtail_localize.machine_translators.dummy.DummyTranslator", } I'm a newbie with Wagtail... using Django 5.0.8, Python 3.11.9, Wagtail 6.2.1, Wagtail localize 1.9.1