Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

django-admin.py makemessages does not create .po files

Here I've marked strings for translation, base.html:

  <li><a href="{% url 'specific_static_page' 'apie-mus' %}">{% trans 'Apie mus' %}</a></li>
  <li><a href="{% url 'categories_index' %}">{% trans 'Produktai' %}</a></li>
  <li><a href="{% url 'news_index' %}">{% trans 'Naujienos' %}</a></li>
  <li><a href="{% url 'specific_static_page' 'dokumentai' %}">{% trans 'Dokumentai' %}</a></li>
  <li><a href="{% url 'specific_static_page' 'kontaktai' %}">{% trans 'Kontaktai' %}</a></li>

settings.py:

LOCALE_PATHS = (
    'C:/Users/Marijus/PycharmProjects/legatine/locale',
)

and I run the command :

django-admin.py makemessages -a 

It runs without errors or anything, however it doesn't create any .po files. What am I doing wrong here ?

like image 875
Marijus Avatar asked Mar 10 '26 18:03

Marijus


1 Answers

That command is used to reexamine all the source but to create the po files you must specify the language with

django-admin.py makemessages -l de

Being de the language Deutsche

like image 174
esauro Avatar answered Mar 13 '26 11:03

esauro



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!