Skip to content

Commit 47e1ed1

Browse files
mahsemmergify[bot]
authored andcommitted
fix: add docstatus for translation
(cherry picked from commit dda2722)
1 parent 2a17ecd commit 47e1ed1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

erpnext/templates/includes/issue_row.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{% if doc.status == "Open" %}
1919
{{ doc.priority }}
2020
{% else %}
21-
{{ doc.status }}
21+
{{ _(doc.status) }}
2222
{%- endif -%}
2323
</span>
2424
</div>

erpnext/templates/includes/projects/project_row.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</div>
2121
{% else %}
2222
<span class="indicator-pill {{ " red" if doc.status=="Open" else "darkgrey" }}">
23-
{{ doc.status }}</span>
23+
{{ _(doc.status) }}</span>
2424
{% endif %}
2525
</div>
2626
{% if doc["_assign"] %}

erpnext/templates/includes/transaction_row.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</div>
99
</div>
1010
<div class="col-sm-3">
11-
<span class="indicator-pill {{ doc.indicator_color or ("blue" if doc.docstatus==1 else "gray") }} list-item-status">{{doc.status}}</span>
11+
<span class="indicator-pill {{ doc.indicator_color or ("blue" if doc.docstatus==1 else "gray") }} list-item-status">{{ _(doc.status) }}</span>
1212
</div>
1313
<div class="col-sm-2">
1414
<div class="small text-muted items-preview ellipsis ellipsis-width">

erpnext/templates/pages/timelog_info.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h1> {{ doc.name }} </h1>
3838
<input type="text" class="form-control" name="Hours" readonly value= "{{ doc.hours }}">
3939

4040
<label for="status" class="control-label text-muted small">{{ __("Status") }}</label>
41-
<input type="text" class="form-control" name="status" readonly value= "{{ doc.status }}">
41+
<input type="text" class="form-control" name="status" readonly value= "{{ _(doc.status) }}">
4242

4343
<label for="Note" class="control-label text-muted small">{{ __("Note") }}</label>
4444
<textarea class="form-control" name="Hours" readonly> {{ doc.note }} </textarea>

0 commit comments

Comments
 (0)