list available languages / translations in the footer of the page - rtl version
Runa A. Sandvik

Runa A. Sandvik commited on 2011-03-23 12:04:06
Zeige 1 geänderte Dateien mit 15 Einfügungen und 0 Löschungen.

... ...
@@ -1,4 +1,6 @@
1 1
 #!/usr/bin/env wml
2
+#use "functions.wmi"
3
+
2 4
     <div id="footer">
3 5
     	<div class="onion"><img src="$(IMGROOT)/onion.jpg" alt="Tor"></div>
4 6
       <div class="about">
... ...
@@ -69,6 +71,19 @@
69 71
         </ul>
70 72
       </div>
71 73
       <!-- END COL -->
74
+
75
+	<!-- List available languages -->
76
+	<div class="col">
77
+	<h4>Languages</h4>
78
+	<: if (has_translations()) {  :>
79
+		<p>
80
+		This page is also available in the following languages:
81
+		<: print list_translations() :>.<br />
82
+		How to set <a href="http://www.debian.org/intro/cn#howtoset">the default document language</a>.
83
+		</p>
84
+	 <: }; :>
85
+	</div>
86
+
72 87
 <!-- LANGUAGE SWITCH CGI 
73 88
       <div class="col wider">
74 89
       	<h4>لغات</h4>
75 90