diff --git a/DALTools/DALLib/ImportExport/TranslationCSVFile.cs b/DALTools/DALLib/ImportExport/TranslationCSVFile.cs index ffb213a..86d9567 100644 --- a/DALTools/DALLib/ImportExport/TranslationCSVFile.cs +++ b/DALTools/DALLib/ImportExport/TranslationCSVFile.cs @@ -25,6 +25,14 @@ public class TranslationCSVFile : TranslationBase public override string TypeExtension => ".csv"; + public TranslationCSVFile() { } + + public TranslationCSVFile(string text) : this() + { + _buffer = text; + _bufferIndex = 0; + } + public override TranslationLine[] ImportTranslation(string data) { var lines = new List(); diff --git a/DALTools/DALLib/ImportExport/TranslationTSVFile.cs b/DALTools/DALLib/ImportExport/TranslationTSVFile.cs index 1b2106c..708b58f 100644 --- a/DALTools/DALLib/ImportExport/TranslationTSVFile.cs +++ b/DALTools/DALLib/ImportExport/TranslationTSVFile.cs @@ -25,6 +25,14 @@ public class TranslationTSVFile : TranslationBase public override string TypeExtension => ".tsv"; + public TranslationTSVFile() { } + + public TranslationTSVFile(string text) : this() + { + _buffer = text; + _bufferIndex = 0; + } + public override TranslationLine[] ImportTranslation(string data) { var lines = new List(); diff --git a/DALTools/TableEditor/MainWindow.xaml b/DALTools/TableEditor/MainWindow.xaml index 35cb283..fed1f02 100644 --- a/DALTools/TableEditor/MainWindow.xaml +++ b/DALTools/TableEditor/MainWindow.xaml @@ -21,6 +21,8 @@