characterSet += "-" + charSetName; translatedCharSet = ISO_CHARSETS [charSetName];
if (charSetName < ISO_CHARSETS.length) { characterSet += "-" + charSetName; translatedCharSet = ISO_CHARSETS [charSetName]; }
String getTranslatedCharSet (FontData fontData) {	String characterSet = fontData.characterSetRegistry;	String translatedCharSet = null;	if (characterSet.startsWith (PREFIX_ISO8859)) {		int charSetName = 1;		try {			charSetName = Integer.valueOf (fontData.characterSetName).intValue ();		} catch (NumberFormatException e) {			/*			 * This block is purposely left empty since a default			 * value is already specified above.			 */		}		characterSet += "-" + charSetName;		translatedCharSet = ISO_CHARSETS [charSetName];	}	else		if (characterSet.startsWith (PREFIX_ISO646)) {		translatedCharSet = SWT.getMessage("SWT_Charset_ASCII");	}	else		if (characterSet.startsWith (PREFIX_UNICODE)) {		translatedCharSet = SWT.getMessage("SWT_Charset_Unicode");	}	else		if (characterSet.startsWith (PREFIX_JAPANESE)) {		translatedCharSet = SWT.getMessage("SWT_Charset_Japanese");	}	else		if (characterSet.startsWith (PREFIX_SIMPLIFIEDCHINESE)) {		translatedCharSet = SWT.getMessage("SWT_Charset_SimplifiedChinese");	}	else		if (characterSet.startsWith (PREFIX_TRADITIONALCHINESE)) {		translatedCharSet = SWT.getMessage("SWT_Charset_TraditionalChinese");	}	else		if (characterSet.startsWith (PREFIX_KOREAN)) {		translatedCharSet = SWT.getMessage("SWT_Charset_Korean");	}	if (translatedCharSet != null) {		translatedCharSet += " (" + characterSet + ')';	}	else {		translatedCharSet = characterSet;	}	return translatedCharSet;}