0

I have a fresh Django project with no third-party apps installed. I'm trying to create a multilingual setup, with from django.utils.translation import gettext_lazy as _ in my Python files and {% translate %} in my templates.

When I try to extract the messages, I get an error.

(venv) d:\dev\py\filfak\src>py manage.py makemessages -l es
processing locale es 
CommandError: errors happened while running msgmerge 
msgmerge: unrecognized option `--previous' 
Try `(null) --help' for more information.

Somebody has an idea why does this happen? And, more important, how to solve it? If it helps somehow, I'm using Python 3.9.6 and Django 3.2.8 on Windows.

1 Answers1

0

That sounds like perhaps your version of gettext might be out of date and not yet have support for the '--previous' option.

You can get the latest precompiled binary from https://mlocati.github.io/articles/gettext-iconv-windows.html (as linked from the Django docs here).

AdT
  • 96
  • 3