Changes between Version 4 and Version 5 of Development/Translation
- Timestamp:
- 02/27/2012 07:38:40 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Development/Translation
v4 v5 7 7 == Marking Text for Translation == 8 8 9 To mark text for translation wrap the string with the function `_()` like this:9 To mark text for translation in Python and ExtJS wrap the string with the function `_()` like this: 10 10 {{{ 11 11 torrent.set_tracker_status(_("Announce OK")) … … 17 17 }}} 18 18 19 For more detail see: [http://docs.python.org/library/gettext.html Python Gettext]19 For more details see: [http://docs.python.org/library/gettext.html Python Gettext] 20 20 21 21 == Translation Process == … … 30 30 * The binary `MO` files for each language are generated in `setup.py` by using the `msgfmt.py` script. 31 31 32 To enable WebUI to use translations update `gettext.js` with: `gen_gettext.py > gettext.js` 32 33 33 34 == Testing Translation ==