Skip to content

Commit

Permalink
feat: add translation context
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra authored and akhilnarang committed Mar 20, 2024
1 parent 5308728 commit 88cfe4b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions frappe/public/js/frappe/views/reports/report_utils.js
Expand Up @@ -169,7 +169,7 @@ frappe.report_utils = {
get_export_dialog(report_name, extra_fields, callback) {
const fields = [
{
label: __("Select File Format"),
label: __("Select File Format", null, "Export report"),
fieldname: "file_format",
fieldtype: "Select",
options: ["Excel", "CSV"],
Expand All @@ -178,21 +178,21 @@ frappe.report_utils = {
},
{
fieldtype: "Data",
label: __("Delimiter"),
label: __("CSV Delimiter", null, "Export report"),
fieldname: "csv_delimiter",
default: ",",
length: 1,
depends_on: "eval:doc.file_format=='CSV'",
},
{
fieldtype: "Select",
label: __("Quoting"),
label: __("CSV Quoting", null, "Export report"),
fieldname: "csv_quoting",
options: [
{ value: 0, label: "Minimal" },
{ value: 1, label: "All" },
{ value: 2, label: "Non-numeric" },
{ value: 3, label: "None" },
{ value: 0, label: __("Minimal", null, "Export report") },
{ value: 1, label: __("All", null, "Export report") },
{ value: 2, label: __("Non-numeric", null, "Export report") },
{ value: 3, label: __("None", null, "Export report") },
],
default: 2,
depends_on: "eval:doc.file_format=='CSV'",
Expand All @@ -203,9 +203,9 @@ frappe.report_utils = {
}

return new frappe.ui.Dialog({
title: __("Export Report: {0}", [report_name]),
title: __("Export Report: {0}", [report_name], "Export report"),
fields: fields,
primary_action_label: __("Download"),
primary_action_label: __("Download", null, "Export report"),
primary_action: callback,
});
},
Expand Down

0 comments on commit 88cfe4b

Please sign in to comment.