mirror of
https://github.com/torproject/webwml.git
synced 2025-03-07 01:37:22 +00:00
More languages in the top right and also add them in the footer
This commit is contained in:
parent
df72f5c9ac
commit
bd12e4c338
19
de/foot.wmi
19
de/foot.wmi
@ -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 ä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 Übersetzung ist möglicherweise veraltet. Das englische Original ist auf
|
||||
Revision <:= translation_get_masterrevision() :> während diese Ü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>
|
||||
|
19
en/foot.wmi
19
en/foot.wmi
@ -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>
|
||||
|
29
fr/foot.wmi
29
fr/foot.wmi
@ -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 änderung: <:{ my @stat = stat('$(LANG)/'.$WML_SRC_FILENAME); print scalar localtime($stat[9]); }:>
|
||||
Dernière modification : <:{ my @stat = stat('$(LANG)/'.$WML_SRC_FILENAME); print scalar localtime($stat[9]); }:>
|
||||
-
|
||||
Zuletzt kompiliert: <: print scalar localtime(); :>
|
||||
Dernière compilation : <: print scalar localtime(); :>
|
||||
</p>
|
||||
|
||||
<: unless (translation_current()) { :>
|
||||
<p>
|
||||
Attention: Cette tradcution peut être obsolète. La version anglaise originale est la
|
||||
<:= translation_get_masterrevision() :> alors que la version traduite est basée sur la
|
||||
<:= translation_get_basedonrevision() :>.
|
||||
<: } :>
|
||||
<: unless (translation_current()) { :>
|
||||
<p>
|
||||
Attention: Cette tradcution peut être obsolète. La version anglaise originale est la
|
||||
<:= translation_get_masterrevision() :> alors que la version traduite est basée sur la
|
||||
<:= translation_get_basedonrevision() :>.
|
||||
</p>
|
||||
<: } :>
|
||||
|
||||
<: if (has_translations()) { :>
|
||||
<p>
|
||||
Cette page est aussi disponible dans les langues suivantes :
|
||||
<: print list_translations() :>.<br>
|
||||
Comment configurer la <a href="http://www.debian.org/intro/cn">langue par défaut du document</a>.
|
||||
</p>
|
||||
<: }; :>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
BIN
images/green-flagspace.png
Normal file
BIN
images/green-flagspace.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 166 B |
@ -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 '';
|
||||
};
|
||||
|
||||
:>
|
||||
|
@ -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>
|
||||
|
34
it/foot.wmi
34
it/foot.wmi
@ -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 è stata controllata dagli sviluppatori di
|
||||
<: if (has_translations()) { :>
|
||||
<p>
|
||||
Questa pagina è 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 è stata controllata dagli sviluppatori di
|
||||
Tor e da EFF. Può risultare non attuale o sbagliata. Il sito
|
||||
ufficiale di Tor è in Inglese, all'indirizzo
|
||||
http://tor.eff.org/</p>
|
||||
http://tor.eff.org/
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
23
se/foot.wmi
23
se/foot.wmi
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user