summaryrefslogtreecommitdiff
path: root/htroot/ConfigBasic.html
diff options
context:
space:
mode:
authorlotus <lotus@6c8d7289-2bf4-0310-a012-ef5d649a1542>2010-11-13 14:27:30 +0000
committerlotus <lotus@6c8d7289-2bf4-0310-a012-ef5d649a1542>2010-11-13 14:27:30 +0000
commit25426c6548f9c0ffc55f6494ef6a308af6ed9862 (patch)
tree25628db8bbeed9dc05301669b00218d4aebdec82 /htroot/ConfigBasic.html
parent11ae5b108e6360bc3b1b889456a89728db63c8be (diff)
change language immediately
there is a bad behaviour: if language is changed, servlets are translated but the returning servlet is yet the old one. therefore the page is loaded again after language changed. git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7321 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'htroot/ConfigBasic.html')
-rw-r--r--htroot/ConfigBasic.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/htroot/ConfigBasic.html b/htroot/ConfigBasic.html
index 05b07bdf8..2f69141b7 100644
--- a/htroot/ConfigBasic.html
+++ b/htroot/ConfigBasic.html
@@ -13,6 +13,8 @@
</script>
<!-- redirecting browser if port was changed -->
#(reconnect)#::<meta http-equiv="refresh" content="10; url=#(sslSupport)#http::https#(/sslSupport)#://#[host]#:#[port]#/ConfigBasic.html" />#(/reconnect)#
+ <!-- redirecting browser if language was changed -->
+ #(changedLanguage)#::<meta http-equiv="refresh" content="0; url=ConfigBasic.html" />#(/changedLanguage)#
</head>
<body id="ConfigBasic">
#%env/templates/header.template%#
@@ -30,11 +32,13 @@
<li>
<img src="/env/grafics/ok.png" height="16" width="16" alt="ok" />&nbsp;Select a language for the interface:<br />
<fieldset>
- <input type="radio" name="language" id="lang_de" value="de" #(langDeutsch)#::checked="checked"#(/langDeutsch)# /><label for="lang_de">Deutsch</label>&nbsp;
- <input type="radio" name="language" id="lang_fr" value="fr" #(langFrancais)#::checked="checked"#(/langFrancais)# /><label for="lang_de">Fran&ccedil;ais</label>&nbsp;
- <input type="radio" name="language" value="default" id="lang_en" #(langEnglish)#::checked="checked"#(/langEnglish)# /><label for="lang_en">English</label>
+ <input type="radio" name="language" id="lang_de" value="de" onchange="this.form.submit()" #(langDeutsch)#::checked="checked"#(/langDeutsch)# /><label for="lang_de">Deutsch</label>&nbsp;
+ <input type="radio" name="language" id="lang_fr" value="fr" onchange="this.form.submit()" #(langFrancais)#::checked="checked"#(/langFrancais)# /><label for="lang_fr">Fran&ccedil;ais</label>&nbsp;
+ <input type="radio" name="language" value="default" id="lang_en" onchange="this.form.submit()" #(langEnglish)#::checked="checked"#(/langEnglish)# /><label for="lang_en">English</label>
</fieldset>
</li>
+ <!-- take care that no other items are changed, but also change the former if no js is enabled -->
+ <script type="text/javascript"> document.write('</form><form action="ConfigBasic.html" method="get">'); </script>
#(setUseCase)#::
<li>