Файловый менеджер - Редактировать - /home/avadvi5/public_html/WebCalendar/tools/translation_summary.pl
Ðазад
#!/usr/bin/perl # # Examine all translation files to create a report that shows how # many translations are missing from each translation file. # # Usage: # perl translation_summary.pl # ####################################################################### $transdir = '../translations'; opendir ( DIR, $transdir ) || die 'Error opening ' . "$transdir: $!"; # We only want *.txt files, sorted. @files = grep ( /txt$/i, sort readdir ( DIR ) ); closedir ( DIR ); # header printf "%-25s %s\n", 'Language file', 'No. missing translations'; foreach $f ( @files ) { $out = `perl check_translation.pl $transdir/$f`; if ( $out =~ / missing./ ) { # missing some translations @lines = split ( /\n/, $out ); ( $l ) = grep ( / translation.s. missing/, @lines ); if ( $l =~ /^(\d+).*\((\d\S+)% complete/ ) { printf "%-25s %4d (%4.1f%% complete)\n", $f . ':', $1, $2; } } else { # all translations found :-) printf "%-25s %s\n", $f . ':', 'Complete'; } }
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка