Ticket #2381: accesskey.2.diff

File accesskey.2.diff, 2.7 KB (added by mattrixbox-bugreport@…, 18 years ago)

Internationalize colon - I forgot that some languages use it differently

  • django/contrib/admin/templates/admin/change_list.html

     
    88{% block content %}
    99<div id="content-main">
    1010{% if has_add_permission %}
    11 <ul class="object-tools"><li><a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink">{% blocktrans with cl.opts.verbose_name|escape as name %}Add {{ name }}{% endblocktrans %}</a></li></ul>
     11<ul class="object-tools"><li><a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink" accesskey="a" title="{% trans 'Accesskey:' %} a">{% blocktrans with cl.opts.verbose_name|escape as name %}Add {{ name }}{% endblocktrans %}</a></li></ul>
    1212{% endif %}
    1313<div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
    1414{% block search %}{% search_form cl %}{% endblock %}
  • django/contrib/admin/templates/admin/submit_line.html

     
    11{% load i18n %}
    22<div class="submit-row">
    33{% if show_delete_link %}<p class="float-left"><a href="delete/" class="deletelink">{% trans "Delete" %}</a></p>{% endif %}
    4 {% if show_save_as_new %}<input type="submit" value="{% trans 'Save as new' %}" name="_saveasnew" {{ onclick_attrib }}/>{%endif%}
    5 {% if show_save_and_add_another %}<input type="submit" value="{% trans 'Save and add another' %}" name="_addanother" {{ onclick_attrib }} />{% endif %}
    6 {% if show_save_and_continue %}<input type="submit" value="{% trans 'Save and continue editing' %}" name="_continue" {{ onclick_attrib }}/>{% endif %}
    7 {% if show_save %}<input type="submit" value="{% trans 'Save' %}" class="default" {{ onclick_attrib }}/>{% endif %}
     4{% if show_save_as_new %}<input type="submit" value="{% trans 'Save as new' %}" name="_saveasnew" accesskey="s" title="{%trans 'Accesskey:' %} s" {{ onclick_attrib }} />{%endif%}
     5{% if show_save_and_add_another %}<input type="submit" value="{% trans 'Save and add another' %}" name="_addanother" accesskey="a" title="{% trans 'Accesskey:' %} a" {{ onclick_attrib }} />{% endif %}
     6{% if show_save_and_continue %}<input type="submit" value="{% trans 'Save and continue editing' %}" name="_continue" accesskey="c" title="{% trans 'Accesskey:' %} c" {{ onclick_attrib }} />{% endif %}
     7{% if show_save %}<input type="submit" value="{% trans 'Save' %}" class="default" accesskey="s" title="{%trans 'Accesskey:' %} s" {{ onclick_attrib }} />{% endif %}
    88</div>
Back to Top