fix: Make strings translatable

Make strings translatable
This commit is contained in:
Ernesto Ruiz 2021-04-21 09:04:06 -06:00 committed by GitHub
parent 66250351d2
commit 090177494d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",
} }
] ]