aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-04-09 18:17:50 +0000
committerplegall <plg@piwigo.org>2010-04-09 18:17:50 +0000
commit5096c1292c4a55a53e96c25f7037286ed988f07b (patch)
tree328d8d2b87cf4f6a5fbb236b4f7296e469023b35 /tools
parent384108dd89b1d1b06a2d1cca9b169ecbcae10307 (diff)
merge back r5740, I should have commited only the galleries directory
git-svn-id: http://piwigo.org/svn/trunk@5741 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'tools')
-rw-r--r--tools/convert_language_to_2.1.pl1
-rw-r--r--tools/missing_keys.pl24
2 files changed, 12 insertions, 13 deletions
diff --git a/tools/convert_language_to_2.1.pl b/tools/convert_language_to_2.1.pl
index 3b206be65..b78547a33 100644
--- a/tools/convert_language_to_2.1.pl
+++ b/tools/convert_language_to_2.1.pl
@@ -92,7 +92,6 @@ my %remove_keys = (
'Installation finished' => '',
'The next step of the installation is now possible' => '',
'next step' => '',
- 'install_end_message' => '',
}
);
diff --git a/tools/missing_keys.pl b/tools/missing_keys.pl
index 1b83dacb1..7f657a41d 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)$/) {