Django

Code

Show
Ignore:
Timestamp:
08/05/08 12:15:33 (5 months ago)
Author:
jbronn
Message:

gis: Merged revisions 7981-8001,8003-8011,8013-8033,8035-8036,8038-8039,8041-8063,8065-8076,8078-8139,8141-8154,8156-8214 via svnmerge from trunk.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/gis

    • Property svnmerge-integrated changed from /django/trunk:1-7978 to /django/trunk:1-8214
  • django/branches/gis/docs/i18n.txt

    r7918 r8215  
    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 
     
    889901      used to differentiate between different programs that store their data 
    890902      in a common message-file library (usually ``/usr/share/locale/``). The 
    891       ``django`` domain is used for python and template translation strings 
     903      ``django`` domain is used for Python and template translation strings 
    892904      and is loaded into the global translation catalogs. The ``djangojs`` 
    893905      domain is only used for JavaScript translation catalogs to make sure 
     
    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``