Changeset 273 for mt-i18n/trunk

Show
Ignore:
Timestamp:
11/27/06 15:19:58 (2 years ago)
Author:
ogawa
Message:

modify a little in modern MT plugin manner.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • mt-i18n/trunk/mt-i18n.pl

    r54 r273  
    11# MT-I18N plugin for MT::I18N container tags and global filters 
    22# 
    3 # Release 0.02 (Apr 24, 2005) 
     3# $Id$ 
    44# 
    55# This software is provided as-is. You may use it for commercial or  
    66# personal use. If you distribute it, please keep this notice intact. 
    77# 
    8 # Copyright (c) 2004 Hirotaka Ogawa 
     8# Copyright (c) 2004-2006 Hirotaka Ogawa 
    99 
    1010package MT::Plugin::I18N; 
    1111use strict; 
     12use MT; 
    1213use MT::Template::Context; 
    1314use MT::I18N; 
    1415 
    15 eval("use Storable;"); 
    16 if (!$@ && MT->can('add_plugin')) { 
     16our $VERSION = '0.03'; 
     17 
     18if (MT->can('add_plugin')) { 
    1719    require MT::Plugin; 
    18     my $plugin = new MT::Plugin(); 
    19     $plugin->name("MT-I18N Plugin 0.02"); 
    20     $plugin->description("Add MT::I18N container tags and global filters."); 
    21     $plugin->doc_link("http://as-is.net/blog/archives/000900.html"); 
     20    my $plugin = MT::Plugin->new({ 
     21        name => 'MT-I18N Plugin', 
     22        description => 'Add MT::I18N container tags and global filters.', 
     23        doc_link => 'http://code.as-is.net/wiki/MT-I18N_Plugin', 
     24        author_name => 'Hirotaka Ogawa', 
     25        author_link => 'http://profile.typekey.com/ogawa/', 
     26        version => $VERSION, 
     27    }); 
    2228    MT->add_plugin($plugin); 
    2329}