Install django project GNU gettext tool in windows11 environment

1. Django configuration internationalization is an error

PS D:\Django_project\djangomall> python .\manage.py makemessages -l zh_Hans
CommandError: Can't find msguniq. 
Make sure you have GNU gettext tools 0.15 or newer installed.

insert image description here

Prompt to install GNU gettext tools

2. GNU gettext installation

Download address: https://download.gnome.org/binaries/win32/dependencies/

Select the two installation packages below

insert image description here

Put the two installation packages in one folder, and unzip them into the same folder. My path is D:\gettext_0.17. The path after decompression is as follows:

insert image description here

3. GNU gettext environment variable settings

Add the bin path of gettext-runtime-0.17 and gettext-tools-0.17 to the system environment variable. My path is as follows:

D:\gettext_0.17\gettext-runtime-0.17\bin
D:\gettext_0.17\gettext-tools-0.17\bin

insert image description here

4. Re-open vscode to run the command, and see the following information to indicate success.

insert image description here

Guess you like

Origin blog.csdn.net/weixin_43883625/article/details/129887195