Skip to content

Commit

Permalink
fix: add docstatus for translation
Browse files Browse the repository at this point in the history
(cherry picked from commit dda2722)
  • Loading branch information
mahsem authored and mergify[bot] committed Dec 9, 2024
1 parent ebc8bed commit 0a4090a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion erpnext/templates/includes/issue_row.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{% if doc.status == "Open" %}
{{ doc.priority }}
{% else %}
{{ doc.status }}
{{ _(doc.status) }}
{%- endif -%}
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion erpnext/templates/includes/projects/project_row.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</div>
{% else %}
<span class="indicator-pill {{ " red" if doc.status=="Open" else "darkgrey" }}">
{{ doc.status }}</span>
{{ _(doc.status) }}</span>
{% endif %}
</div>
{% if doc["_assign"] %}
Expand Down
2 changes: 1 addition & 1 deletion erpnext/templates/includes/transaction_row.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</div>
</div>
<div class="col-sm-3">
<span class="indicator-pill {{ doc.indicator_color or ("blue" if doc.docstatus==1 else "gray") }} list-item-status">{{doc.status}}</span>
<span class="indicator-pill {{ doc.indicator_color or ("blue" if doc.docstatus==1 else "gray") }} list-item-status">{{ _(doc.status) }}</span>
</div>
<div class="col-sm-2">
<div class="small text-muted items-preview ellipsis ellipsis-width">
Expand Down
2 changes: 1 addition & 1 deletion erpnext/templates/pages/timelog_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h1> {{ doc.name }} </h1>
<input type="text" class="form-control" name="Hours" readonly value= "{{ doc.hours }}">

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

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

0 comments on commit 0a4090a

Please sign in to comment.