wagtailtrans icon indicating copy to clipboard operation
wagtailtrans copied to clipboard

Wagtail 2.11 Multi-language support.

Open ghost opened this issue 4 years ago • 7 comments

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 ?

ghost avatar Nov 04 '20 16:11 ghost

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

Alx101 avatar Nov 18 '20 15:11 Alx101

wagtail 2.11 has wagtail.locales module which i need to to explicitly set the default language.

enginhu avatar Nov 19 '20 10:11 enginhu

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.

kaedroho avatar Nov 19 '20 13:11 kaedroho

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.

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?

enginhu avatar Nov 19 '20 13:11 enginhu

Setting the LANGUAGE_CODE to 'tr' should do that

kaedroho avatar Nov 19 '20 14:11 kaedroho

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',
]

enginhu avatar Nov 19 '20 15:11 enginhu

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

jkevingutierrez avatar Jan 18 '21 18:01 jkevingutierrez