aboutsummaryrefslogtreecommitdiffstats
path: root/tools/missing_keys.pl
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-04-09 18:01:14 +0000
committerplegall <plg@piwigo.org>2010-04-09 18:01:14 +0000
commit384108dd89b1d1b06a2d1cca9b169ecbcae10307 (patch)
tree1bc65b99ce22e0402f5a579d774e4b2f546cf503 /tools/missing_keys.pl
parent96a2b84f6a8271465c95beb61a3c1bc8e508ebb7 (diff)
bug 1589: remove obsolete .csvignore file
git-svn-id: http://piwigo.org/svn/trunk@5740 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'tools/missing_keys.pl')
-rw-r--r--tools/missing_keys.pl24
1 files changed, 12 insertions, 12 deletions
diff --git a/tools/missing_keys.pl b/tools/missing_keys.pl
index 7f657a41d..1b83dacb1 100644
--- a/tools/missing_keys.pl
+++ b/tools/missing_keys.pl
@@ -14,14 +14,14 @@ my $type = $ARGV[1]; # common, admin, install, upgrade
find(\&used_keys, $piwigo_dir);
load_registered_keys($type);
-# foreach my $key (sort keys %used_keys) {
-# # print "{".$key."}", ' is used', "\n";
+foreach my $key (sort keys %used_keys) {
+ # print "{".$key."}", ' is used', "\n";
-# if (not defined $registered_keys{$key}) {
-# # print "{".$key."}", ' is missing', "\n";
-# print '$lang[\''.$key.'\'] = \''.$key.'\';', "\n";
-# }
-# }
+ if (not defined $registered_keys{$key}) {
+ # print "{".$key."}", ' is missing', "\n";
+ print '$lang[\''.$key.'\'] = \''.$key.'\';', "\n";
+ }
+}
my %ignore_keys = (
'%d new image' => 1,
@@ -74,11 +74,11 @@ my %ignore_keys = (
);
-foreach my $key (sort keys %registered_keys) {
- if (not defined $used_keys{$key} and not defined $ignore_keys{$key}) {
- print "{".$key."}", ' is not used anywhere', "\n";
- }
-}
+# foreach my $key (sort keys %registered_keys) {
+# if (not defined $used_keys{$key} and not defined $ignore_keys{$key}) {
+# print "{".$key."}", ' is not used anywhere', "\n";
+# }
+# }
sub used_keys {
if ($File::Find::name !~ m/(tpl|php)$/) {