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)); }
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)); }