#27040: {%trans 'String' %} does not translate
-------------------------------+-----------------------
Reporter: pbalazek | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.8
Severity: Normal | Keywords: translate
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+-----------------------
I am using Django 1.8.13. In the project I developed, I also use
translation.
Everything worked fine, until one select box item didn't want to
translate. So I focused on it. When I refreshed the website, the
translation appeared for a second, then the basic string returned. I tried
to rename the translation string, recompiled messages for POEdit, tried
everything from scratch. Nothing worked.
I added the same string to others - working - select boxes and it worked.
Changing the select box id parameter from "base" to any other worked
suddenly.
'''Code that is causing issues:'''
{{{
<div class="medium-3 columns">
<label for="base">{% trans
'Base' %}</label>
<select id="base" name="base">
<option value="">{% trans
'Any' %}</option>
{% for base_id, name in
select_bases %}
<option value="{{
base_id }}">{{ name }}</option>
{% endfor %}
</select>
</div>
}}}
'''Removing "base" from select suddenly works:'''
{{{
<div class="medium-3 columns">
<label for="test12">{% trans
'Base' %}</label>
<select id="test12"
name="test12">
<option value="">{% trans
'Any' %}</option>
{% for base_id, name in
select_bases %}
<option value="{{
base_id }}">{{ name }}</option>
{% endfor %}
</select>
</div>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27040>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.c080f31afe0d91155ca51592a21b3686%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.