install gettext tools 0.15

5,321 views
Skip to first unread message

Dariusz Mysior

unread,
Oct 30, 2015, 4:33:52 PM10/30/15
to Django users

I use Windows 8 Python 3.4 Django 1.8 and I try

I set settings and add: USE_I18N = True

add to MIDDLEWARE_CLASSES django.middleware.locale.LocaleMiddleware

like in describe in link below

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

I download gettext-runtime_0.18.1.1-1_win64 and gettext-tools_0.18.1.1-1_win64 extract to C:\Program Files\gettext-utils add path like in link to Control Panel > System > Advanced > Environment Variables and when I write to terminal C:\Python34\ownsite>manage.py compilemessages I had info :(

CommandError: Can't find msgfmt. Make sure you have GNU gettext tools 0.15 or newer installed.

What can I do more??? I have lost a few days on

Ramiro Morales

unread,
Oct 30, 2015, 4:50:21 PM10/30/15
to django...@googlegroups.com
Make sure you can execute msgfmt.exe from any path on your system.
That will indicate the directory where it is located has actually and
correctly been added to the PATH environment variable.

For example, open a Command prompt window and type msfgmt<Enter>.

This is more a general Windows system admin topic.

--
Ramiro Morales
@ramiromorales

Dariusz Mysior

unread,
Oct 30, 2015, 4:59:47 PM10/30/15
to Django users
I do this and I have msfgmt is not recognized as an internal or external command, operable program or a batch file.

Ramiro Morales

unread,
Oct 30, 2015, 8:52:37 PM10/30/15
to django...@googlegroups.com
On Fri, Oct 30, 2015 at 5:59 PM, Dariusz Mysior <mysior...@gmail.com>wrote:
> I do this and I have msfgmt is not recognized as an internal or external
> command, operable program or a batch file.

Then you'll need to identify, among the directories created by the
installation of gettext tools, which is the one that contains
msgfmt.exe. That's the one you need to add to the PATH env var.

>
> W dniu piątek, 30 października 2015 21:33:52 UTC+1 użytkownik Dariusz Mysior
> napisał:
>>
>> I use Windows 8 Python 3.4 Django 1.8 and I try
>>
>> I set settings and add: USE_I18N = True
>>
>> add to MIDDLEWARE_CLASSES django.middleware.locale.LocaleMiddleware
>>
>> like in describe in link below
>>
>>
>> https://docs.djangoproject.com/en/1.8/topics/i18n/translation/#gettext-on-windows
>>
>> I download gettext-runtime_0.18.1.1-1_win64 and
>> gettext-tools_0.18.1.1-1_win64 extract to C:\Program Files\gettext-utils add
>> path like in link to Control Panel > System > Advanced > Environment
>> Variables and when I write to terminal C:\Python34\ownsite>manage.py
>> compilemessages I had info :(
>>
>> CommandError: Can't find msgfmt. Make sure you have GNU gettext tools 0.15
>> or newer installed.
>>
>> What can I do more??? I have lost a few days on
>

--
Ramiro Morales
@ramiromorales

Dariusz Mysior

unread,
Oct 31, 2015, 6:34:58 AM10/31/15
to Django users
Maybe I download a wrong files I have win 8 x64 and from

https://download.gnome.org/binaries/win64/dependencies/

I download files:

gettext-runtime_0.18.1.1-1_win64.zip

gettext-tools_0.18.1.1-1_win64.zip

create folder in path C:\Program Files\gettext-utils and extract this 2 files there. There isn't msgfmt.exe file


W dniu piątek, 30 października 2015 21:33:52 UTC+1 użytkownik Dariusz Mysior napisał:
Reply all
Reply to author
Forward
0 new messages