/// <summary> /// /// </summary> /// <param name="audioName"></param> /// <returns></returns> private static string FindISOLanguage(string audioName) { // Not possible if (string.IsNullOrEmpty(audioName)) { return(null); } // Split off string[] parts = audioName.Split(' ', '['); // Find it string shortName; if (LanguageMap.TryGetValue(parts[0], out shortName)) { return(shortName); } // Find it if (EnglishLanguageMap.TryGetValue(parts[0], out shortName)) { return(shortName); } // Not found return(parts[0]); }