Skip to content

Commit

Permalink
Missing translation terms in templates (#802)
Browse files Browse the repository at this point in the history
  • Loading branch information
kryskool authored and atodorov committed Feb 17, 2019
1 parent 0092124 commit 494aef6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
10 changes: 4 additions & 6 deletions tcms/templates/plan/get.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@
<input id="id_plan_id" type="hidden" name="plan_id" value="{{ test_plan.plan_id }}">
<div class="control">
<span id="id_buttons" class="button">
<input id="btn_edit" type="button" value="Edit Plan " title="Edit test plan" data-param="{% url 'plan-edit' test_plan.plan_id %}" {% if perms.testplans.change_testplan %}{% else%}disabled{% endif %}>
<input id="btn_clone" type="button" value="Clone Plan" title="Clone this plan to other product" data-params='["{% url "plans-clone" %}", {{ test_plan.plan_id }}]' {% if perms.testplans.add_testplan %}{% else %}disabled{% endif %}>
<input id="btn_print" type="button" value="Print Plan "
title="Print Plan"
data-params='["{% url "plans-printable" %}", {{ test_plan.pk }}]'>
<input id="btn_delete" type="button" value="Delete Plan " title="Delete test plan" data-param="{% url 'admin:testplans_testplan_delete' test_plan.pk %}" {% if perms.testplans.delete_testplan %}{% else %}disabled{% endif %}>
<input id="btn_edit" type="button" value="{% trans "Edit Plan" %}" title="{% trans "Edit test plan" %}" data-param="{% url 'plan-edit' test_plan.plan_id %}" {% if perms.testplans.change_testplan %}{% else%}disabled{% endif %}>
<input id="btn_clone" type="button" value="{% trans "Clone Plan" %}" title="{% trans "Clone this plan to other product" %}" data-params='["{% url "plans-clone" %}", {{ test_plan.plan_id }}]' {% if perms.testplans.add_testplan %}{% else %}disabled{% endif %}>
<input id="btn_print" type="button" value="{% trans "Print Plan" %}" title="{% trans "Print Plan" %}" data-params='["{% url "plans-printable" %}", {{ test_plan.pk }}]'>
<input id="btn_delete" type="button" value="{% trans "Delete Plan" %}" title="{% trans "Delete test plan" %}" data-param="{% url 'admin:testplans_testplan_delete' test_plan.pk %}" {% if perms.testplans.delete_testplan %}{% else %}disabled{% endif %}>
</span>
</div>
<h2 id="display_title" class="{% ifequal test_plan.is_active 0 %}line-through{% endifequal %}">
Expand Down
30 changes: 15 additions & 15 deletions tcms/templates/plan/get_cases.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,38 @@
{% endif %}
<ul>
{% if perms.testcases.add_testcase %}
<li><input id="js-new-case" class="add_new icon_plan" type="button" value="Write new case" data-params='["{% url "testcases-new" %}", {{ test_plan.plan_id }}]'/></li>
<li><input id="js-add-case-to-plan" type="button" class="search icon_plan" value="Add cases from other plans" data-param="{% url "plan-search-cases-for-link" test_plan.plan_id %}" /></li>
<li><input id="js-new-case" class="add_new icon_plan" type="button" value="{% trans "Write new case" %}" data-params='["{% url "testcases-new" %}", {{ test_plan.plan_id }}]'/></li>
<li><input id="js-add-case-to-plan" type="button" class="search icon_plan" value="{% trans "Add cases from other plans" %}" data-param="{% url "plan-search-cases-for-link" test_plan.plan_id %}" /></li>
{% else %}
<li><input type="button" class="add_new icon_plan" disabled value="Write new case"/></li>
<li><input type="button" class="search icon_plan" disabled value="Add cases from other plans" /></li>
<li><input type="button" class="add_new icon_plan" disabled value="{% trans "Write new case" %}"/></li>
<li><input type="button" class="search icon_plan" disabled value="{% trans "Add cases from other plans" %}" /></li>
{% endif %}
<li><input type="button" id="js-print-case" class="print_view icon_plan" value="Print" title="print view of selected cases" data-param="{% url "testcases-printable" %}" /></li>
<li><input type="button" id="js-print-case" class="print_view icon_plan" value="{% trans "Print" %}" title="{% trans "print view of selected cases" %}" data-param="{% url "testcases-printable" %}" /></li>
{% if perms.testcases.add_testcase %}
<li><input type="button" id="js-clone-case" class="clone icon_plan" value="Clone" title="Clone selected cases to another test plan" data-param="{% url "testcases-clone" %}" /></li>
<li><input type="button" id="js-clone-case" class="clone icon_plan" value="{% trans "Clone" %}" title="{% trans "Clone selected cases to another test plan" %}" data-param="{% url "testcases-clone" %}" /></li>
{% else %}
<li><input type="button" class="clone icon_plan" value="Clone" title="Clone selected cases to another test plan" disabled /></li>
<li><input type="button" class="clone icon_plan" value="{% trans "Clone" %}" title="{% trans "Clone selected cases to another test plan" %}" disabled /></li>
{% endif %}
{% if perms.testcases.delete_testcaseplan %}
<li><input type="button" id="js-remove-case" class="delete icon_plan" value="Remove" title="Remove selected cases from this plan" /></li>
<li><input type="button" id="js-remove-case" class="delete icon_plan" value="{% trans "Remove" %}" title="{% trans "Remove selected cases from this plan" %}" /></li>
{% else %}
<li><input type="button" class="delete icon_plan" value="Remove" title="Remove selected cases from this plan" disabled /></li>
<li><input type="button" class="delete icon_plan" value="{% trans "Remove" %}" title="{% trans "Remove selected cases from this plan" %}" disabled /></li>
{% endif %}
</ul>
</li>
{% if REQUEST_CONTENTS.template_type == 'case' and perms.testruns.add_testrun %}
<li>
<span class='sprites toolbar_run{% if not perms.testruns.add_testrun %}_disabled{% endif %} icon_plan'>{% trans "Run" %}</span>
<ul>
<li><input type="button" class="new_run icon_plan" value="Create new TestRun" id="js-new-run" data-param="{% url "testruns-new" %}" /></li>
<li><input type="button" class="new_run icon_plan" value="{% trans "Create new TestRun" %}" id="js-new-run" data-param="{% url "testruns-new" %}" /></li>
</ul>
</li>
{% endif %}
{% if perms.testcases.change_testcase %}
{% if REQUEST_CONTENTS.template_type == 'review_case' %}
<li><input type="button" value="Reviewer" title="Change TestCase reviewer" class="btn_reviewer assignee sprites icon_plan" /></li>
<li><input type="button" value="Reviewer" title="{% trans "Change TestCase reviewer" %}" class="btn_reviewer assignee sprites icon_plan" /></li>
{% else %}
<li><input type="button" value="Default Tester" title="Change default tester" class="btn_default_tester assignee sprites icon_plan" /></li>
<li><input type="button" value="Default Tester" title="{% trans "Change default tester" %}" class="btn_default_tester assignee sprites icon_plan" /></li>
{% endif %}
<li><span class='sprites toolbar_status icon_plan'>{% trans "Status" %}</span>
<ul>
Expand All @@ -66,9 +66,9 @@
{% endif %}
</ul>
<span class="reorder_case">
<a class="btn_filter filtercase" title="Click to show filter options">{% trans "Show filter options" %}</a>
<a class="btn_filter filtercase" title="{% trans "Click to show filter options" %}">{% trans "Show filter options" %}</a>
{% if perms.testcases.change_testcase %}
<a class="btn_sort sortlink" title="Click me,then Drag and drop the rows to adjust the order,and click 'Done Sorting' link to submit your changes">{% trans "Re-order cases" %}</a>
<a class="btn_sort sortlink" title="{% trans "Click me,then Drag and drop the rows to adjust the order,and click 'Done Sorting' link to submit your changes" %}">{% trans "Re-order cases" %}</a>
{% endif %}
</span>
</div>
Expand Down Expand Up @@ -217,7 +217,7 @@
</table>
<div class="ajax_loading" style="display:none"></div>
<div class="cases-pagination show-more-cases">
<a href="javascript:void(0)" class="load-more js-load-more" data-page-index="2" data-criterias="{{ search_criterias }}">Show more</a>
<a href="javascript:void(0)" class="load-more js-load-more" data-page-index="2" data-criterias="{{ search_criterias }}">{% trans "Show more" %}</a>
<span class="js-loading-progress">
(<span class="js-remaining-cases-count" data-cases-count="{{ total_cases_count|default:"0" }}">0</span> {% trans "cases left" %})
</span>
Expand Down
8 changes: 5 additions & 3 deletions tcms/templates/plan/get_treeview.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{% load i18n %}
<div class="mixbar">
<div class="marginLeft fixed">
<input id="js-add-child-node" class="add_node icon_plan left_float" type="button" value="Add child node to current plan {{ test_plan.pk }}" />
<input id="js-remove-child-node" class="remove_node icon_plan left_float" {% if not test_plan.child_set.exists %}disabled{% endif %} type="button" value="Remove child node from current plan {{ test_plan.pk }}" />
<input id="js-add-child-node" class="add_node icon_plan left_float" type="button" value="{% trans "Add child node to current plan" %} {{ test_plan.pk }}" />
<input id="js-remove-child-node" class="remove_node icon_plan left_float" {% if not test_plan.child_set.exists %}disabled{% endif %} type="button"
value="{% trans "Remove child node from current plan" %} {{ test_plan.pk }}" />
</div>
</div>
<div id="id_tree_container" data-param="{{ test_plan.pk }}">
<div class="ajax_loading"></div>
</div>
</div>

0 comments on commit 494aef6

Please sign in to comment.