Hello guys,
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:
- Tag
- Name
- Matches Played
- Created On
The translation would be:
- Tag
- Nome
- Partidas Jogadas
- Criado em
Yet, what I get is:
- Tag
- Nome
- Matches Played
- 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