Skip to content

Commit

Permalink
added 'francais' as language option for default configuration
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7131 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Sep 10, 2010
1 parent 4c21d8d commit 013926f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions htroot/ConfigBasic.html
Expand Up @@ -31,6 +31,7 @@ <h2>Basic Configuration</h2>
<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>
</fieldset>
</li>
Expand Down
7 changes: 7 additions & 0 deletions htroot/ConfigBasic.java
Expand Up @@ -239,12 +239,19 @@ public static serverObjects respond(final RequestHeader header, final serverObje
lang = env.getConfig("locale.language", "default"); // re-assign lang, may have changed
if (lang.equals("default")) {
prop.put("langDeutsch", "0");
prop.put("langFrancais", "0");
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")) {
prop.put("langDeutsch", "1");
prop.put("langFrancais", "0");
prop.put("langEnglish", "0");
} else {
prop.put("langDeutsch", "0");
prop.put("langFrancais", "0");
prop.put("langEnglish", "0");
}
return prop;
Expand Down

0 comments on commit 013926f

Please sign in to comment.