Exemplo n.º 1
0
        void OnCreateLanguageClick(SmartCultureInfo info)
        {
            SmartCultureInfo chosenCulture = allCultures.FindCulture(info);

            if (chosenCulture == null)
            {
                Debug.LogError("язык: " + info.englishName + " не может быть создан");
                return;
            }
            LanguageHandlerEditor.CreateNewLanguage(chosenCulture.languageCode);

            InitializeCultureCollections();
        }
Exemplo n.º 2
0
        void ImportFromXLS(string chosenImportFile)
        {
            List <List <string> > values = XLSExporter.Read(chosenImportFile);

            if (chosenCulture == null)
            {
                Debug.LogError("Язык: " + chosenCulture.englishName + " не может быть создан");
                this.Close();
                return;
            }
            LanguageHandlerEditor.CreateNewLanguage(chosenCulture.languageCode, values);

            if (creationDelegate != null)
            {
                creationDelegate();
                creationDelegate = null;
            }
        }