Opened 8 years ago

Closed 8 years ago

#28191 closed Bug (duplicate)

'or' is translated in "Invalid block tag" exception message

Reported by: Ondřej Krsička Owned by: nobody
Component: Template system Version: 1.9
Severity: Normal Keywords: translation
Cc: mpavlase@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes

Description

version of Python: 2.7.12

'elif', 'else' oder 'endif'

Template error:
In template /home/krsion/Plocha/rtd/rtd/readthedocs.org/readthedocs/donate/templates/donate/create.html, error at line 50
   Invalid block tag on line 50: 'continue', expected 'elif', 'else' oder 'endif'. Did you forget to register or load this tag?   40 :     payment is processed directly through <a href="https://stripe.com">Stripe</a>.
   41 :   </p>
   42 : 
   43 :   <form action="" method="post" id="donate-payment" class="payment">
   44 :     {% csrf_token %}
   45 : 
   46 :     {{ form.non_field_errors }}
   47 : 
   48 :     {% for field in form.fields_with_cc_group %}
   49 :       {% if field.name == 'dollars_select' %}
   50 :          {% continue %} 
   51 :       {% endif %}
   52 :       {% if field.is_cc_group %}
   53 :         <div class="subscription-card">
   54 :           {% for groupfield in field.fields %}
   55 :             {% include 'core/ko_form_field.html' with field=groupfield %}
   56 :           {% endfor %}
   57 :         </div>
   58 :       {% elif field.name == 'logo_url' or field.name == 'site_url' %}
   59 :         <div data-bind="visible: urls_enabled">
   60 :           {% include 'core/ko_form_field.html' with field=field %}

Change History (1)

comment:1 by Tim Graham, 8 years ago

Component: InternationalizationTemplate system
Resolution: duplicate
Status: newclosed
Summary: 'oder' instead of 'or' in exception message'or' is translated in "Invalid block tag" exception message

Looks like a duplicate of #26403, fixed in Django 1.10.

Note: See TracTickets for help on using tickets.
Back to Top