Example #1
0
        private void AddLanguage(PresetLanguage presetLanguage)
        {
            Undo.RecordObject(Target, "Add Language");

            Target.AddLanguage(presetLanguage.Name, presetLanguage.Cultures);

            Dirty();
        }
        private void AddLanguage(TARGET tgt, PresetLanguage presetLanguage)
        {
            Undo.RecordObject(tgt, "Add Language");

            tgt.AddLanguage(presetLanguage.Name);

            DirtyAndUpdate();
        }
Example #3
0
        private static void AddPresetLanguage(string name, params string[] cultures)
        {
            var presetLanguage = new PresetLanguage();

            presetLanguage.Name     = name;
            presetLanguage.Cultures = cultures;

            presetLanguages.Add(presetLanguage);
        }