Merge pull request #25521 from ernestoruiz89/patch-4
fix: Make strings translatable
This commit is contained in:
commit
cd9fa61659
@ -16,11 +16,11 @@ frappe.ui.form.on('Salary Structure', {
|
|||||||
onload: function(frm) {
|
onload: function(frm) {
|
||||||
|
|
||||||
let help_button = $(`<a class = 'control-label'>
|
let help_button = $(`<a class = 'control-label'>
|
||||||
Condition and Formula Help
|
${__("Condition and Formula Help")}
|
||||||
</a>`).click(()=>{
|
</a>`).click(()=>{
|
||||||
|
|
||||||
let d = new frappe.ui.Dialog({
|
let d = new frappe.ui.Dialog({
|
||||||
title: 'Condition and Formula Help',
|
title: __('Condition and Formula Help'),
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
fieldname: 'msg_wrapper',
|
fieldname: 'msg_wrapper',
|
||||||
|
@ -131,25 +131,25 @@ def get_report_summary(data):
|
|||||||
{
|
{
|
||||||
"value": avg_completion,
|
"value": avg_completion,
|
||||||
"indicator": "Green" if avg_completion > 50 else "Red",
|
"indicator": "Green" if avg_completion > 50 else "Red",
|
||||||
"label": "Average Completion",
|
"label": _("Average Completion"),
|
||||||
"datatype": "Percent",
|
"datatype": "Percent",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": total,
|
"value": total,
|
||||||
"indicator": "Blue",
|
"indicator": "Blue",
|
||||||
"label": "Total Tasks",
|
"label": _("Total Tasks"),
|
||||||
"datatype": "Int",
|
"datatype": "Int",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": completed,
|
"value": completed,
|
||||||
"indicator": "Green",
|
"indicator": "Green",
|
||||||
"label": "Completed Tasks",
|
"label": _("Completed Tasks"),
|
||||||
"datatype": "Int",
|
"datatype": "Int",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": total_overdue,
|
"value": total_overdue,
|
||||||
"indicator": "Green" if total_overdue == 0 else "Red",
|
"indicator": "Green" if total_overdue == 0 else "Red",
|
||||||
"label": "Overdue Tasks",
|
"label": _("Overdue Tasks"),
|
||||||
"datatype": "Int",
|
"datatype": "Int",
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user