}
}else canceled =  true;
	public void askLanguage(Frame parent){				wizard = new Wizard();	    wizard.getDialog().setTitle(JFritz.getMessage("config_wizard"));			    if(parent != null)	       	wizard.getDialog().setLocationRelativeTo(parent);	    	    WizardPanelDescriptor descriptorLang = new ConfigPanelLangDescriptor();        wizard.registerWizardPanel(ConfigPanelLangDescriptor.IDENTIFIER, descriptorLang);	            wizard.setCurrentPanel(ConfigPanelLangDescriptor.IDENTIFIER);        		int ret = wizard.showModalDialog();		//only change the language if finish was selected		if(ret == 0){						//get the components from the wizardpanel			JComboBox languageCombo = ((ConfigPanelLang)descriptorLang.getPanelComponent()).languageCombo;			String[] localeList = ((ConfigPanelLang)descriptorLang.getPanelComponent()).localeList;						//This code is real ugly, i should get around to cleaning it up!			if (!JFritz.getProperty("locale", "de_DE").equals(localeList[languageCombo.getSelectedIndex()])) { //$NON-NLS-1$ //$NON-NLS-2$				JFritz.setProperty(						"locale", localeList[languageCombo.getSelectedIndex()]); //$NON-NLS-1$				String loc = localeList[languageCombo.getSelectedIndex()];				jfritz.getJframe().setLanguage(							new Locale(loc.substring(0, loc.indexOf("_")), loc.substring(loc.indexOf("_")+1, loc.length())));			}		}			}