Просмотр исходного кода

Merge pull request #3170 from rik/re-order-context

Add translation context for "Re-order"
master
Samir Shah 6 лет назад
Родитель
Сommit
4d4d3b8a8e
Аккаунт пользователя с таким Email не найден

+ 2
- 2
src/oscar/templates/oscar/customer/order/order_detail.html Просмотреть файл

@@ -63,7 +63,7 @@
63 63
                                 <form id="line_form_{{ line.id }}" action="{% url 'customer:order-line' order_number=order.number line_id=line.id %}" method="POST">
64 64
                                     {% csrf_token %}
65 65
                                     <input type="hidden" name="action" value="reorder" />
66
-                                    <button id="reorder_line_{{ line.id }}" class="btn btn-success" type="submit" data-loading-text="{% trans 'Re-ordering...' %}">{% trans 'Re-order' %}</button>
66
+                                    <button id="reorder_line_{{ line.id }}" class="btn btn-success" type="submit" data-loading-text="{% trans 'Re-ordering...' context 'Buy again' %}">{% trans 'Re-order' context 'Buy again' %}</button>
67 67
                                 </form>
68 68
                             {% else %}
69 69
                                 {% trans 'Not available anymore' %}
@@ -148,7 +148,7 @@
148 148
             {% csrf_token %}
149 149
             <input type="hidden" name="order_id" value="{{ order.id }}" />
150 150
             <input type="hidden" name="action" value="reorder" />
151
-            <button type="submit" class="btn btn-success" data-loading-text="{% trans 'Re-ordering...' %}">{% trans 'Re-order all items' %}</button>
151
+            <button type="submit" class="btn btn-success" data-loading-text="{% trans 'Re-ordering...' context 'Buy again' %}">{% trans 'Re-order all items' context 'Buy again' %}</button>
152 152
         </form>
153 153
     {% endblock order_actions %}
154 154
 

+ 1
- 1
src/oscar/templates/oscar/dashboard/partials/product_images.html Просмотреть файл

@@ -10,7 +10,7 @@
10 10
                     <li>{{ error }}</li>
11 11
                 </ul>
12 12
             {% endfor %}
13
-            <a href="#" class="btn btn-info btn-handle btn-reorder {% if not form.instance.id %}disabled{% endif %}" {% if not form.instance.id %}disabled{% endif %}><i class="icon-move icon-large"></i> {% trans "Re-order" %}</a><br>
13
+            <a href="#" class="btn btn-info btn-handle btn-reorder {% if not form.instance.id %}disabled{% endif %}" {% if not form.instance.id %}disabled{% endif %}><i class="icon-move icon-large"></i> {% trans "Re-order" context "Change the sequence order" %}</a><br>
14 14
         {% else %}
15 15
             {{ field.label_tag }}
16 16
             {{ field }}

+ 1
- 1
src/oscar/templates/oscar/dashboard/ranges/range_product_list.html Просмотреть файл

@@ -109,7 +109,7 @@
109 109
                                 <td>
110 110
                                     <a class="btn btn-danger" href="#" data-behaviours="remove">{% trans "Remove" %}</a>
111 111
                                     {% if range.is_reorderable %}
112
-                                        <a href="#" class="btn btn-info btn-handle"><i class="icon-move icon-large"></i> {% trans "Re-order" %}</a>
112
+                                        <a href="#" class="btn btn-info btn-handle"><i class="icon-move icon-large"></i> {% trans "Re-order" context "Change the sequence order" %}</a>
113 113
                                     {% endif %}
114 114
                                 </td>
115 115
                             </tr>

Загрузка…
Отмена
Сохранить