Как установить gettext на windows 10

I have followed all the steps shared in all stackoverflow and other questions out there to install gettext for windows (10), but still, I get the error: "Can't find msguniq, make sure you have gett...

I have followed all the steps shared in all stackoverflow and other questions out there to install gettext for windows (10), but still, I get the error: «Can’t find msguniq, make sure you have gettext tools installed» when using internationalization in django. I have tried to download the files directly and added them to the PATH, and even an installer that had already compiled everything and added to the path automatically, but it still doesn’t work, and I don’t know what else to do… Help please!

Thank you for your time.

asked Feb 21, 2018 at 16:50

Elchinas's user avatar

Not sure what problem you face but below command worked for me

pip install python-gettext

enter image description here

answered Feb 21, 2018 at 16:59

om tripathi's user avatar

om tripathiom tripathi

3001 gold badge5 silver badges20 bronze badges

1

In windows you just need to download :

gettext-tools-xx.zip
gettext-runtime-xx.zip
from here: enter link description here

and then you need to unzip them and copy all in bin folder of both files into C:Program Filesgettext-utilsbin and then you need to go to control panel-> system -> advanced -> environment variables and add this path:C:Program Filesgettext-utilsbin to path variables. Note:

xx is the version you want to download if you download version 18 you will get an error that some dll file is missing, I suggest to download version 17
this folder: gettext-utilsbin does not exist and you need to create it
restart your pc before you use gettext

answered Dec 19, 2018 at 14:38

user907988's user avatar

user907988user907988

6151 gold badge5 silver badges17 bronze badges

Я выполнил все шаги, общие для всех stackoverflow и других вопросов, чтобы установить gettext для Windows (10), но все же получаю сообщение об ошибке: «Не могу найти msguniq, убедитесь, что у вас установлены инструменты gettext» при использовании интернационализации в джанго. Я попытался загрузить файлы напрямую и добавить их в PATH, и даже установщик, который уже все скомпилировал и автоматически добавил в путь, но он все еще не работает, и я не знаю, что еще делать. .. Помогите, пожалуйста!

Спасибо за ваше время.

3 ответа

В windows нужно просто скачать:

Gettext-tools-xx.zip gettext-runtime-xx.zip отсюда: введите описание ссылки здесь

А затем вам нужно распаковать их и скопировать все в папке bin обоих файлов в C: Program Files gettext-utils bin, а затем вам нужно перейти в панель управления-> система -> расширенные -> переменные среды и добавить это путь: C: Program Files gettext-utils bin к переменным пути. Примечание:

Xx — это версия, которую вы хотите загрузить, если вы загрузите версию 18, вы получите сообщение об ошибке, что какой-то файл dll отсутствует, я предлагаю загрузить версию 17 из этой папки: gettext-utils bin не существует, и вам нужно создать его, перезапустите ПК, прежде чем использовать gettext


0

user907988
19 Дек 2018 в 17:38

Не уверен, с какой проблемой вы столкнулись, но команда ниже сработала для меня

Pip установить python-gettext

enter image description here


1

om tripathi
21 Фев 2018 в 19:59

Django удалил это объяснение из недавних документов, и мне потребовалось некоторое время, чтобы найти его, поэтому я вставил его здесь, прежде чем эта старая документация отключилась:

Источник: Django Docs 1.7

Загрузите следующие zip файлы с серверов GNOME

  • gettext-runtime-X.zip
  • gettext-tools-X.zip

X — номер версии (он должен быть 0,15 или выше)

Извлечь содержимое каталогов bin в обоих файлах в одну и ту же папку в вашей системе (т.е. C:Program Filesgettext-utils)

Обновить систему PATH:

Control Panel > System > Advanced > Environment Variables

В списке «Системные переменные» выберите «Путь», нажмите «Изменить», а затем «Создать».
Добавьте значение C:Program Filesgettext-utilsbin.

Вы также можете использовать gettext файлы, которые вы получили в другом месте, если команда xgettext -version работает правильно. Не пытайтесь использовать утилиты перевода Django с пакетом gettext, если команда xgettext -version, введенная в командной строке Windows, вызывает всплывающее окно с сообщением: «xgettext.exe сгенерировал ошибки и будет закрыт Windows».

После этого я протестировал и ./manage.py makemessages -l pt работает

Я следил за инструктором по установке gettext в Windows, и когда я набираю xgettext —version в командной строке, он говорит, что он установлен. но когда я хочу запустить эту команду: python manage.py makemessages -l «fa»
в моем проекте написано: «Не могу найти msguniq». Убедитесь, что у вас установлены инструменты GNU gettext 0.15 или новее.
Я так старался, но похоже, что нет хороших ответов

[JS за 1 час] - 9. Асинхронный

[JS за 1 час] — 9. Асинхронный

JavaScript является однопоточным, то есть он может обрабатывать только одну задачу за раз. Для обработки длительных задач, таких как сетевые запросы,…

Топ-10 компаний-разработчиков PHP

Скраппинг поиска Apple App Store с помощью Python

Редкие достижения на Github ✨

Подъем в javascript

Подъем в javascript

Hoisting — это поведение в JavaScript, при котором переменные и объявления функций автоматически «перемещаются» в верхнюю часть соответствующих…

Улучшение генерации файлов Angular


Ответы
2

Ответ принят как подходящий

В windows нужно просто скачать:

gettext-tools-xx.zip
gettext-runtime-xx.zip

Отсюда:
введите описание ссылки здесь

