Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

string in template without translation #88

Open
mayersre opened this issue Apr 30, 2019 · 2 comments
Open

string in template without translation #88

mayersre opened this issue Apr 30, 2019 · 2 comments

Comments

@mayersre
Copy link

in quiz template result.html is a non translatable string in line 15:

Your answer was

mayersre pushed a commit to mayersre/django_quiz that referenced this issue May 2, 2019
@mayersre
Copy link
Author

mayersre commented May 2, 2019

Line 15 to 18 should be replaced as follows, as the following "correct,incorrect" inside the tag get's no translation either.

  <p>{% trans "Your answer was" %}
	<strong>
	{% blocktrans asvar corr_incorr %}correct,incorrect{% endblocktrans %}
	  {{ previous.previous_outcome|yesno:corr_incorr }}

@mayersre
Copy link
Author

mayersre commented May 2, 2019

As "Your answer was has a django.po entry, I added only

#: apps/quiz/templates/result.html:17
msgid "correct,incorrect"
msgstr "richtig,falsch"

to my po file in the german locale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant