fix: Use _ for translation since frappe._ is not supported
This commit is contained in:
parent
a2075477fc
commit
d5b08ca36f
1 changed files with 5 additions and 5 deletions
|
|
@ -2,7 +2,7 @@
|
|||
<h3>{{ _('Top Performer') }} 🏆 </h3>
|
||||
<p> {{ frappe.get_fullname(top_performer.user) }}
|
||||
<span class="text-muted">
|
||||
{{ frappe._('gained {0} points').format(frappe.utils.cint(top_performer.energy_points)) }}
|
||||
{{ _('gained {0} points').format(frappe.utils.cint(top_performer.energy_points)) }}
|
||||
</span>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
<h3>{{ _('Top Reviewer') }} ❤️ </h3>
|
||||
<p> {{ frappe.get_fullname(top_reviewer.user) }}
|
||||
<span class="text-muted">
|
||||
{{ frappe._('gave {0} points').format(frappe.utils.cint(top_reviewer.given_points)) }}
|
||||
{{ _('gave {0} points').format(frappe.utils.cint(top_reviewer.given_points)) }}
|
||||
</span>
|
||||
</p>
|
||||
|
||||
|
|
@ -24,9 +24,9 @@
|
|||
<table class='table table-bordered'>
|
||||
<tr>
|
||||
<th> # </th>
|
||||
<th style='width: 70%'>{{ frappe._('User') }}</th>
|
||||
<th style='width: 15%'>{{ frappe._('Energy Points') }}</th>
|
||||
<th style='width: 15%'>{{ frappe._('Points Given') }}</th>
|
||||
<th style='width: 70%'>{{ _('User') }}</th>
|
||||
<th style='width: 15%'>{{ _('Energy Points') }}</th>
|
||||
<th style='width: 15%'>{{ _('Points Given') }}</th>
|
||||
</tr>
|
||||
{% for user in standings %}
|
||||
<tr>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue