Exemple #1
0
        /// <summary>
        /// Initializes the Language
        /// </summary>
        public void InitializeLanguage(SmartCultureInfo info, Dictionary <string, LocalizedObject> rootValues, Dictionary <string, LocalizedObject> languageValues)
        {
            this.rootValues = rootValues;
            this.loadedLanguageValues.Clear();
            this.loadedLanguageValues = LanguageHandlerEditor.CreateSerializableLocalizationList(languageValues);
            //Load assets
            LanguageHandlerEditor.LoadAllAssets(this.loadedLanguageValues);

            this.thisLanguage = (currentCultureInfo.englishName + " - " + currentCultureInfo.languageCode);
            rootFileChanged   = false;

            SortLanguageValues(sortType);
            localizedObjectAdaptor     = new LocalizedObjectListAdaptor(this.loadedLanguageValues, null, DrawLanguageValue, 17, true);
            localizedObjectContextMenu = new LocalizedObjectMenuControl();

            localizedObjectAdaptor.collapseMultiline = collapseMultilineFields;
        }