Changeset 436 for TheSchwartzStats

Show
Ignore:
Timestamp:
09/25/07 10:22:31 (14 months ago)
Author:
ogawa
Message:

override load_tmpl for localizing the template contents.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • TheSchwartzStats/trunk/TheSchwartzStats/TheSchwartzStats.pl

    r425 r436  
    2929 
    3030sub instance { $plugin } 
     31 
     32# translate template text before calling MT::App::build_page() 
     33sub load_tmpl { 
     34    my $plugin = shift; 
     35    my $tmpl = $plugin->SUPER::load_tmpl(@_); 
     36    $tmpl->text($plugin->translate_templatized($tmpl->text)); 
     37    $tmpl; 
     38} 
    3139 
    3240sub init_registry {