Changeset 4222


Ignore:
Timestamp:
04/28/09 12:33:23 (3 years ago)
Author:
therek
Message:

Padre plugins should be localized as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Plugin/Devel.pm

    r4178 r4222  
    1919 
    2020sub plugin_name { 
    21     'Padre Developer Tools'; 
     21    Wx::gettext('Padre Developer Tools'); 
    2222} 
    2323 
     
    5353    my $self = shift; 
    5454    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, 
    6161 
    6262        # TODO 
    6363        # Should be checkbox but I am too lazy to turn the whole 
    6464        # 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 { 
    7474            Wx::LaunchDefaultBrowser('http://docs.wxwidgets.org/2.8.8/'); 
    7575        }, 
    76         'STC Reference' => sub { 
     76        Wx::gettext('STC Reference')            => sub { 
    7777            Wx::LaunchDefaultBrowser('http://www.yellowbrain.com/stc/index.html'); 
    7878        }, 
    79         '---'   => undef, 
    80         'About' => 'show_about', 
     79        '---'                                    => undef, 
     80        Wx::gettext('About')                    => 'show_about', 
    8181    ]; 
    8282} 
     
    117117    my $document = Padre::Current->document; 
    118118    unless ($document) { 
    119         Padre::Current->main->message( 'No file is open', 'Info' ); 
     119        Padre::Current->main->message( Wx::gettext('No file is open'), 'Info' ); 
    120120        return; 
    121121    } 
     
    147147    my $about = Wx::AboutDialogInfo->new; 
    148148    $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") ); 
    150150    Wx::AboutBox($about); 
    151151    return; 
Note: See TracChangeset for help on using the changeset viewer.