- Timestamp:
- Mar 23, 2010, 10:50:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/missing_keys.pl
r5286 r5296 9 9 our %registered_keys = (); 10 10 11 my $piwigo_dir = '/home/pierrick/public_html/piwigo/dev/trunk';12 my $type = $ARGV[ 0];# common, admin, install, upgrade11 my $piwigo_dir = $ARGV[0]; # '/home/pierrick/public_html/piwigo/dev/trunk'; 12 my $type = $ARGV[1]; # common, admin, install, upgrade 13 13 14 14 find(\&used_keys, $piwigo_dir); … … 19 19 20 20 if (not defined $registered_keys{$key}) { 21 print "{".$key."}", ' is missing', "\n";22 #print '$lang[\''.$key.'\'] = \''.$key.'\';', "\n";21 # print "{".$key."}", ' is missing', "\n"; 22 print '$lang[\''.$key.'\'] = \''.$key.'\';', "\n"; 23 23 } 24 24 } … … 35 35 } 36 36 37 if ($File::Find::name =~ m{/(plugins|language )/}) {37 if ($File::Find::name =~ m{/(plugins|language|_data)/}) { 38 38 return 0; 39 39 } … … 70 70 $is_admin = 1; 71 71 } 72 if ($File::Find::name =~ m{/admin\.php$}) { 73 $is_admin = 1; 74 } 72 75 73 76 if (not $is_admin) { … … 83 86 return 0; 84 87 } 85 if ($File::Find::name =~ m{/admin /} or $File::Find::name =~ m{themes/default/template/mail}) {88 if ($File::Find::name =~ m{/admin(/|\.php)} or $File::Find::name =~ m{themes/default/template/mail}) { 86 89 return 0; 87 90 }
Note: See TracChangeset
for help on using the changeset viewer.