git.schokokeks.org
Repositories
Help
Report an Issue
tor-webwml.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
c0884e60a
Branches
Tags
bridges
docs-debian
jobs
master
press-clips
tor-webwml.git
en
translation-status.wml
Do not mark missing translations as bad if the original itself is obsolete
Peter Palfrader
commited
c0884e60a
at 2005-10-05 04:13:04
translation-status.wml
Blame
History
Raw
## translation metadata # Revision: $Revision$ #include "head.wmi" TITLE="Translation status" <div class="main-column"> <h2>Tor: Translation status</h2> <hr /> <: my %files; for my $lang (@LANGUAGES) { opendir(DIR, $lang) or die ("Cannot opendir $lang: $!\n"); my @files = grep { $_ ne '.' && $_ ne '..' && $_ =~ m/^[^.]/ && -f $lang.'/'.$_} readdir(DIR); closedir DIR; for my $file (@files) { if ($lang eq 'en') { $files{$lang}->{$file} = translation_get_masterrevision_file($file); } else { $files{$lang}->{$file} = translation_get_basedonrevision_langfile($lang, $file); }; }; }; print "<table border=1>\n"; print "<tr>\n"; print "<th>File</th>\n"; printf("<th>%s</th>\n", $LANGUAGES{$_}) for (@LANGUAGES); print "</tr>\n"; for my $file (sort {$a cmp $b} keys %{$files{'en'}}) { my $obs = file_is_obsolete('en', $file); print "<tr>"; printf "<th>%s</th>", $file; printf "<td%s>%s%s</td>", ($obs ? ' bgcolor="grey"' : ''), $files{'en'}->{$file}, ($obs ? ' (obsolete)' :''); for my $lang (@LANGUAGES) { next if $lang eq 'en'; if (exists $files{$lang}->{$file}) { if ($files{$lang}->{$file} eq $files{'en'}->{$file}) { printf '<td bgcolor="lightgreen">current</td>'; } else { printf '<td bgcolor="yellow">%s</td>', $files{$lang}->{$file}; }; delete $files{$lang}->{$file}; } else { printf '<td bgcolor="%s">missing</td>', ($obs ? 'lightgreen' : 'red') }; }; print "</tr>"; }; print "</table>\n"; for my $lang (@LANGUAGES) { next if $lang eq 'en'; if (keys %{$files{$lang}} > 0) { printf "<h2>Additional files in %s</h2>\n", $LANGUAGES{$lang}; print "<table border=1>\n"; print "<tr>\n"; print "<th>File</th>\n"; print "<th>Based on Revision</th>\n"; print "</tr>\n"; for my $file (sort {$a cmp $b} keys %{$files{$lang}}) { print "<tr>"; printf "<th>%s</th>", $file; printf "<td>%s</td>", $files{$lang}->{$file}; delete $files{$lang}->{$file}; }; print "</table>\n"; }; }; :> </div><!-- #main --> #include <foot.wmi>