Code

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, 5 years ago)

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

Line 
1diff -r b2cc18e06b6f django/contrib/admin/templates/admin/actions.html
2--- a/django/contrib/admin/templates/admin/actions.html Tue Apr 28 11:17:18 2009 -0300
3+++ b/django/contrib/admin/templates/admin/actions.html Wed Apr 29 10:50:49 2009 -0300
4@@ -1,5 +1,5 @@
5 {% load i18n %}
6 <div class="actions">
7     {% for field in action_form %}<label>{{ field.label }} {{ field }}</label>{% endfor %}
8-    <button type="submit" class="button" title="{% trans "Run the selected action" %}" name="index" value="{{ action_index|default:0 }}">{% trans "Go" %}</button>
9+    <button type="submit" class="button" title="{% trans "Run the selected action" %}" name="index" value="{{ action_index|default:0 }}">{% trans "Execute" %}</button>
10 </div>
11diff -r b2cc18e06b6f django/contrib/admin/templates/admin/search_form.html
12--- a/django/contrib/admin/templates/admin/search_form.html     Tue Apr 28 11:17:18 2009 -0300
13+++ b/django/contrib/admin/templates/admin/search_form.html     Wed Apr 29 10:50:49 2009 -0300
14@@ -5,7 +5,7 @@
15 <div><!-- DIV needed for valid HTML -->
16 <label for="searchbar"><img src="{% admin_media_prefix %}img/admin/icon_searchbox.png" alt="Search" /></label>
17 <input type="text" size="40" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" />
18-<input type="submit" value="{% trans 'Go' %}" />
19+<input type="submit" value="{% trans 'Search' %}" />
20 {% if show_result_count %}
21     <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>
22 {% endif %}