[or-cvs] Do not mark missing translations as bad if the original its...
Peter Palfrader
weasel at seul.org
Wed Oct 5 02:13:07 UTC 2005
Update of /home/or/cvsroot/website/en
In directory moria:/tmp/cvs-serv6593/en
Modified Files:
howitworks.wml translation-status.wml users.wml
Log Message:
Do not mark missing translations as bad if the original itself is obsolete
Index: howitworks.wml
===================================================================
RCS file: /home/or/cvsroot/website/en/howitworks.wml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- howitworks.wml 4 Oct 2005 19:19:20 -0000 1.2
+++ howitworks.wml 5 Oct 2005 02:13:04 -0000 1.3
@@ -1,5 +1,6 @@
## translation metadata
# Revision: $Revision$
+# Status: obsolete
#include "head.wmi" TITLE="Redirecting" REDIRECT="overview.en"
Index: translation-status.wml
===================================================================
RCS file: /home/or/cvsroot/website/en/translation-status.wml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- translation-status.wml 5 Oct 2005 02:05:59 -0000 1.1
+++ translation-status.wml 5 Oct 2005 02:13:04 -0000 1.2
@@ -30,20 +30,21 @@
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</td>", $files{'en'}->{$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="green">current</td>';
+ printf '<td bgcolor="lightgreen">current</td>';
} else {
printf '<td bgcolor="yellow">%s</td>', $files{$lang}->{$file};
};
delete $files{$lang}->{$file};
} else {
- printf '<td bgcolor="red">missing</td>'
+ printf '<td bgcolor="%s">missing</td>', ($obs ? 'lightgreen' : 'red')
};
};
print "</tr>";
Index: users.wml
===================================================================
RCS file: /home/or/cvsroot/website/en/users.wml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- users.wml 4 Oct 2005 19:19:20 -0000 1.2
+++ users.wml 5 Oct 2005 02:13:04 -0000 1.3
@@ -1,5 +1,6 @@
## translation metadata
# Revision: $Revision$
+# Status: obsolete
#include "head.wmi" TITLE="Redirecting" REDIRECT="support.en"
More information about the tor-commits
mailing list