Example #1
0
        public void Translations_ExportSelected()
        {
            var res = Translation_SaveDlg.ShowDialog();

            if (res == DialogResult.Cancel)
            {
                return;
            }

            var fileName = Translation_SaveDlg.FileName;

            File.WriteAllText(fileName, Scripter.ScriptTranslations(Selection.Cultures));
        }
Example #2
0
        public void Translations_ExportAll()
        {
            var res = Translation_SaveDlg.ShowDialog();

            if (res == DialogResult.Cancel)
            {
                return;
            }

            var fileName = Translation_SaveDlg.FileName;

            (new FileInfo(fileName)).Directory.Create();
            File.WriteAllText(fileName, Scripter.ScriptTranslations(Handler.Model.Cultures));
        }