А затем вам нужно разархивировать их и скопировать все в папке bin обоих файлов в C: Program Files gettext-utils bin
а затем вам нужно перейти в панель управления -> система -> расширенные -> переменные среды и добавить этот путь: C: Program Files gettext-utils bin к переменным пути.
Примечание:

  • xx — это версия, которую вы хотите загрузить, если вы загружаете версию 18
    вы получите сообщение об отсутствии какого-либо файла dll, я предлагаю
    скачать версию 17
  • эта папка: gettext-utils bin не существует, и вам нужно создать
    Это
  • перезагрузите компьютер, прежде чем использовать gettext

В windows7 / windows10 вы должны загрузить gettext-iconv-windows, попробуйте следующий URL:

Https://mlocati.github.io/articles/gettext-iconv-windows.html

После загрузки и установки закройте и снова откройте CMD, а затем попробуйте снова использовать свою команду.

Я надеюсь, что это полезно

Это также работает в Windows 10. Спасибо!


— Alvaro Rodriguez Scelza

23.01.2021 18:00

Спасибо за ваш комментарий, я обновил свой ответ.


— K.A

29.03.2021 10:57

Другие вопросы по теме

GNU gettext tools for Windows

This is an unofficial build of GNU gettext tools for Windows. The repository
contains build scripts, but there are also up-to-date binaries published at
https://github.com/vslavik/gettext-tools-windows/releases, as well as a NuGet
package.

It is a spin-off project from my translations editor Poedit: https://poedit.net

How to build it

The easiest way to use these tools is to just download the binaries or use the
Gettext.Tools NuGet package.

If you prefer to build it yourself, it’s simple enough:

  1. You need to have a recent version of MSYS2 and MinGW-w64 installed from
    https://www.msys2.org; run all subsequent commands within a MinGW 32 shell.
  2. Install required packages:
    pacman -S mingw-w64-i686-gcc automake autoconf pkg-config make zip patch tar
    
  3. Run make dist or make archive to build everything.

Good luck, building GNU gettext on MinGW tends to break once in a while due to
MinGW or gettext or gnulib changes (hence this project…).

License

The LICENSE file in this directory applies to GNU gettext itself, which is
licensed under GPLv3. The makefiles and scripts for building it on Windows are
in the public domain.


I’m @vslavik on Twitter.

https://github.com/vslavik/gettext-tools-windows

Asked
4 years, 1 month ago

Viewed
6k times

I followed the instructor of installing gettext on windows and when I type xgettext —version in my command prompt it says that it has installed. but when I want to run this command: python manage.py makemessages -l «fa»
in my project it says Can’t find msguniq. Make sure you have GNU gettext tools 0.15 or newer installed.
I tried so hard but it seems there are no good answers out there

asked Dec 19, 2018 at 14:07

In windows you just need to download :

gettext-tools-xx.zip
gettext-runtime-xx.zip

from here:
enter link description here

and then you need to unzip them and copy all in bin folder of both files into C:Program Filesgettext-utilsbin
and then you need to go to control panel-> system -> advanced -> environment variables and add this path:C:Program Filesgettext-utilsbin to path variables.
Note:

  • xx is the version you want to download if you download version 18
    you will get an error that some dll file is missing, I suggest to
    download version 17
  • this folder :gettext-utilsbin does not exist and you need to create
    it
  • resteart your pc before you use gettext

answered Dec 19, 2018 at 14:24

user907988's user avatar

user907988user907988

6151 gold badge5 silver badges17 bronze badges

on windows7/windows10 you have to download gettext-iconv-windows , try the following url:

https://mlocati.github.io/articles/gettext-iconv-windows.html

after you download it and install it , close and reopen your CMD , and then try to use your command again .

i hope this helpful

answered Nov 28, 2020 at 0:22

K.A's user avatar

K.AK.A

1,0489 silver badges21 bronze badges

2

Asked
4 years, 1 month ago

Viewed
6k times

I followed the instructor of installing gettext on windows and when I type xgettext —version in my command prompt it says that it has installed. but when I want to run this command: python manage.py makemessages -l «fa»
in my project it says Can’t find msguniq. Make sure you have GNU gettext tools 0.15 or newer installed.
I tried so hard but it seems there are no good answers out there

asked Dec 19, 2018 at 14:07

In windows you just need to download :

gettext-tools-xx.zip
gettext-runtime-xx.zip

from here:
enter link description here

and then you need to unzip them and copy all in bin folder of both files into C:Program Filesgettext-utilsbin
and then you need to go to control panel-> system -> advanced -> environment variables and add this path:C:Program Filesgettext-utilsbin to path variables.
Note:

  • xx is the version you want to download if you download version 18
    you will get an error that some dll file is missing, I suggest to
    download version 17
  • this folder :gettext-utilsbin does not exist and you need to create
    it
  • resteart your pc before you use gettext

answered Dec 19, 2018 at 14:24

user907988's user avatar

user907988user907988

6151 gold badge5 silver badges17 bronze badges

on windows7/windows10 you have to download gettext-iconv-windows , try the following url:

https://mlocati.github.io/articles/gettext-iconv-windows.html

after you download it and install it , close and reopen your CMD , and then try to use your command again .

i hope this helpful

answered Nov 28, 2020 at 0:22

K.A's user avatar

K.AK.A

1,0489 silver badges21 bronze badges

2

Понравилась статья? Поделить с друзьями:
  • Как установить get pip py на windows
  • Как установить flatout 2 на windows 10
  • Как установить geonics 2013 на windows 10 x64
  • Как установить flask python на windows 10
  • Как установить fivem для гта 5 на windows 10