Note that there are some explanatory texts on larger screens.

plurals
  1. PODjango not translating the whole page
    text
    copied!<p>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:</p> <p>I have a page with these fields:</p> <ol> <li>Tag</li> <li>Name</li> <li>Matches Played</li> <li>Created On</li> </ol> <p>The translation would be:</p> <ol> <li>Tag</li> <li>Nome</li> <li>Partidas Jogadas</li> <li>Criado em </li> </ol> <p>Yet, what I get is:</p> <ol> <li>Tag</li> <li>Nome</li> <li>Matches Played</li> <li>Created On</li> </ol> <p>The code is exactly like this:</p> <pre><code>&lt;tr&gt; &lt;th&gt;{% trans 'Tag' %}:&lt;/th&gt; &lt;td&gt;{{ clan.tag }}.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;{% trans 'Name' %}:&lt;/th&gt; &lt;td&gt;{{ clan.name }}.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;{% trans 'Matches Played' %}:&lt;/th&gt; &lt;td&gt;{{ clan.ammountMatchesPlayed }}.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;{% trans 'Created On' %}:&lt;/th&gt; &lt;td&gt;{{ clan.created|date:"d/m/Y" }}.&lt;/td&gt; &lt;/tr&gt; </code></pre> <p>On django.po I have:</p> <pre><code>#: 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" </code></pre> <p>And I have compiled it with django-admin compilemessages.</p> <p>Any idea? How can I debug this? Thanks</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload