Edgewall Software

Changes between Version 2 and Version 3 of TracDev/DevelopmentWithEclipseAndPyDev


Ignore:
Timestamp:
Jul 9, 2008, 7:19:50 PM (16 years ago)
Author:
jtiai
Comment:

Added locale settings.

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/DevelopmentWithEclipseAndPyDev

    v2 v3  
    5050If you are experiencing troubles in debugging Trac code, make sure that PYTHONPATH in project properties doesn't contain pointers to other Trac sources. Otherwise those sources will be picked instead checked out.
    5151
     52Note: It could be wise to setup virtualenv and install genshi, babel etc. there. Then debugging is easier and it doesn't interfere with existing Trac sources.
     53
     54== Automatic translation compilation ==
     55
     56If you want to setup automatic translation compilation it can be done very easily.
     57
     581. Right click on trac project and select ''Properties''. Select ''Builders''. Click ''New''. Select ''Program''.
     59
     602. Name builder, like 'Locale fi_FI builder'
     61
     623. ''Main'' tab:
     63 ''Location'': click ''Browse File System...''. Select Python executable.[[BR]]
     64 ''Working Directory'': set it to ''${project_loc}''[[BR]]
     65 ''Arguments'': ''setup.py compile_catalog -f -l fi_FI'' (change to your locale)[[BR]]
     66
     674. ''Refresh'' tab:
     68 Check ''Refresh resources upon completion''.[[BR]]
     69 Select ''Spesific resources'' and select ''trac/locale/fi_FI'' (select your locale)[[BR]]
     70
     715. ''Build Options'' tab:
     72 Check ''During auto builds''.[[BR]]
     73 Check ''Specify working set of relevan resources''.[[BR]]
     74 Click ''Specify resources...''. select ''trac/locale/fi_FI'' (select your locale, same as in step 4).[[BR]]
     75 Name it like ''fi_FI locale''.[[BR]]
     76
     776. After modifying your message.po file you should get following output:
     78 {{{
     79  running compile_catalog
     80  compiling catalog 'trac/locale\\fi_FI\\LC_MESSAGES\\messages.po' to 'trac/locale\\fi_FI\\LC_MESSAGES\\messages.mo'
     81 }}}
     82
     83And if Trac is running you will have changes immediately effective.
     84
    5285== Thanks ==
    5386