Browse code

list available languages / translations in the footer of the page

Runa A. Sandvik authored on23/03/2011 11:55:36
Showing1 changed files
... ...
@@ -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 wider">
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>Languages</h4>