I m new at Django and can t solve the problem. I wanna realize multi-language on my django project but when I type django-admin makemessages -l ru, Django doesn`t create locale folder with files in it. I did everything according to the documentation. Maybe my English is bad. This is my settings
from django.utils.translation import gettext_lazy as _
LANGUAGE_CODE = ru
USE_I18N = True
LANGUAGES = [
( ru , _( Russian )),
( uz , _( Uzbek )),
]
这是看法。 file
from django.utils.translation import gettext as _
def index(request):
phone = _( Welcome )
return HttpResponse(phone)
但是,在标题B.html(延迟档案)中,django将一字“Home”改为“Нaл.com”。
<li><a href="{% url index %}" style="font-size: 18px;">{% trans "Home" %}</a></li>
谢谢大家。