Changes between Version 4 and Version 5 of Development/Translation


Ignore:
Timestamp:
02/27/2012 07:38:40 PM (10 years ago)
Author:
Cas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Development/Translation

    v4 v5  
    77== Marking Text for Translation == 
    88 
    9 To mark text for translation wrap the string with the function `_()` like this: 
     9To mark text for translation in Python and ExtJS wrap the string with the function `_()` like this: 
    1010{{{ 
    1111torrent.set_tracker_status(_("Announce OK")) 
     
    1717}}} 
    1818 
    19 For more detail see: [http://docs.python.org/library/gettext.html Python Gettext] 
     19For more details see: [http://docs.python.org/library/gettext.html Python Gettext] 
    2020 
    2121== Translation Process == 
     
    3030 * The binary `MO` files for each language are generated in `setup.py` by using the `msgfmt.py` script. 
    3131 
     32To enable WebUI to use translations update `gettext.js` with: `gen_gettext.py > gettext.js` 
    3233 
    3334== Testing Translation ==