wagtailtrans
wagtailtrans copied to clipboard
Wagtail 2.11 Multi-language support.
Issue summary
Wagtail 2.11 just released, the main feature being multi-language support I'm wondering if/how this will be integrated into wagtailtrans ? I would like to upgrade to 2.11 to get all the other features that came with the release but I do not want to break my website and loose content
My two main questions are :
- is Wagtailtrans compatible with Wagtail 2.11 ?
- Will the new multi-language support be integrated to wagtail-trans ?
At least pip-compile
won't let you upgrade wagtail to 2.11 if you've got wagtailtrans installed too, so I would guess that there isn't any official support
wagtail 2.11 has wagtail.locales module which i need to to explicitly set the default language.
wagtail 2.11 has wagtail.locales module which i need to to explicitly set the default language.
Languages in Wagtail 2.11 are defined in the LANGUAGE
, and the default language is set with the LANGUAGE_CODE
setting.
The locales module is used for setting up and managing locale records in the database based on these languages.
wagtail 2.11 has wagtail.locales module which i need to to explicitly set the default language.
Languages in Wagtail 2.11 are defined in the
LANGUAGE
, and the default language is set with theLANGUAGE_CODE
setting.The locales module is used for setting up and managing locale records in the database based on these languages.
I've got 2 languages in webpage. Turkish and English, turkish is default language but when i try to open the wep page it show english. i want to set the language turkish. whoever visits the site will see the turkish page first. Is there a way to do this?
Setting the LANGUAGE_CODE
to 'tr'
should do that
I already did that. I should have doing something wrong but i don't know what. Can it be because of the of order of middlewares?
LANGUAGE_CODE = 'tr'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
MIDDLEWARE = [
'django.contrib.sessions.middleware.SessionMiddleware',
'wagtailtrans.middleware.TranslationMiddleware',
'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',
'wagtail.contrib.redirects.middleware.RedirectMiddleware',
]
Are there any plans to support Wagtail 2.11? I know that Wagtail 2.11 has now wagtail-localize
But it would be great if Wagtailtrans would add support for Wagtail 2.11 (that could be the ultimate version supported), especially having in mind that 2.11 is an LTS release and it is the first version that introduced wagtail-trans