Show the name of countries in other languages than default when using i18n translation system #379
-
I have installed the django_contries and it works great with Rosetta translation package but in some templates I need to use the English name of country for example when I want to show an international version of an address, but Rosetta translates the country name to my default i18n language. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Sounds like this is more of a standard django translation issue than a django-countries one. In this case specifically, probably ensuring you're in english when you're rendering the data (or the form, if that's where you're wanting it in english) {% language 'en' %}
<p>{{ person.country }}</p>
{% endlanguage %} See Django's docs on switching language in templates. |
Beta Was this translation helpful? Give feedback.
Sounds like this is more of a standard django translation issue than a django-countries one.
In this case specifically, probably ensuring you're in english when you're rendering the data (or the form, if that's where you're wanting it in english)
See Django's docs on switching language in templates.