refactor: translation-tool.pl code formating with perltidy
# Note, while the migration to Jenkins this file will report the keys which should point
# to Jenkins instead of the old name.
+use warnings;
use strict;
use File::Basename;
use File::Find;
@@ -73,7 +74,6 @@ foreach (@ARGV) {
}
}
-
## language parameter is mandatory and shouldn't be 'en'
if (!$lang || $lang eq "en") {
usage();
@@ -118,7 +118,6 @@ printf "\nTOTAL: Files: %d Keys: %d Done: %d(%.2f%%)\n Missing: %d(%.2f%%)
## end
exit();
-
### This is the main method with is run for each file
sub processFile {
@@ -186,7 +185,6 @@ sub processFile {
}
}
-
# Show Alerts
print "\nFile: $ofile\n$missing$unused$same$nj" if ($missing ne "" || $unused ne '' || $same ne '' || $nj ne '');
@@ -202,6 +200,7 @@ sub processFile {
print F $cache{$_}."\n";
} else {
if ($counter) {
+
# add unique value for each added translation
print F "---TranslateMe ".$countervalue."--- ".($ekeys{$_} ? $ekeys{$_} : $_)."\n";
} else {
@@ -279,7 +278,6 @@ sub loadJellyFile {
return %ret;
}
-
# Fill a hash with key/value pairs from a .properties file
sub loadPropertiesFile {
my $file = shift;
