Ticket #10959: 10959-drop-usage-of-Go-in-changelist-buttons.diff

File 10959-drop-usage-of-Go-in-changelist-buttons.diff, 1.7 KB (added by ramiro, 6 years ago)

Patch that changes litrals to 'Search' and 'Execute' respectively

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

    diff -r b2cc18e06b6f django/contrib/admin/templates/admin/actions.html
    a b  
    11{% load i18n %}
    22<div class="actions">
    33    {% for field in action_form %}<label>{{ field.label }} {{ field }}</label>{% endfor %}
    4     <button type="submit" class="button" title="{% trans "Run the selected action" %}" name="index" value="{{ action_index|default:0 }}">{% trans "Go" %}</button>
     4    <button type="submit" class="button" title="{% trans "Run the selected action" %}" name="index" value="{{ action_index|default:0 }}">{% trans "Execute" %}</button>
    55</div>
  • django/contrib/admin/templates/admin/search_form.html

    diff -r b2cc18e06b6f django/contrib/admin/templates/admin/search_form.html
    a b  
    55<div><!-- DIV needed for valid HTML -->
    66<label for="searchbar"><img src="{% admin_media_prefix %}img/admin/icon_searchbox.png" alt="Search" /></label>
    77<input type="text" size="40" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" />
    8 <input type="submit" value="{% trans 'Go' %}" />
     8<input type="submit" value="{% trans 'Search' %}" />
    99{% if show_result_count %}
    1010    <span class="small quiet">{% blocktrans count cl.result_count as counter %}1 result{% plural %}{{ counter }} results{% endblocktrans %} (<a href="?{% if cl.is_popup %}pop=1{% endif %}">{% blocktrans with cl.full_result_count as full_result_count %}{{ full_result_count }} total{% endblocktrans %}</a>)</span>
    1111{% endif %}
Back to Top