Changeset 4222
- Timestamp:
- 04/28/09 12:33:23 (3 years ago)
- File:
-
- 1 edited
-
trunk/Padre/lib/Padre/Plugin/Devel.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/Plugin/Devel.pm
r4178 r4222 19 19 20 20 sub plugin_name { 21 'Padre Developer Tools';21 Wx::gettext('Padre Developer Tools'); 22 22 } 23 23 … … 53 53 my $self = shift; 54 54 return $self->plugin_name => [ 55 'Run Document inside Padre'=> 'eval_document',56 '---' => undef,57 'Dump Current Document'=> 'dump_document',58 'Dump Top IDE Object'=> 'dump_padre',59 'Dump %INC and @INC'=> 'dump_inc',60 '---' => undef,55 Wx::gettext('Run Document inside Padre') => 'eval_document', 56 '---' => undef, 57 Wx::gettext('Dump Current Document') => 'dump_document', 58 Wx::gettext('Dump Top IDE Object') => 'dump_padre', 59 Wx::gettext('Dump %INC and @INC') => 'dump_inc', 60 '---' => undef, 61 61 62 62 # TODO 63 63 # Should be checkbox but I am too lazy to turn the whole 64 64 # menu_plugins_simple into a menu_plugins 65 'Enable logging'=> sub { set_logging(1); },66 'Disable logging'=> sub { set_logging(0); },67 'Enable trace when logging'=> sub { set_trace(1); },68 'Disable trace'=> sub { set_trace(0); },69 '---' => undef,70 'Simulate Crash'=> 'simulate_crash',71 'Simulate Crashing Bg Task'=> 'simulate_task_crash',72 '---' => undef,73 'wxWidgets 2.8.8 Reference'=> sub {65 Wx::gettext('Enable logging') => sub { set_logging(1); }, 66 Wx::gettext('Disable logging') => sub { set_logging(0); }, 67 Wx::gettext('Enable trace when logging') => sub { set_trace(1); }, 68 Wx::gettext('Disable trace') => sub { set_trace(0); }, 69 '---' => undef, 70 Wx::gettext('Simulate Crash') => 'simulate_crash', 71 Wx::gettext('Simulate Crashing Bg Task') => 'simulate_task_crash', 72 '---' => undef, 73 Wx::gettext('wxWidgets 2.8.8 Reference') => sub { 74 74 Wx::LaunchDefaultBrowser('http://docs.wxwidgets.org/2.8.8/'); 75 75 }, 76 'STC Reference'=> sub {76 Wx::gettext('STC Reference') => sub { 77 77 Wx::LaunchDefaultBrowser('http://www.yellowbrain.com/stc/index.html'); 78 78 }, 79 '---' => undef,80 'About'=> 'show_about',79 '---' => undef, 80 Wx::gettext('About') => 'show_about', 81 81 ]; 82 82 } … … 117 117 my $document = Padre::Current->document; 118 118 unless ($document) { 119 Padre::Current->main->message( 'No file is open', 'Info' );119 Padre::Current->main->message( Wx::gettext('No file is open'), 'Info' ); 120 120 return; 121 121 } … … 147 147 my $about = Wx::AboutDialogInfo->new; 148 148 $about->SetName('Padre::Plugin::Devel'); 149 $about->SetDescription( "A set of unrelated tools used by the Padre developers\n");149 $about->SetDescription( Wx::gettext("A set of unrelated tools used by the Padre developers\n") ); 150 150 Wx::AboutBox($about); 151 151 return;
Note: See TracChangeset
for help on using the changeset viewer.
