|
Revision 700, 1.3 kB
(checked in by mpaschal, 6 months ago)
|
Move l10nsample plugin from mt extras to mtplugins repo
|
| Line | |
|---|
| 1 |
# Movable Type (r) Open Source (C) 2005-2008 Six Apart, Ltd. |
|---|
| 2 |
# This program is distributed under the terms of the |
|---|
| 3 |
# GNU General Public License, version 2. |
|---|
| 4 |
# |
|---|
| 5 |
# $Id: l10nsample.pl 1174 2008-01-08 21:02:50Z bchoate $ |
|---|
| 6 |
|
|---|
| 7 |
package MT::Plugin::l10nsample; |
|---|
| 8 |
|
|---|
| 9 |
use strict; |
|---|
| 10 |
use base 'MT::Plugin'; |
|---|
| 11 |
use vars qw($VERSION); |
|---|
| 12 |
$VERSION = '0.01'; |
|---|
| 13 |
|
|---|
| 14 |
my $plugin; |
|---|
| 15 |
$plugin = MT::Plugin::l10nsample->new({ |
|---|
| 16 |
name => "<MT_TRANS phrase=\"l10nsample\">", |
|---|
| 17 |
version => $VERSION, |
|---|
| 18 |
doc_link => "http://www.sixapart.com/", |
|---|
| 19 |
description => "<MT_TRANS phrase=\"This description can be localized if there is l10n_class set.\">", |
|---|
| 20 |
author_name => "<MT_TRANS phrase=\"Fumiaki Yoshimatsu\">", |
|---|
| 21 |
author_link => "http://sixapart.com/", |
|---|
| 22 |
l10n_class => 'l10nsample::L10N', |
|---|
| 23 |
}); |
|---|
| 24 |
MT->add_plugin($plugin); |
|---|
| 25 |
|
|---|
| 26 |
sub instance { $plugin } |
|---|
| 27 |
|
|---|
| 28 |
sub init_registry { |
|---|
| 29 |
my $plugin = shift; |
|---|
| 30 |
$plugin->registry({ |
|---|
| 31 |
applications => { |
|---|
| 32 |
cms => { |
|---|
| 33 |
page_actions => { |
|---|
| 34 |
entry => { |
|---|
| 35 |
l10nsample => { |
|---|
| 36 |
key => 'plugin:l10n_sample:l10n_sample', |
|---|
| 37 |
label => 'This is localizable', |
|---|
| 38 |
link => 'l10nsample.cgi', |
|---|
| 39 |
}, |
|---|
| 40 |
}, |
|---|
| 41 |
}, |
|---|
| 42 |
}, |
|---|
| 43 |
}, |
|---|
| 44 |
}); |
|---|
| 45 |
} |
|---|