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

Wagtail 2.11 Multi-language support. #199

Open
MLI-DS opened this issue Nov 4, 2020 · 7 comments
Open

Wagtail 2.11 Multi-language support. #199

MLI-DS opened this issue Nov 4, 2020 · 7 comments

Comments

@MLI-DS
Copy link

MLI-DS commented Nov 4, 2020

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 ?
@Alx101
Copy link

Alx101 commented Nov 18, 2020

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

@enginhu
Copy link

enginhu commented Nov 19, 2020

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

@kaedroho
Copy link
Contributor

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.

@enginhu
Copy link

enginhu commented Nov 19, 2020

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?

@kaedroho
Copy link
Contributor

Setting the LANGUAGE_CODE to 'tr' should do that

@enginhu
Copy link

enginhu commented Nov 19, 2020

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

@jkevingutierrez
Copy link

jkevingutierrez commented Jan 18, 2021

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

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

5 participants