added 'francais' as language option for default configuration

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7131 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 14 years ago
parent 4c21d8dc9d
commit 013926f01c

@ -31,6 +31,7 @@
<img src="/env/grafics/ok.png" height="16" width="16" alt="ok" />&nbsp;Select a language for the interface:<br /> <img src="/env/grafics/ok.png" height="16" width="16" alt="ok" />&nbsp;Select a language for the interface:<br />
<fieldset> <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_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" value="default" id="lang_en" #(langEnglish)#::checked="checked"#(/langEnglish)# /><label for="lang_en">English</label>
</fieldset> </fieldset>
</li> </li>

@ -239,12 +239,19 @@ public class ConfigBasic {
lang = env.getConfig("locale.language", "default"); // re-assign lang, may have changed lang = env.getConfig("locale.language", "default"); // re-assign lang, may have changed
if (lang.equals("default")) { if (lang.equals("default")) {
prop.put("langDeutsch", "0"); prop.put("langDeutsch", "0");
prop.put("langFrancais", "0");
prop.put("langEnglish", "1"); prop.put("langEnglish", "1");
} else if (lang.equals("fr")) {
prop.put("langDeutsch", "0");
prop.put("langFrancais", "1");
prop.put("langEnglish", "0");
} else if (lang.equals("de")) { } else if (lang.equals("de")) {
prop.put("langDeutsch", "1"); prop.put("langDeutsch", "1");
prop.put("langFrancais", "0");
prop.put("langEnglish", "0"); prop.put("langEnglish", "0");
} else { } else {
prop.put("langDeutsch", "0"); prop.put("langDeutsch", "0");
prop.put("langFrancais", "0");
prop.put("langEnglish", "0"); prop.put("langEnglish", "0");
} }
return prop; return prop;

Loading…
Cancel
Save