More languages in the top right and also add them in the footer

This commit is contained in:
Peter Palfrader 2006-01-20 20:34:09 +00:00
parent df72f5c9ac
commit bd12e4c338
9 changed files with 117 additions and 40 deletions

View File

@ -1,25 +1,36 @@
#!/usr/bin/wml
## translation metadata
# Based-On-Revision: 1.4
# Based-On-Revision: 1.5
# Last-Translator: peter@palfrader.org
#use "functions.wmi"
</div>
<div class="bottom" id="bottom">
<p>
<i><a href="mailto:tor-webmaster@freehaven.net" class="smalllink">Webmaster</a></i> -
# Id: developers.html,v 1.41 2005/08/31 20:19:16 thomass Exp
Letzte &auml;nderung: <:{ my @stat = stat('$(LANG)/'.$WML_SRC_FILENAME); print scalar localtime($stat[9]); }:>
-
Zuletzt kompiliert: <: print scalar localtime(); :>
</p>
<: unless (translation_current()) { :>
<p>
<: unless (translation_current()) { :>
<p>
Achtung: Diese &Uuml;bersetzung ist m&ouml;glicherweise veraltet. Das englische Original ist auf
Revision <:= translation_get_masterrevision() :> w&auml;hrend diese &Uuml;bersetzung auf
<:= translation_get_basedonrevision() :> basiert.
<: } :>
</p>
<: } :>
<: if (has_translations()) { :>
<p>
Diese Seite gibt es auch in den folgenden Sprachen:
<: print list_translations() :>.<br>
Wie stellt man <a href="http://www.debian.org/intro/cn">die Standardsprache</a> ein.
</p>
<: }; :>
</div>
</body>
</html>

View File

@ -7,20 +7,31 @@
</div>
<div class="bottom" id="bottom">
<p>
<i><a href="mailto:tor-webmaster@freehaven.net" class="smalllink">Webmaster</a></i> -
# Id: developers.html,v 1.41 2005/08/31 20:19:16 thomass Exp
# please also translate "last modified" and "last compiled"
Last modified: <:{ my @stat = stat('$(LANG)/'.$WML_SRC_FILENAME); print scalar localtime($stat[9]); }:>
-
Last compiled: <: print scalar localtime(); :>
</p>
# Uncomment this in your translation: (and translate it)
#####################################
# <: unless (translation_current()) { :>
# <p>
# <: unless (translation_current()) { :>
# <p>
# Warning: This translation might be obsolete. The English original is at Revision
# <:= translation_get_masterrevision() :> while this translation is based on
# <:= translation_get_basedonrevision() :>.
# <: } :>
# </p>
# <: } :>
<: if (has_translations()) { :>
<p>
This page is also available in the following languages:
<: print list_translations() :>.<br>
How to set <a href="http://www.debian.org/intro/cn">the default document language</a>.
</p>
<: }; :>
</div>
</body>
</html>

View File

@ -1,25 +1,36 @@
#!/usr/bin/wml
## translation metadata
# Based-On-Revision: 1.4
# Based-On-Revision: 1.5
# Last-Translator: ultra.high.temperature@gmail.com
#use "functions.wmi"
</div>
<div class="bottom" id="bottom">
<p>
<i><a href="mailto:tor-webmaster@freehaven.net" class="smalllink">Webmaster</a></i> -
# Id: developers.html,v 1.41 2005/08/31 20:19:16 thomass Exp
Letzte &auml;nderung: <:{ my @stat = stat('$(LANG)/'.$WML_SRC_FILENAME); print scalar localtime($stat[9]); }:>
Dernière modification&nbsp;: <:{ my @stat = stat('$(LANG)/'.$WML_SRC_FILENAME); print scalar localtime($stat[9]); }:>
-
Zuletzt kompiliert: <: print scalar localtime(); :>
Dernière compilation&nbsp;: <: print scalar localtime(); :>
</p>
<: unless (translation_current()) { :>
<p>
Attention: Cette tradcution peut &ecirc;tre obsol&egrave;te. La version anglaise originale est la
<:= translation_get_masterrevision() :> alors que la version traduite est bas&eacute;e sur la
<:= translation_get_basedonrevision() :>.
<: } :>
<: unless (translation_current()) { :>
<p>
Attention: Cette tradcution peut &ecirc;tre obsol&egrave;te. La version anglaise originale est la
<:= translation_get_masterrevision() :> alors que la version traduite est bas&eacute;e sur la
<:= translation_get_basedonrevision() :>.
</p>
<: } :>
<: if (has_translations()) { :>
<p>
Cette page est aussi disponible dans les langues suivantes&nbsp;:
<: print list_translations() :>.<br>
Comment configurer la <a href="http://www.debian.org/intro/cn">langue par d&eacute;faut du document</a>.
</p>
<: }; :>
</div>
</body>
</html>

BIN
images/green-flagspace.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

View File

@ -70,4 +70,23 @@ sub file_is_obsolete($$) {
return (exists $translation->{'Status'} && ($translation->{'Status'} eq 'obsolete'))
};
sub list_translations() {
my @links = ();
my $page = $WML_SRC_FILENAME;
my $numlangs = 0;
$page =~ s/\.wml//;
for my $dir (sort {$LANGUAGES{$a} cmp $LANGUAGES{$b}} @LANGUAGES) {
if (-e "$dir/$WML_SRC_FILENAME") {
if ($dir ne '$(LANG)') {
push @links, sprintf('<a href="%s.html.%s">%s</a>', $page, $dir, $LANGUAGES{$dir});
};
};
};
return join(', ', @links);
};
sub has_translations() {
return list_translations() ne '';
};
:>

