How to install GNU gettext on windows 7?

后端 未结 6 1088
迷失自我
迷失自我 2020-12-29 07:02

I need to install version 0.15 or higher of GNU\'s gettext so that I can use some i18n feateres with django.

I\'ve downloaded :

http://ftp.gn

相关标签:
6条回答
  • 2020-12-29 07:12

    There are a lot of versions, this is what I've downloaded:

    http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime_0.18.1.1-2_win32.zip

    And: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-tools-dev_0.18.1.1-2_win32.zip

    And added both bin folders to the Windows PATH.

    0 讨论(0)
  • 2020-12-29 07:14

    The latest version of gettext setup is available here -- - https://mlocati.github.io/articles/gettext-iconv-windows.html

    You can find a direct .exe setup file and then you can just add it to the environment variable PATH.

    0 讨论(0)
  • 2020-12-29 07:15

    For windows, you may:

    1. download gettext from http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/;
    2. unzip both gettext-runtime and gettext-tools
    3. add the bin folder to to PATH

    Django docs - https://docs.djangoproject.com/en/1.7/topics/i18n/translation/#gettext-on-windows

    0 讨论(0)
  • 2020-12-29 07:18

    I'm maintaining a GitHub repository with Windows binaries of gettext and iconv (I just updated it to the latest gettext version: 0.19.3)

    You can find it here: http://mlocati.github.io/gettext-iconv-windows/

    To see how I compiled them (if you want to do it yourself) take a look at https://github.com/mlocati/gettext-iconv-windows

    0 讨论(0)
  • 2020-12-29 07:21

    This is the actual link pointing to the Windows installation: http://mlocati.github.io/gettext-iconv-windows/ (v. 0.19.4)

    I spent quite a while before found that there is the link pointing their from the github project mentioned by mlokati.

    P.S. Here is the official instruction on this from the Django docs: https://docs.djangoproject.com/en/1.8/topics/i18n/translation/#gettext-on-windows

    0 讨论(0)
  • 2020-12-29 07:32

    You can use tools from that NuGet package https://www.nuget.org/packages/Gettext.Tools/

    0 讨论(0)
提交回复
热议问题