public static String getOcrLanguageName(Context context, String languageCode) {
		Resources res = context.getResources();
		String[] language6393 = res.getStringArray(R.array.iso6393);
		String[] languageNames = res.getStringArray(R.array.languagenames);
		int len;

		// Finds the given language code in the iso6393 array, and takes the name with the same index
		// from the languagenames array.
		for (len = 0; len < language6393.length; len++) {
			if (language6393[len].equals(languageCode)) {
				Log.d(TAG, "getOcrLanguageName: " + languageCode + "->"
						+ languageNames[len]);
				return languageNames[len];
			}
		}
		
		Log.d(TAG, "languageCode: Could not find language name for ISO 693-3: "
				+ languageCode);
		return languageCode;
	}
Map the given ISO 639-3 language code to a name of a language, for example,
"Spanish"

@param context
           interface to calling application environment. Needed to access
           values from strings.xml.
@param languageCode
           ISO 639-3 language code
@return language name
OCRTest/src/main/java/edu/sfsu/cs/orange/ocr/language/LanguageCodeHelper.java