Changeset 11115


Ignore:
Timestamp:
03/14/10 16:27:25 (2 years ago)
Author:
zenogantner
Message:

gettext-ified outline pad

Location:
trunk/Padre
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Task/Outline/Perl.pm

    r10997 r11115  
    262262    my ( $outlinebar, $pkg, $type, $root ) = @_; 
    263263 
     264    my %type_caption = ( 
     265        pragmata => Wx::gettext('Pragmata'), 
     266        modules  => Wx::gettext('Modules'), 
     267        methods  => Wx::gettext('Methods'), 
     268    ); 
     269 
    264270    my $type_elem = undef; 
    265271    if ( defined( $pkg->{$type} ) && scalar( @{ $pkg->{$type} } ) > 0 ) { 
     272        my $type_caption = ucfirst($type); 
     273        if (exists $type_caption{$type}) { 
     274            $type_caption = $type_caption{$type}; 
     275        } 
     276        else { 
     277            warn "Type not translated: $type_caption\n"; 
     278        } 
     279         
    266280        $type_elem = $outlinebar->AppendItem( 
    267281            $root, 
    268             ucfirst($type), 
     282            $type_caption, 
    269283            -1, 
    270284            -1, 
  • trunk/Padre/share/locale/de.po

    r11114 r11115  
    88"Project-Id-Version: 0.23\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2010-03-14 22:11+0100\n" 
     10"POT-Creation-Date: 2010-03-15 00:12+0100\n" 
    1111"PO-Revision-Date: 2010-02-01 10:30+0100\n" 
    1212"Last-Translator: Sebastian Willing\n" 
     
    14331433 
    14341434#: lib/Padre/Wx/Dialog/Find.pm:331 lib/Padre/Wx/Dialog/Replace.pm:535 
    1435 #: lib/Padre/Wx/Dialog/Replace.pm:581 
     1435#: lib/Padre/Wx/Dialog/Replace.pm:582 
    14361436msgid "No matches found" 
    14371437msgstr "Nichts gefunden" 
     
    21102110msgstr "Ersetzen durch:" 
    21112111 
    2112 #: lib/Padre/Wx/Dialog/Replace.pm:536 lib/Padre/Wx/Dialog/Replace.pm:577 
    2113 #: lib/Padre/Wx/Dialog/Replace.pm:582 
     2112#: lib/Padre/Wx/Dialog/Replace.pm:536 lib/Padre/Wx/Dialog/Replace.pm:578 
     2113#: lib/Padre/Wx/Dialog/Replace.pm:583 
    21142114msgid "Search and Replace" 
    21152115msgstr "Suchen und ersetzen" 
     
    46134613msgid "&GoTo Element" 
    46144614msgstr "&Gehe zu Element" 
     4615 
     4616#: lib/Padre/Task/Outline/Perl.pm:265 
     4617msgid "Pragmata" 
     4618msgstr "Pragmata" 
     4619 
     4620#: lib/Padre/Task/Outline/Perl.pm:266 
     4621msgid "Modules" 
     4622msgstr "Module" 
     4623 
     4624#: lib/Padre/Task/Outline/Perl.pm:267 
     4625msgid "Methods" 
     4626msgstr "Methoden" 
    46154627 
    46164628#~ msgid "Yesterday" 
  • trunk/Padre/share/locale/messages.pot

    r11114 r11115  
    99"Project-Id-Version: PACKAGE VERSION\n" 
    1010"Report-Msgid-Bugs-To: \n" 
    11 "POT-Creation-Date: 2010-03-14 22:11+0100\n" 
     11"POT-Creation-Date: 2010-03-15 00:12+0100\n" 
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
     
    13991399 
    14001400#: lib/Padre/Wx/Dialog/Find.pm:331 lib/Padre/Wx/Dialog/Replace.pm:535 
    1401 #: lib/Padre/Wx/Dialog/Replace.pm:581 
     1401#: lib/Padre/Wx/Dialog/Replace.pm:582 
    14021402msgid "No matches found" 
    14031403msgstr "" 
     
    20662066msgstr "" 
    20672067 
    2068 #: lib/Padre/Wx/Dialog/Replace.pm:536 lib/Padre/Wx/Dialog/Replace.pm:577 
    2069 #: lib/Padre/Wx/Dialog/Replace.pm:582 
     2068#: lib/Padre/Wx/Dialog/Replace.pm:536 lib/Padre/Wx/Dialog/Replace.pm:578 
     2069#: lib/Padre/Wx/Dialog/Replace.pm:583 
    20702070msgid "Search and Replace" 
    20712071msgstr "" 
     
    45124512msgid "&GoTo Element" 
    45134513msgstr "" 
     4514 
     4515#: lib/Padre/Task/Outline/Perl.pm:265 
     4516msgid "Pragmata" 
     4517msgstr "" 
     4518 
     4519#: lib/Padre/Task/Outline/Perl.pm:266 
     4520msgid "Modules" 
     4521msgstr "" 
     4522 
     4523#: lib/Padre/Task/Outline/Perl.pm:267 
     4524msgid "Methods" 
     4525msgstr "" 
Note: See TracChangeset for help on using the changeset viewer.