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

  • SEARCH
  • Home
  • 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 8008069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:01:39+00:00 2026-06-04T18:01:39+00:00

I have inherited a Django project that needs i18n. I have done all the

  • 0

I have inherited a Django project that needs i18n. I have done all the usual actions required for i18n that I usually do in other projects and that usually work. But on this one it was not working, it’s Django 1.3 so I went to the docs on i18n and followed all the steps and yet it’s not working.

I don’t know what could have gone wrong, since I did not set up all the project myself I don’t know which part of it could break i18n.

In base.html I added the typical language select from the docs + the LANGUAGE_CODE tag to get some feedback:

<form action="/i18n/setlang/" method="post">
{% csrf_token %}
<input name="next" type="hidden" value="{{ redirect_to }}" />
<select name="language">
{% get_language_info_list for LANGUAGES as languages %}
{% for language in languages %}
<option value="{{ language.code }}">{{ language.name_local }} ({{ language.code }})</option>
{% endfor %}
</select>
Lang:{{ LANGUAGE_CODE }}
<input type="submit" value="Go" />
</form>

Whatever I do, the LANGUAGE_CODE always returns the default en-us or whatever I set in settings.

In which order should I check things? Where to start, what to change?

  • 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-04T18:01:42+00:00Added an answer on June 4, 2026 at 6:01 pm

    According to the docs, LANGUAGE_CODE is set to the installation language code. Are you sure you’ve changed it from en-us in your settings file?

    Have you tried printing the language code out at the end of your settings file and then running in a non-deamon mode so you can see it’s output? Personally, I use multi-part configuration files and have previously had issues where latter settings files have altered something I expected to work further down the line. Is that a possibility?

    If it looks right at the end of the settings file then it’s probably not being fed through to the template properly. You could try pushing it through yourself like this to be sure.

    One other thing to check; are you sure it’s not settings.LANGUAGE_CODE you need? I can’t remember whether that’s just in the model off the top of my head.

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

Sidebar

Related Questions

I'm using Django 1.1, and I have this template, a base template, that all
I wrote a certain function that I'd like all my Django models to have.
I have inherited a large Django application and it features this idiom in the
In Django, when you have a parent class and multiple child classes that inherit
We have inherited an application (Java-based, running on WebLogic 10.3.5) that makes extensive use
We have inherited a vb.net 2003 web project, it seems to reference another web
I have inherited a somewhat messy query that I am working on refactoring to
In my django project I have 2 variations of users. One subclasses User class
I am a django newbie and in creating my first project I have come
I have an AppEngine app that I'm migrating to run in Django, using app-engine-patch

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.