Andrew Lewman commited on 2011-06-08 13:37:46
Zeige 1 geänderte Dateien mit 38 Einfügungen und 38 Löschungen.
| ... | ... |
@@ -57,7 +57,7 @@ |
| 57 | 57 |
<li><a href="<page getinvolved/mirrors>">Mirrors</a></li> |
| 58 | 58 |
<li><a href="<page docs/hidden-services>">Hidden Services</a></li> |
| 59 | 59 |
<li><a href="<page getinvolved/translation>">Translations</a></li> |
| 60 |
- <li><a href="<page getinvolved/open-positions>">Careers</a></li> |
|
| 60 |
+# <li><a href="<page getinvolved/open-positions>">Careers</a></li> |
|
| 61 | 61 |
</ul> |
| 62 | 62 |
</div> |
| 63 | 63 |
<!-- END COL --> |
| ... | ... |
@@ -84,44 +84,44 @@ |
| 84 | 84 |
<: }; :> |
| 85 | 85 |
</div> |
| 86 | 86 |
|
| 87 |
-<!-- LANGUAGE SWITCH CGI |
|
| 88 |
- <div class="col wider"> |
|
| 89 |
- <h4>Languages</h4> |
|
| 90 |
- # this is a cgi trampoline to bounce us to the right page |
|
| 91 |
- # alternately, if the client supports javascript we can redirect that way |
|
| 92 |
- # noscript does not block onclick but clients may have disabled javascript completely |
|
| 87 |
+# LANGUAGE SWITCH CGI |
|
| 88 |
+# <div class="col wider"> |
|
| 89 |
+# <h4>Languages</h4> |
|
| 90 |
+# # this is a cgi trampoline to bounce us to the right page |
|
| 91 |
+# # alternately, if the client supports javascript we can redirect that way |
|
| 92 |
+# # noscript does not block onclick but clients may have disabled javascript completely |
|
| 93 |
+# # |
|
| 94 |
+# # for this to work we need to know the relative path from the document root |
|
| 95 |
+# # to the current directory that wml is in. |
|
| 96 |
+# <form action="$(DOCROOT)/cgi-bin/languageswitch.cgi"> |
|
| 97 |
+# <select name="Language" id="lang"> |
|
| 98 |
+# <:{
|
|
| 99 |
+# #import "perl-globals.wmi"; |
|
| 100 |
+# use Cwd; |
|
| 101 |
+# use Cwd 'abs_path'; |
|
| 102 |
+# use File::Spec; |
|
| 103 |
+# my $urlbase = File::Spec->abs2rel(getcwd(),abs_path("$(DOCROOT)"));
|
|
| 104 |
+# my $LANGUAGES; |
|
| 105 |
+# my $page = $WML_SRC_FILENAME; |
|
| 106 |
+# opendir(DIR, getcwd()) or die $!; |
|
| 107 |
+# # take a look and see what language support we have |
|
| 108 |
+# while (my $file = readdir(DIR)) {
|
|
| 109 |
+# if (-d $file) {
|
|
| 110 |
+# if (-e "$file/$page") {
|
|
| 111 |
+# my $url = $urlbase.'/'.$WML_SRC_BASENAME.'.html.'.$file; |
|
| 112 |
+# my $url2js = $WML_SRC_BASENAME.'.html.'.$file; |
|
| 113 |
+# print '<option value="'.$url.'" onclick="window.location=\''.$url2js.'\'">'.$LANGUAGES{$file}.'</option>'."\n" unless not defined $LANGUAGES{$file};
|
|
| 114 |
+# } |
|
| 115 |
+# } |
|
| 116 |
+# } |
|
| 117 |
+# closedir(DIR); |
|
| 118 |
+# }:> |
|
| 119 |
+# </select> |
|
| 120 |
+# <input class="go" type="submit" name="submit" value="Go"> |
|
| 121 |
+# </form> |
|
| 122 |
+# <p>Questions on this? Visit <a href="http://www.debian.org/intro/cn#howtoset">how to set the default document language</a>.</p> |
|
| 123 |
+# </div> |
|
| 93 | 124 |
# |
| 94 |
- # for this to work we need to know the relative path from the document root |
|
| 95 |
- # to the current directory that wml is in. |
|
| 96 |
- <form action="$(DOCROOT)/cgi-bin/languageswitch.cgi"> |
|
| 97 |
- <select name="Language" id="lang"> |
|
| 98 |
- <:{
|
|
| 99 |
- #import "perl-globals.wmi"; |
|
| 100 |
- use Cwd; |
|
| 101 |
- use Cwd 'abs_path'; |
|
| 102 |
- use File::Spec; |
|
| 103 |
- my $urlbase = File::Spec->abs2rel(getcwd(),abs_path("$(DOCROOT)"));
|
|
| 104 |
- my $LANGUAGES; |
|
| 105 |
- my $page = $WML_SRC_FILENAME; |
|
| 106 |
- opendir(DIR, getcwd()) or die $!; |
|
| 107 |
- # take a look and see what language support we have |
|
| 108 |
- while (my $file = readdir(DIR)) {
|
|
| 109 |
- if (-d $file) {
|
|
| 110 |
- if (-e "$file/$page") {
|
|
| 111 |
- my $url = $urlbase.'/'.$WML_SRC_BASENAME.'.html.'.$file; |
|
| 112 |
- my $url2js = $WML_SRC_BASENAME.'.html.'.$file; |
|
| 113 |
- print '<option value="'.$url.'" onclick="window.location=\''.$url2js.'\'">'.$LANGUAGES{$file}.'</option>'."\n" unless not defined $LANGUAGES{$file};
|
|
| 114 |
- } |
|
| 115 |
- } |
|
| 116 |
- } |
|
| 117 |
- closedir(DIR); |
|
| 118 |
- }:> |
|
| 119 |
- </select> |
|
| 120 |
- <input class="go" type="submit" name="submit" value="Go"> |
|
| 121 |
- </form> |
|
| 122 |
- <p>Questions on this? Visit <a href="http://www.debian.org/intro/cn#howtoset">how to set the default document language</a>.</p> |
|
| 123 |
- </div> |
|
| 124 |
---> |
|
| 125 | 125 |
</div> |
| 126 | 126 |
<!-- END FOOTER --> |
| 127 | 127 |
|
| 128 | 128 |