From 5604b090c0b2e891a19d1b122ea2e30ff23b543d Mon Sep 17 00:00:00 2001 From: Samuel Danieli <23150094+scdanieli@users.noreply.github.com> Date: Mon, 27 Jun 2022 22:15:23 +0200 Subject: [PATCH] feat: enable further translations --- frappe/public/js/frappe/ui/sort_selector.html | 2 +- frappe/public/js/frappe/ui/sort_selector.js | 2 +- frappe/public/js/frappe/ui/toolbar/toolbar.js | 2 +- frappe/public/js/frappe/utils/dashboard_utils.js | 4 +++- frappe/public/js/frappe/views/kanban/kanban_column.html | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/frappe/public/js/frappe/ui/sort_selector.html b/frappe/public/js/frappe/ui/sort_selector.html index 6f79f986a1..4e1945c46c 100644 --- a/frappe/public/js/frappe/ui/sort_selector.html +++ b/frappe/public/js/frappe/ui/sort_selector.html @@ -2,7 +2,7 @@
`; @@ -24,10 +24,12 @@ frappe.dashboard_utils = { if (filter.fieldnames) { options_html = filter.options.map((option, i) => + // TODO: Make option translatable - be careful, since the text of the a tag is later used to perform some action `
  • ${option}
  • `).join(''); } else { + // TODO: Make option translatable - be careful, since the text of the a tag is later used to perform some action options_html = filter.options.map( option => `
  • ${option}
  • `).join(''); } diff --git a/frappe/public/js/frappe/views/kanban/kanban_column.html b/frappe/public/js/frappe/views/kanban/kanban_column.html index 9c9f1eede0..5e6b6e1e7b 100644 --- a/frappe/public/js/frappe/views/kanban/kanban_column.html +++ b/frappe/public/js/frappe/views/kanban/kanban_column.html @@ -17,7 +17,7 @@
    - + {{ __("Add " + doctype) }} + + {{ __("Add {0}", [__(doctype)]) }}