public static CreateNewLanguage ( string languageName ) : void | ||
languageName | string | /// The name of the language /// |
Résultat | void |
/// <summary> /// Creates a new language. Gets the languagename and passes it over to LocFileUtility.CreateNewLanguage /// </summary> private void CreateNewLanguage(string englishName) { string languageName = "ERROR"; //Find the chosen culture name foreach (CultureInfo info in notAvailableLanguages) { if (info.EnglishName == englishName) { languageName = info.Name; break; } } if (languageName == "ERROR") { Debug.Log("ERROR:Couldn't create the language: " + englishName); return; } LocFileUtility.CreateNewLanguage(languageName); //Update the available languages LocFileUtility.CheckAvailableLanguages(availableLanguages, notAvailableLanguages, notAvailableLanguagesEnglishNames); }