Fixed source code installation problem where default language didn't set correctly. Also updated the readme

git-svn-id: http://webgoat.googlecode.com/svn/trunk/webgoat@435 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
x71c4l@gmail.com
2011-07-27 04:15:58 +00:00
parent 1a1e7125be
commit be8b4311e0
2 changed files with 21 additions and 13 deletions

View File

@ -15,12 +15,12 @@ public class WebGoatI18N {
public WebGoatI18N(WebgoatContext context){
Locale l = new Locale(context.getDefaultLanguage());
WebGoatI18N.defaultLanguage=context.getDefaultLanguage();
labels.put(context.getDefaultLanguage(),ResourceBundle.getBundle("WebGoatLabels",l));
labels.put(context.getDefaultLanguage(),ResourceBundle.getBundle("WebGoatLabels_english",l));
}
public static void loadLanguage(String language){
Locale l = new Locale(language);
labels.put(language, ResourceBundle.getBundle("WebGoatLabels",l));
labels.put(language, ResourceBundle.getBundle("WebGoatLabels_english",l));
}
public static void setCurrentLanguage(String language){