Search code examples
pythondjangogettext

what is the best solution for GNU gettext installation in windows?


in windows for a django project on pycharm, my Django and dependencies are installed on venv. I wanted to modify one .po file and test it if it's working or not, it seems that this change needs to commit by this command: *django-admin makemessages -l -ja* I tried it and I faced with this error: "CommandError: Can't find msguniq. Make sure you have GNU gettext tools 0.15 or newer installed." I tried to install gettext for my project but it didn't work. pip install python-gettext didn't work as well. and some of the answers for similar issue were not clear I want to know the best solution for this situation ...


Solution

  • You have to install gettext for Windows: https://mlocati.github.io/articles/gettext-iconv-windows.html

    It is not a Python package.