mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +00:00
Fix translate support_analytics.js
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
wn.pages['support-analytics'].onload = function(wrapper) {
|
wn.pages['support-analytics'].onload = function(wrapper) {
|
||||||
wn.ui.make_app_page({
|
wn.ui.make_app_page({
|
||||||
parent: wrapper,
|
parent: wrapper,
|
||||||
title: 'Support Analytics',
|
title: wn._('Support Analytics'),
|
||||||
single_column: true
|
single_column: true
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ wn.pages['support-analytics'].onload = function(wrapper) {
|
|||||||
erpnext.SupportAnalytics = wn.views.GridReportWithPlot.extend({
|
erpnext.SupportAnalytics = wn.views.GridReportWithPlot.extend({
|
||||||
init: function(wrapper) {
|
init: function(wrapper) {
|
||||||
this._super({
|
this._super({
|
||||||
title: "Support Analtyics",
|
title: wn._("Support Analtyics"),
|
||||||
page: wrapper,
|
page: wrapper,
|
||||||
parent: $(wrapper).find('.layout-main'),
|
parent: $(wrapper).find('.layout-main'),
|
||||||
appframe: wrapper.appframe,
|
appframe: wrapper.appframe,
|
||||||
@@ -27,22 +27,22 @@ erpnext.SupportAnalytics = wn.views.GridReportWithPlot.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
filters: [
|
filters: [
|
||||||
{fieldtype:"Select", label: "Fiscal Year", link:"Fiscal Year",
|
{fieldtype:"Select", label: wn._("Fiscal Year"), link:"Fiscal Year",
|
||||||
default_value: "Select Fiscal Year..."},
|
default_value: "Select Fiscal Year..."},
|
||||||
{fieldtype:"Date", label: "From Date"},
|
{fieldtype:"Date", label: wn._("From Date")},
|
||||||
{fieldtype:"Label", label: "To"},
|
{fieldtype:"Label", label: wn._("To")},
|
||||||
{fieldtype:"Date", label: "To Date"},
|
{fieldtype:"Date", label: wn._("To Date")},
|
||||||
{fieldtype:"Select", label: "Range",
|
{fieldtype:"Select", label: wn._("Range"),
|
||||||
options:["Daily", "Weekly", "Monthly", "Quarterly", "Yearly"]},
|
options:["Daily", "Weekly", "Monthly", "Quarterly", "Yearly"]},
|
||||||
{fieldtype:"Button", label: "Refresh", icon:"icon-refresh icon-white", cssClass:"btn-info"},
|
{fieldtype:"Button", label: wn._("Refresh"), icon:"icon-refresh icon-white", cssClass:"btn-info"},
|
||||||
{fieldtype:"Button", label: "Reset Filters"}
|
{fieldtype:"Button", label: wn._("Reset Filters")}
|
||||||
],
|
],
|
||||||
|
|
||||||
setup_columns: function() {
|
setup_columns: function() {
|
||||||
var std_columns = [
|
var std_columns = [
|
||||||
{id: "check", name: "Plot", field: "check", width: 30,
|
{id: "check", name: wn._("Plot"), field: "check", width: 30,
|
||||||
formatter: this.check_formatter},
|
formatter: this.check_formatter},
|
||||||
{id: "status", name: "Status", field: "status", width: 100},
|
{id: "status", name: wn._("Status"), field: "status", width: 100},
|
||||||
];
|
];
|
||||||
this.make_date_range_columns();
|
this.make_date_range_columns();
|
||||||
this.columns = std_columns.concat(this.columns);
|
this.columns = std_columns.concat(this.columns);
|
||||||
|
|||||||
Reference in New Issue
Block a user