Changeset 400

Show
Ignore:
Timestamp:
08/31/07 12:20:49 (1 year ago)
Author:
ogawa
Message:

Now supports MT 4.0 and localization for plugin description.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • KeywordsAsTags/trunk/KeywordsAsTags/KeywordsAsTags.pl

    r399 r400  
    77use MT; 
    88use base qw(MT::Plugin); 
    9 our $VERSION = '0.01'; 
     9our $VERSION = '0.02'; 
    1010 
    1111my $plugin = __PACKAGE__->new({ 
    12     name => 'KeywordsAsTags Plugin', 
    13     description => 'A plugin for converting keywords to MT3.3 tags when posting an entry with keywords.', 
     12    id => 'keywords_as_tags', 
     13    name => 'KeywordsAsTags', 
     14    description => q(<MT_TRANS phrase="KeywordsAsTags allows you to convert 'entry keywords' to MT3.3+ tags when posting an entry with keywords. It is convenient for you to post tagged entries from a blog client application which does not support 'tag' feature.">), 
    1415    doc_link => 'http://code.as-is.net/wiki/KeywordsAsTags_Plugin', 
    1516    author_name => 'Hirotaka Ogawa', 
    1617    author_link => 'http://profile.typekey.com/ogawa/', 
    1718    version => $VERSION, 
     19    l10n_class => 'KeywordsAsTags::L10N', 
    1820}); 
    1921MT->add_plugin($plugin); 
     
    2123 
    2224sub keywords_as_tags { 
    23     my ($eh, $app, $e) = @_; 
     25    my $class = shift; 
     26    my ($e) = @_; 
    2427    return unless $e->isa('MT::Entry') && $e->keywords; 
    2528    my @tags = split_tags($e->keywords, 1);