public WebLanguages(int preferedlang, int secondarylang) { this.userspreferedlanguage=preferedlang; this.userssecondarylanguage=secondarylang;
public WebLanguages(GlobalConfiguration globalconfiguration) throws IOException { if(languages == null){  availablelanguages=null;  String availablelanguagesstring = globalconfiguration .getAvailableLanguagesAsString(); availablelanguages =  availablelanguagesstring.split(","); for(int i=0; i < availablelanguages.length;i++){ availablelanguages[i] =  availablelanguages[i].trim().toUpperCase(); }  languages = new Properties[availablelanguages.length]; for(int i = 0; i < availablelanguages.length; i++){ languages[i] = new Properties(); languages[i].load(this.getClass().getResourceAsStream("/" + globalconfiguration .getLanguagePath() + "/" + globalconfiguration .getLanguageFilename() + "." + availablelanguages[i].toLowerCase() +".properties")); } }
    public WebLanguages(int preferedlang, int secondarylang) {      this.userspreferedlanguage=preferedlang;      this.userssecondarylanguage=secondarylang;    }