View File

@ -57,11 +57,15 @@
my $numlangs = 0;
$page =~ s/\.wml//;
for my $dir (sort {$LANGUAGES{$a} cmp $LANGUAGES{$b}} @LANGUAGES) {
next if $dir eq '$(LANG)';
if (-e "$dir/$WML_SRC_FILENAME") {
printf('<a href="%s.html.%s"><img src="$(IMGROOT)/%s.png" alt="%s" /></a>', $page, $dir, $dir, $LANGUAGES{$dir});
last if ++$numlangs >= 3;
}
if ($dir eq '$(LANG)') {
printf('<img src="$(IMGROOT)/%s.png" alt="%s" /> ', $dir, $LANGUAGES{$dir});
} else {
printf('<a href="%s.html.%s"><img src="$(IMGROOT)/%s.png" alt="%s" /></a> ', $page, $dir, $dir, $LANGUAGES{$dir});
};
} else {
printf('<img src="$(IMGROOT)/green-flagspace.png"/> ');
};
};
}:>
</td>

View File

@ -1,32 +1,42 @@
#!/usr/bin/wml
## translation metadata
# Based-On-Revision: unknown
# Based-On-Revision: 1.5
# Last-Translator: unknown
#use "functions.wmi"
</div>
<div class="bottom" id="bottom">
<p>
<i><a href="mailto:tor-webmaster@freehaven.net" class="smalllink">Webmaster</a></i> -
# Id: developers.html,v 1.41 2005/08/31 20:19:16 thomass Exp
Last modified: <:{ my @stat = stat('$(LANG)/'.$WML_SRC_FILENAME); print scalar localtime($stat[9]); }:>
Ultima modifica: <:{ my @stat = stat('$(LANG)/'.$WML_SRC_FILENAME); print scalar localtime($stat[9]); }:>
-
Last compiled: <: print scalar localtime(); :>
Ultimo moltiplicato: <: print scalar localtime(); :>
</p>
# Uncomment this in your translation: (and translate it)
#####################################
<: unless (translation_current()) { :>
<p>
Warning: This translation might be obsolete. The English original is at Revision
<:= translation_get_masterrevision() :> while this translation is based on
<: unless (translation_current()) { :>
<p>
Attenzione: Questo traduzione puo essere antiquato. L'originale Inglese si puo trovare
<:= translation_get_masterrevision() :> dunque questo traduzione basa su
<:= translation_get_basedonrevision() :>.
<: } :>
</p>
<: } :>
<p>Questa traduzione non &egrave; stata controllata dagli sviluppatori di
<: if (has_translations()) { :>
<p>
Questa pagina &egrave; disponibile anche nelle lingue seguenti:
<: print list_translations() :>.<br>
Come configurare <a href="http://www.debian.org/intro/cn">la lingua predefinita per i documenti</a>.
</p>
<: }; :>
<p>Questa traduzione non &egrave; stata controllata dagli sviluppatori di
Tor e da EFF. Pu&ograve; risultare non attuale o sbagliata. Il sito
ufficiale di Tor &egrave; in Inglese, all'indirizzo
http://tor.eff.org/</p>
http://tor.eff.org/
</p>
</div>
</body>
</html>

View File

@ -1,27 +1,38 @@
#!/usr/bin/wml
## translation metadata
# Based-On-Revision: 1.4
# Based-On-Revision: 1.5
# Last-Translator: thomass@seul.org
#use "functions.wmi"
</div>
<div class="bottom" id="bottom">
<p>
<i><a href="mailto:tor-webmaster@freehaven.net" class="smalllink">Webmaster</a></i> -
# Id: developers.html,v 1.41 2005/08/31 20:19:16 thomass Exp
Last modified: <:{ my @stat = stat('$(LANG)/'.$WML_SRC_FILENAME); print scalar localtime($stat[9]); }:>
Senast uppdaterad: <:{ my @stat = stat('$(LANG)/'.$WML_SRC_FILENAME); print scalar localtime($stat[9]); }:>
-
Last compiled: <: print scalar localtime(); :>
Senast kompilerad: <: print scalar localtime(); :>
</p>
# Uncomment this in your translation: (and translate it)
#####################################
<: unless (translation_current()) { :>
<p>
<: unless (translation_current()) { :>
<p>
Varning: Denna översättning kan vara gammal. Det engelska originalet är revision
<:= translation_get_masterrevision() :> och denna översättning är baserad på
<:= translation_get_basedonrevision() :>.
<: } :>
</p>
<: } :>
<: if (has_translations()) { :>
<p>
Denna sida finns även på följande språk:
<: print list_translations() :>.<br>
Så ställer du in <a href="http://www.debian.org/intro/cn">standardspråkval för dokument</a>.
</p>
<: }; :>
</div>
</body>
</html>

View File

@ -202,7 +202,7 @@ td.banner-middle a:hover {
td.banner-right {
background-image: url("images/top-right.png");
background-repeat: no-repeat;
width: 40px;
width: 60px;
background-position: right;
padding-top: 8px;
}