Ignore:
Timestamp:
09/11/09 06:26:45 (3 years ago)
Author:
james
Message:

support bothmixin option too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/en/output_VAR.tcl

    r1031 r1032  
    2424proc bMotion_plugin_output_VAR { channel line } { 
    2525        bMotion_putloglev 4 * "bMotion_plugin_output_VAR $channel $line" 
    26         global BMOTION_MIXIN_NONE BMOTION_MIXIN_REVERSE BMOTION_MIXIN_DEFAULT 
     26        global BMOTION_MIXIN_NONE BMOTION_MIXIN_REVERSE BMOTION_MIXIN_DEFAULT BMOTION_MIXIN_BOTH 
    2727 
    2828        set line [string map { "%noun" "%VAR{sillyThings}" } $line] 
     
    5656                        bMotion_putloglev 1 * "mixin type for $abstract is none" 
    5757                        set mixin_type $BMOTION_MIXIN_NONE 
     58                } elseif {[lsearch $options_list "bothmixin"] > -1} { 
     59                        bMotion_putloglev 1 * "mixin type for $abstract is both" 
     60                        set mixin_type $BMOTION_MIXIN_BOTH 
    5861                } 
    5962 
     
    7477                        set replacement $newText 
    7578                } 
    76  
    7779 
    7880                if {[lsearch $options_list "strip"] == -1} { 
     
    118120                                } 
    119121                                "plural" { 
     122                                        bMotion_putloglev 1 * "pluralising $replacement" 
    120123                                        set replacement [bMotionMakePlural $replacement] 
    121124                                } 
Note: See TracChangeset for help on using the changeset viewer.