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

Peter Palfrader commited on 2006-01-20 21:34:09
Zeige 9 geänderte Dateien mit 97 Einfügungen und 20 Löschungen.

... ...
@@ -1,25 +1,36 @@
1 1
 #!/usr/bin/wml
2 2
 
3 3
 ## translation metadata
4
-# Based-On-Revision: 1.4
4
+# Based-On-Revision: 1.5
5 5
 # Last-Translator: peter@palfrader.org
6 6
 
7 7
 #use "functions.wmi"
8 8
 
9 9
 </div>
10 10
   <div class="bottom" id="bottom">
11
+     <p>
11 12
      <i><a href="mailto:tor-webmaster@freehaven.net" class="smalllink">Webmaster</a></i> -
12 13
 #     Id: developers.html,v 1.41 2005/08/31 20:19:16 thomass Exp 
13 14
       Letzte &auml;nderung: <:{ my @stat = stat('$(LANG)/'.$WML_SRC_FILENAME); print scalar localtime($stat[9]); }:>
14 15
       -
15 16
       Zuletzt kompiliert: <: print scalar localtime(); :>
17
+     </p>
16 18
 
17 19
    <: unless (translation_current()) { :>
18 20
      <p>
19 21
       Achtung: Diese &Uuml;bersetzung ist m&ouml;glicherweise veraltet.  Das englische Original ist auf
20 22
       Revision <:= translation_get_masterrevision() :> w&auml;hrend diese &Uuml;bersetzung auf
21 23
       <:= translation_get_basedonrevision() :> basiert.
24
+     </p>
22 25
    <: } :>
26
+
27
+   <: if (has_translations()) {  :>
28
+     <p>
29
+       Diese Seite gibt es auch in den folgenden Sprachen:
30
+       <: print list_translations() :>.<br>
31
+       Wie stellt man <a href="http://www.debian.org/intro/cn">die Standardsprache</a> ein.
32
+     </p>
33
+   <: }; :>
23 34
   </div>
24 35
 </body>
25 36
 </html>
... ...
@@ -7,12 +7,14 @@
7 7
 
8 8
 </div>
9 9
   <div class="bottom" id="bottom">
10
+     <p>
10 11
      <i><a href="mailto:tor-webmaster@freehaven.net" class="smalllink">Webmaster</a></i> -
11 12
 #     Id: developers.html,v 1.41 2005/08/31 20:19:16 thomass Exp 
13
+# please also translate "last modified" and "last compiled"
12 14
       Last modified: <:{ my @stat = stat('$(LANG)/'.$WML_SRC_FILENAME); print scalar localtime($stat[9]); }:>
13 15
       -
14 16
       Last compiled: <: print scalar localtime(); :>
15
-
17
+     </p>
16 18
 # Uncomment this in your translation:  (and translate it)
17 19
 #####################################
18 20
 #   <: unless (translation_current()) { :>
... ...
@@ -20,7 +22,16 @@
20 22
 #      Warning:  This translation might be obsolete.  The English original is at Revision
21 23
 #      <:= translation_get_masterrevision() :> while this translation is based on
22 24
 #      <:= translation_get_basedonrevision() :>.
25
+#     </p>
23 26
 #   <: } :>
27
+
28
+   <: if (has_translations()) {  :>
29
+     <p>
30
+       This page is also available in the following languages:
31
+       <: print list_translations() :>.<br>
32
+       How to set <a href="http://www.debian.org/intro/cn">the default document language</a>.
33
+     </p>
34
+   <: }; :>
24 35
   </div>
25 36
 </body>
26 37
 </html>
... ...
@@ -1,25 +1,36 @@
1 1
 #!/usr/bin/wml
2 2
 
3 3
 ## translation metadata
4
-# Based-On-Revision: 1.4
4
+# Based-On-Revision: 1.5
5 5
 # Last-Translator: ultra.high.temperature@gmail.com
6 6
 
7 7
 #use "functions.wmi"
8 8
 
9 9
 </div>
10 10
   <div class="bottom" id="bottom">
11
+     <p>
11 12
      <i><a href="mailto:tor-webmaster@freehaven.net" class="smalllink">Webmaster</a></i> -
12 13
 #     Id: developers.html,v 1.41 2005/08/31 20:19:16 thomass Exp 
