Ticket #1157: i18n.diff

File i18n.diff, 1.6 KB (added by Simon G. <dev@…>, 17 years ago)
  • docs/i18n.txt

     
    3838.. admonition:: Behind the scenes
    3939
    4040    Django's translation machinery uses the standard ``gettext`` module that
    41     comes with Python.
     41    comes with Python. If you're using windows, you'll need to install this,
     42    see `gettext on Windows`_ for more information.
    4243
    4344If you don't need internationalization
    4445======================================
     
    763764      anyway.
    764765    * Django doesn't use ``xgettext`` alone. It uses Python wrappers around
    765766      ``xgettext`` and ``msgfmt``. That's mostly for convenience.
     767
     768gettext on Windows
     769==================
     770
     771gettext stuff is only needed for people who either want to extract message IDs or
     772compile .po files. Translation work itself just uses existing .po files, but if
     773you want to create your own .po files, or want to test or activate a changed .po
     774file, you will need the ``gettext`` utilities:
     775
     776    * Download the following zip files from http://sourceforge.net/projects/gettext
     777    * * ``gettext-runtime-X.bin.woe32.zip``
     778    * * ``gettext-tools-X.bin.woe32.zip``
     779    * * ``libiconv-X.bin.woe32.zip``
     780
     781    * extract the 3 files in the same folder (i.e. ``C:\Program Files\gettext-utils``)
     782
     783    * Update the system PATH :
     784    * * ``Control Panel > System > Advanced > Environment Variables``
     785    * * In the ``System variables`` list, click ``Path``, click ``Edit``
     786    * * Add ``;C:\Program Files\gettext-utils\bin`` at the end of the ``Variable value``
     787 No newline at end of file
Back to Top