style: Fix translation syntax
This commit is contained in:
parent
cae26da129
commit
9365c2dbcc
4 changed files with 5 additions and 7 deletions
|
|
@ -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');
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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".'),
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue