fix: translate page numbers (#17492)

This commit is contained in:
Raffael Meyer 2022-07-19 12:08:17 +02:00 committed by GitHub
parent 31ef1c7355
commit 2bf14bb29f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 %}
}