Revert side effect from using the languages list instead a readdir in header: The english language version does not need to link the foo.en.html file, neither does the german page have to link the german version of itself.
Peter Palfrader

Peter Palfrader commited on 2005-10-05 04:15:28
Zeige 1 geänderte Dateien mit 1 Einfügungen und 0 Löschungen.

... ...
@@ -46,6 +46,7 @@
46 46
 	  $page = $WML_SRC_FILENAME;
47 47
 	  $page =~ s/\.wml//;
48 48
 	  for my $dir (sort {$LANGUAGES{$a} cmp $LANGUAGES{$b}} @LANGUAGES) {
49
+	    next if $dir eq '$(LANG)';
49 50
 	    printf('<a href="%s.%s.html"><img src="$(IMGROOT)/%s.png" alt="%s" /></a>', $page, $dir, $dir, $LANGUAGES{$dir}) if (-e "$dir/$WML_SRC_FILENAME");
50 51
 	  };
51 52
 	:>
52 53