Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8581245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:00:04+00:00 2026-06-11T21:00:04+00:00

When I change language on my Django-powered site, everything works fine except the translation

  • 0

When I change language on my Django-powered site, everything works fine except the translation of the field descriptions in the forms. The description is still displayed in the old language. Only the forms already visited that session are affected.

It seems like some sort of caching problem, but I don’t use any caching (as far as I know) and all other parts of the site behave as expected (templates and random text using django.utils.translaction.ugettext work just fine).

Summarized:

  1. When I open the site and change language, and then visit a form: everything works as expected. All text is translated.
  2. When I visit a form, change language and return to the form: everything is translated, but the form stays in the old language.
  3. Restarting the web server forces the language to change: then Django behaves as in (1) for the current session. Until the language is changed again.

Help is appreciated!

Kind regards,
Patrick

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T21:00:05+00:00Added an answer on June 11, 2026 at 9:00 pm

    Fixed it by changing

    from django.utils.translation import ugettext  as _
    

    to

    from django.utils.translation import ugettext_lazy  as _
    

    for my forms.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On a site that I am working on, if users change the language settings
Django internationalization allows me to set a language code either in settings file (site-wide)
Anybody, how can I change language of Disqus widgets? Comment area is fine. Iserted
Here below: My Windows Forms application have functionality to change language, but my problem
I have 3 buttons to change language. So I need to make method, where
To change the language on my website I've been using ressources and this code:
How can I change the language of RpDesignerVCL to spanish, i have a delphi
is it possible to change the language from english to deustch for title send
I'm creating a simple program with the possibility to change the language and I
Can we change the keyboard language in iPhone from English to Japanese programatically?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.