Changeset 5403


Ignore:
Timestamp:
06/20/09 02:48:31 (3 years ago)
Author:
szabgab
Message:

generate mo files of all the plugins when running dev.pl -h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/dev.pl

    r5316 r5403  
    5050        my @plugins = grep { $_ =~ /^Padre-Plugin-/ } readdir $dh; 
    5151        foreach my $plugin ( @plugins ) { 
    52             convert_po_to_mo("$dir/$plugin"); 
     52            (my $path = $plugin) =~ s{-}{/}g; 
     53            if (-d  "$dir/$plugin/share/locale" ) { 
     54                convert_po_to_mo("$dir/$plugin"); 
     55            } elsif (-d "$dir/$plugin/lib/$path/share/locale") { 
     56                convert_po_to_mo("$dir/$plugin/lib/$path"); 
     57            } 
    5358            push @cmd, "-I$dir/$plugin/lib"; 
    5459        } 
Note: See TracChangeset for help on using the changeset viewer.