13
-      Letzte &auml;nderung: <:{ my @stat = stat('$(LANG)/'.$WML_SRC_FILENAME); print scalar localtime($stat[9]); }:>
14
+      Derni�re modification&nbsp;: <:{ my @stat = stat('$(LANG)/'.$WML_SRC_FILENAME); print scalar localtime($stat[9]); }:>
14 15
       -
15
-      Zuletzt kompiliert: <: print scalar localtime(); :>
16
+      Derni�re compilation&nbsp;: <: print scalar localtime(); :>
17
+     </p>
16 18
 
17 19
    <: unless (translation_current()) { :>
18 20
      <p>
19 21
       Attention: Cette tradcution peut &ecirc;tre obsol&egrave;te. La version anglaise originale est la
20 22
       <:= translation_get_masterrevision() :> alors que la version traduite est bas&eacute;e sur la
21 23
       <:= translation_get_basedonrevision() :>.
24
+     </p>
22 25
    <: } :>
26
+
27
+   <: if (has_translations()) {  :>
28
+     <p>
29
+       Cette page est aussi disponible dans les langues suivantes&nbsp;:
30
+       <: print list_translations() :>.<br>
31
+       Comment configurer la <a href="http://www.debian.org/intro/cn">langue par d&eacute;faut du document</a>.
32
+     </p>
33
+   <: }; :>
23 34
   </div>
24 35
 </body>
25 36
 </html>
... ...
@@ -70,4 +70,23 @@ sub file_is_obsolete($$) {
70 70
 	return (exists $translation->{'Status'} && ($translation->{'Status'} eq 'obsolete'))
71 71
 };
72 72
 
73
+sub list_translations() {
74
+  my @links = ();
75
+  my $page = $WML_SRC_FILENAME;
76
+  my $numlangs = 0;
77
+  $page =~ s/\.wml//;
78
+  for my $dir (sort {$LANGUAGES{$a} cmp $LANGUAGES{$b}} @LANGUAGES) {
79
+    if (-e "$dir/$WML_SRC_FILENAME") {
80
+      if ($dir ne '$(LANG)') {
81
+        push @links, sprintf('<a href="%s.html.%s">%s</a>', $page, $dir, $LANGUAGES{$dir});
82
+      };
83
+    };
84
+  };
85
+  return join(', ', @links);
86
+};
87
+
88
+sub has_translations() {
89
+  return list_translations() ne '';
90
+};
91
+
73 92
 :>
... ...
@@ -57,11 +57,15 @@
57 57
 	  my $numlangs = 0;
58 58
 	  $page =~ s/\.wml//;
59 59
 	  for my $dir (sort {$LANGUAGES{$a} cmp $LANGUAGES{$b}} @LANGUAGES) {
60
-	    next if $dir eq '$(LANG)';
61 60
 	    if (-e "$dir/$WML_SRC_FILENAME") {
61
+	      if ($dir eq '$(LANG)') {
62
+	        printf('<img src="$(IMGROOT)/%s.png" alt="%s" /> ', $dir, $LANGUAGES{$dir});
63
+	      } else {
62 64
 	        printf('<a href="%s.html.%s"><img src="$(IMGROOT)/%s.png" alt="%s" /></a> ', $page, $dir, $dir, $LANGUAGES{$dir});
63
-	      last if ++$numlangs >= 3;
64
-	    }
65
+	      };
66
+	    } else {
67
+	      printf('<img src="$(IMGROOT)/green-flagspace.png"/> ');
68
+	    };
65 69
 	  };
66 70
 	}:>
67 71
         </td>
... ...
@@ -1,32 +1,42 @@
1 1
 #!/usr/bin/wml
2 2
 
3 3
 ## translation metadata
4
-# Based-On-Revision: unknown
4
+# Based-On-Revision: 1.5
5 5
 # Last-Translator: unknown
6 6
 
7 7
 #use "functions.wmi"
8 8
 
9 9
 </div>
10 10
   <div class="bottom" id="bottom">
11
+     <p>
11 12
      <i><a href="mailto:tor-webmaster@freehaven.net" class="smalllink">Webmaster</a></i> -
12 13
 #     Id: developers.html,v 1.41 2005/08/31 20:19:16 thomass Exp 
