Translate question options in backend and PDFs (Z#23134850) (#3693)

* Translate question options in backend and PDFs

* Extend to invoices
This commit is contained in:
Raphael Michel
2023-11-13 15:48:45 +01:00
committed by GitHub
parent ee70fec7ad
commit 3c46c461c0
4 changed files with 22 additions and 5 deletions

View File

@@ -589,9 +589,9 @@
</a>
{% endif %}
{% elif q.type == "M" %}
{{ q.answer|rich_text_snippet }}
{{ q.answer.to_string_i18n|rich_text_snippet }}
{% else %}
{{ q.answer|linebreaksbr }}
{{ q.answer.to_string_i18n|linebreaksbr }}
{% endif %}
{% else %}
<em>{% trans "not answered" %}</em>