CreateNewLanguage() 공개 정적인 메소드

Creates a new language file with the keys from the root file.
public static CreateNewLanguage ( string languageName ) : void
languageName string /// The name of the language ///
리턴 void
예제 #1
0
    /// <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);
    }