S
S
Sergey Ganzhela2019-09-26 12:54:02
Django
Sergey Ganzhela, 2019-09-26 12:54:02

How to apply tag trans in template filter?

Good afternoon!
The template uses a built-in filter

{{ previous.previous_outcome|yesno:"Замечательно - тест пройден успешно!, Вы неверно ответили на вопрос - пройдите тест ещё раз." }}

Tell me how you can apply the translation to the phrase which is the value in the filter:
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim Shatalov, 2019-09-26
@Sergiy_Hanzhela

https://docs.djangoproject.com/en/2.2/topics/i18n/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question