From 2bf14bb29f1c748ced9c0592806b40724e2a9ff2 Mon Sep 17 00:00:00 2001 From: Raffael Meyer <14891507+barredterra@users.noreply.github.com> Date: Tue, 19 Jul 2022 12:08:17 +0200 Subject: [PATCH] fix: translate page numbers (#17492) --- frappe/templates/print_format/print_format.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/templates/print_format/print_format.css b/frappe/templates/print_format/print_format.css index baaf5b087d..a10b218b94 100644 --- a/frappe/templates/print_format/print_format.css +++ b/frappe/templates/print_format/print_format.css @@ -18,7 +18,7 @@ /* page number */ {% set page_number_position = print_format.page_number.lower().replace(' ', '_') %} {% if page_number_position in ['top_left', 'top_center', 'top_right', 'bottom_left', 'bottom_center', 'bottom_right'] %} - {{ render_margin_text(page_number_position, 'counter(page) " of " counter(pages)') }} + {{ render_margin_text(page_number_position, _('{0} of {1}').format('counter(page) "', '" counter(pages)')) }} {% endif %} }