13
-      Last modified: <:{ my @stat = stat('$(LANG)/'.$WML_SRC_FILENAME); print scalar localtime($stat[9]); }:>
14
+      Ultima modifica: <:{ my @stat = stat('$(LANG)/'.$WML_SRC_FILENAME); print scalar localtime($stat[9]); }:>
14 15
       -
15
-      Last compiled: <: print scalar localtime(); :>
16
+      Ultimo moltiplicato: <: print scalar localtime(); :>
17
+     </p>
16 18
 
17
-# Uncomment this in your translation:  (and translate it)
18
-#####################################
19 19
    <: unless (translation_current()) { :>
20 20
      <p>
21
-      Warning:  This translation might be obsolete.  The English original is at Revision
22
-      <:= translation_get_masterrevision() :> while this translation is based on
21
+      Attenzione:  Questo traduzione puo essere antiquato.  L'originale Inglese si puo trovare
22
+      <:= translation_get_masterrevision() :> dunque questo traduzione basa su
23 23
       <:= translation_get_basedonrevision() :>.
24
+     </p>
24 25
    <: } :>
25 26
 
27
+   <: if (has_translations()) {  :>
28
+     <p>
29
+       Questa pagina &egrave; disponibile anche nelle lingue seguenti:
30
+       <: print list_translations() :>.<br>
31
+       Come configurare <a href="http://www.debian.org/intro/cn">la lingua predefinita per i documenti</a>.
32
+     </p>
33
+   <: }; :>
34
+
26 35
      <p>Questa traduzione non &egrave; stata controllata dagli sviluppatori di
27 36
       Tor e da EFF. Pu&ograve; risultare non attuale o sbagliata. Il sito
28 37
       ufficiale di Tor &egrave; in Inglese, all'indirizzo
29
-      http://tor.eff.org/</p>
38
+      http://tor.eff.org/
39
+     </p>
30 40
   </div>
31 41
 </body>
32 42
 </html>
... ...
@@ -1,18 +1,20 @@
1 1
 #!/usr/bin/wml
2 2
 
3 3
 ## translation metadata
4
-# Based-On-Revision: 1.4
4
+# Based-On-Revision: 1.5
5 5
 # Last-Translator: thomass@seul.org
6 6
 
7 7
 #use "functions.wmi"
8 8
 
9 9
 </div>
10 10
   <div class="bottom" id="bottom">
11
+     <p>
11 12
      <i><a href="mailto:tor-webmaster@freehaven.net" class="smalllink">Webmaster</a></i> -
12 13
 #     Id: developers.html,v 1.41 2005/08/31 20:19:16 thomass Exp 
13
-      Last modified: <:{ my @stat = stat('$(LANG)/'.$WML_SRC_FILENAME); print scalar localtime($stat[9]); }:>
14
+      Senast uppdaterad: <:{ my @stat = stat('$(LANG)/'.$WML_SRC_FILENAME); print scalar localtime($stat[9]); }:>
14 15
       -
15
-      Last compiled: <: print scalar localtime(); :>
16
+      Senast kompilerad: <: print scalar localtime(); :>
17
+     </p>
16 18
 
17 19
 # Uncomment this in your translation:  (and translate it)
18 20
 #####################################
... ...
@@ -21,7 +23,16 @@
21 23
       Varning: Denna �vers�ttning kan vara gammal.  Det engelska originalet �r revision
22 24
       <:= translation_get_masterrevision() :> och denna �vers�ttning �r baserad p�
23 25
       <:= translation_get_basedonrevision() :>.
26
+     </p>
24 27
    <: } :>
28
+
29
+   <: if (has_translations()) {  :>
30
+     <p>
31
+       Denna sida finns �ven p� f�ljande spr�k:
32
+       <: print list_translations() :>.<br>
33
+       S� st�ller du in <a href="http://www.debian.org/intro/cn">standardspr�kval f�r dokument</a>.
34
+     </p>
35
+   <: }; :>
25 36
   </div>
26 37
 </body>
27 38
 </html>
... ...
@@ -202,7 +202,7 @@ td.banner-middle a:hover {
202 202
 td.banner-right {
203 203
     background-image: url("images/top-right.png");
204 204
     background-repeat: no-repeat;
205
-    width: 40px;
205
+    width: 60px;
206 206
     background-position: right;
207 207
     padding-top: 8px;
208 208
 }
209 209