Demo of using gettext with Python on the Windows platform
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


For those who are using gettext in their own programs on Windows:


Get MinGW/Msys.  I use mingw32 even on 64-bit Windows; if you use the
64-bit version, you do so at your own risk.

The auto-install bundle will provide MinGW, Msys, plus the autotools,
gettext, and other stuff.  Basically: everything you need to get


Run via a MinGW shell session to create (or update) the .po
localization files.

Update the files as necessary by hand.

Create the .mo files by running

About the test programs
======================= is the program documented on my blog posting [1]_.  It
simply displays text based on the current locale. was a quick test program I added afterwards.  It
is mostly a copy of, except that the desired
translation is loaded and selected on the fly.  This isn't anything
that isn't already documented in the Python docs, but it was written
to see how the method differs from straight gettext.install.

Both programs have been tested on Windows 7 64-bit Japanese, with
preferred language/formats set to US English, using 32-bit Python 2.7.

.. [1]