Django

Code

Changeset 8134

Show
Ignore:
Timestamp:
07/29/08 01:02:47 (5 months ago)
Author:
mtredinnick
Message:

Fixed #1157 -- Added some text to i18n.txt to explain how to install the
necessary gettext tools on Windows (relevant to translators only). Thanks,
Ramiro Morales.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/i18n.txt

    r8043 r8134  
    435435    starting point; it's just an empty translation file. 
    436436 
     437.. admonition:: Working on Windows? 
     438 
     439   If you're using Windows and need to install the GNU gettext utilites so 
     440   ``django-admin makemessages`` works see `gettext on Windows`_ for more 
     441   information. 
     442 
    437443The format of ``.po`` files is straightforward. Each ``.po`` file contains a 
    438444small bit of metadata, such as the translation maintainer's contact 
     
    513519 
    514520    .. _Submitting and maintaining translations: ../contributing/ 
     521 
     522.. admonition:: Working on Windows? 
     523 
     524   If you're using Windows and need to install the GNU gettext utilites so 
     525   ``django-admin compilemessages`` works see `gettext on Windows`_ for more 
     526   information. 
    515527 
    5165283. How Django discovers language preference 
     
    896908      ``xgettext`` and ``msgfmt``. This is mostly for convenience. 
    897909 
     910``gettext`` on Windows 
     911====================== 
     912 
     913This is only needed for people who either want to extract message IDs or 
     914compile ``.po`` files. Translation work itself just involves editing existing 
     915``.po`` files, but if you want to create your own .po files, or want to test 
     916or compile a changed ``.po`` file, you will need the ``gettext`` utilities: 
     917 
     918    * Download the following zip files from http://sourceforge.net/projects/gettext 
     919 
     920      * ``gettext-runtime-X.bin.woe32.zip`` 
     921      * ``gettext-tools-X.bin.woe32.zip`` 
     922      * ``libiconv-X.bin.woe32.zip`` 
     923 
     924    * Extract the 3 files in the same folder (i.e. ``C:\Program Files\gettext-utils``) 
     925 
     926    * Update the system PATH: 
     927 
     928      * ``Control Panel > System > Advanced > Environment Variables`` 
     929      * In the ``System variables`` list, click ``Path``, click ``Edit`` 
     930      * Add ``;C:\Program Files\gettext-utils\bin`` at the end of the ``Variable value``