Changes between Version 34 and Version 35 of WikiTicketCalendarMacro


Ignore:
Timestamp:
Jun 8, 2010 10:57:03 PM (4 years ago)
Author:
hasienda
Comment:

add hints on macro activation for different versions (see #7213), mention required message catalog compilation, closes #7221

Legend:

Unmodified
Added
Removed
Modified
  • WikiTicketCalendarMacro

    v34 v35  
    2929and there's no visible difference to the genuine 0.12 version, if you don't use localization for Trac 0.12.  
    3030 
     31Historically the macro code was activated for a long time by 
     32{{{ 
     33    [components] 
     34    WikiTicketCalendarMacro.* = enabled 
     35}}} 
     36what is still correct for 0.11 branch. 
     37 
     38New versions from 0.12 branch and trunk with i18n support have a different code structure due to packaging.[[BR]] 
     39See i18n/l10n section for an '''[#Abouti18nl10nsupport important hint on egg creation]'''. The statement required for activation has changed as well: 
     40{{{ 
     41    [components] 
     42    wikiticketcalendar.* = enabled 
     43}}} 
     44 
    3145== Source == 
    3246 
     
    3448 
    3549== Example == 
     50See [#Download download section] on how to activate your version. 
    3651 
    3752The invocation for the screenshot above is {{{[[WikiTicketCalendar(*,*,true,Wochenberatung/%Y-%m-%d,true,Beratung)]]}}}.[[BR]] 
    3853Excerpt of the source documentation: 
    3954{{{ 
    40     Activate it in 'trac.ini': 
    41     -------- 
    42     [components] 
    43     WikiTicketCalendarMacro.* = enabled 
    44  
    4555    Usage 
    4656    ----- 
     
    7383But English message texts are still the (POSIX) default. If this isn't your preferred language, you can 
    7484 1. look, if it's already available from the [TracPluginTranslation Trac plugin l10n project] at [http://www.transifex.net/projects/p/Trac_Plugin-L10N/c/wikiticketcalendar Transifex] or 
    75  2. do it yourself (see the [http://trac.edgewall.org/wiki/CookBook/PluginL10N#Dotranslatorswork l10n cookbook page for Trac plugins] for more details). 
     85 2. do it yourself (see the [t:wiki:CookBook/PluginL10N#Dotranslatorswork l10n cookbook page for Trac plugins] for more details). 
    7686 
    7787You've done a new translation? Superb! Contributing your translation is highly appreciated.[[BR]] 
     
    8292 [[Image(http://www.transifex.net/projects/p/Trac_Plugin-L10N/c/wikiticketcalendar/chart/image_png, title=Go to Trac_Plugin-L10N project page on Transifex.net, link=http://www.transifex.net/projects/p/Trac_Plugin-L10N/c/wikiticketcalendar/)]] 
    8393Kindly provided by [[Image(http://sw.transifex.net/2/static/charts/images/tx-logo-micro.png, link=http://www.transifex.net/, title=the open translation platform, valign=bottom)]] 
     94 
     95Preparing the plugin from source requires the additional step of compiling message catalog files. Walk through: 
     96{{{ 
     97cd wikiticketcalendarmacro 
     98python ./setup.py egg_info 
     99python ./setup.py compile_catalog -f 
     100python ./setup.py bdist_egg 
     101}}}  
     102If you missed the 3rd step, you'll get an error in the 4th step complaining about missing `locale` directory. 
     103This is just a side-effect, because there are no complied message catalogs for inclusion into Python egg, hence the whole path is missing.[[BR]] 
     104To exclude translations marked as `# fuzzy` by the translator, you'll want to omit the extra `-f` argument to message catalog compilation. 
     105Again, for more details see the [t:wiki:CookBook/PluginL10N#Compileanduseit l10n cookbook page for Trac plugins]. 
    84106 
    85107== Recent Changes ==