style: Fix translation syntax

This commit is contained in:
Suraj Shetty 2021-01-30 08:17:19 +05:30
parent cae26da129
commit 9365c2dbcc
4 changed files with 5 additions and 7 deletions

View file

@ -107,8 +107,8 @@ frappe.ui.FilterGroup = class {
const filters_applied = this.filters.length > 0;
const button_label = filters_applied
? this.filters.length > 1
? __(`{0} filters`, [this.filters.length])
: __(`{0} filter`, [this.filters.length])
? __("{0} filters", [this.filters.length])
: __("{0} filter", [this.filters.length])
: __('Filter');

View file

@ -420,7 +420,7 @@ frappe.ui.GroupBy = class {
update_group_by_button() {
const group_by_applied = Boolean(this.group_by_field);
const button_label = group_by_applied
? __(`Group By {0}`, [this.get_group_by_field_label()])
? __("Group By {0}", [this.get_group_by_field_label()])
: __('Add Group');
this.group_by_button

View file

@ -643,9 +643,7 @@ export default class ChartWidget extends Widget {
if (!this.chart_doc.last_synced_on) {
return;
}
let last_synced_text = __("Last synced {0}", [
comment_when(this.chart_doc.last_synced_on)
]);
let last_synced_text = __("Last synced {0}", [comment_when(this.chart_doc.last_synced_on)]);
this.subtitle_field.html(last_synced_text);
}

View file

@ -4,7 +4,7 @@
frappe.ui.form.on('About Us Settings', {
refresh: function (frm) {
frm.set_intro(
__(`Link for About Us Page is "/about".`),
__('Link for About Us Page is "/about".'),
);
}
});