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 698519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:17:03+00:00 2026-05-14T03:17:03+00:00

I’m using the i18n feature of Django. I have noticed that even though I

  • 0

I’m using the i18n feature of Django. I have noticed that even though I have translated everything on django.po and compiled it to django.mo, some parts of my website are always appearing in english instead of the selected language (portuguese). For example:

I have a page with these fields:

  1. Tag
  2. Name
  3. Matches Played
  4. Created On

The translation would be:

  1. Tag
  2. Nome
  3. Partidas Jogadas
  4. Criado em

Yet, what I get is:

  1. Tag
  2. Nome
  3. Matches Played
  4. Created On

The code is exactly like this:

<tr>
 <th>{% trans 'Tag' %}:</th>
 <td>{{ clan.tag }}.</td>
</tr>
<tr>
 <th>{% trans 'Name' %}:</th>
 <td>{{ clan.name }}.</td>
</tr>
<tr>
 <th>{% trans 'Matches Played' %}:</th>
 <td>{{ clan.ammountMatchesPlayed }}.</td>
</tr>
<tr>
 <th>{% trans 'Created On' %}:</th>
 <td>{{ clan.created|date:"d/m/Y" }}.</td>
</tr>

On django.po I have:

#: templates/clans/detail.html:45
msgid "Tag"
msgstr "Tag"

#: templates/clans/detail.html:49
msgid "Name"
msgstr "Nome"

#: templates/accounts/detail.html:111
msgid "Matches Played"
msgstr "Partidas Jogadas"

#: templates/accounts/detail.html:115 templates/clans/detail.html:53
msgid "Created On"
msgstr "Criado Em"

And I have compiled it with django-admin compilemessages.

Any idea? How can I debug this?
Thanks

  • 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-05-14T03:17:03+00:00Added an answer on May 14, 2026 at 3:17 am

    I suspect your translations are not being read. I had a similar problem and the reason why some appear and some dont is that the ones that appear are coming from the translations for django itself.

    Where are your translations located? do you have a locale directory in your project or in each installed application? Does your project have a settings.py file? Are you loading the {% load i18n %} templatetags so that you can use trans?

    Give me more details and maybe I can help you with that 🙂

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I have a small JavaScript validation script that validates inputs based on Regex. I
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have thousands of HTML files to process using Groovy/Java and I need to
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I am using JSon response to parse title,date content and thumbnail images and place
I'm new to using the Perl treebuilder module for HTML parsing and can't figure

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.