|
|
@ -42,17 +42,29 @@ namespace WpfApp1.translationKey
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public string getpath(string id)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return path + "\\" + id + ".txt";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public string gettxt()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return txtPath;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<string> OutputTranslationS(string id)
|
|
|
|
public List<string> OutputTranslationS(string id)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
string temppath = path + "\\" + id + ".txt";
|
|
|
|
string temppath = path + "\\" + id + ".txt";
|
|
|
|
|
|
|
|
|
|
|
|
var temp = new List<string> { };
|
|
|
|
List<string> temp = new List<string> { };
|
|
|
|
if (!Directory.Exists(temppath))
|
|
|
|
|
|
|
|
|
|
|
|
if (Directory.Exists(temppath))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
temp.Add("ERROR");
|
|
|
|
temp.Add("ERROR");
|
|
|
|
return temp;
|
|
|
|
return temp;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StreamReader sr = new StreamReader(temppath);
|
|
|
|
StreamReader sr = new StreamReader(temppath);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -68,12 +80,13 @@ namespace WpfApp1.translationKey
|
|
|
|
List<string> temp = new List<string> { };
|
|
|
|
List<string> temp = new List<string> { };
|
|
|
|
string temptxtpath = txtPath;
|
|
|
|
string temptxtpath = txtPath;
|
|
|
|
|
|
|
|
|
|
|
|
if(!Directory.Exists(temptxtpath))
|
|
|
|
if(Directory.Exists(temptxtpath))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
temp.Add("ERROR");
|
|
|
|
temp.Add("ERROR");
|
|
|
|
return temp;
|
|
|
|
return temp;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StreamReader sr = new StreamReader(temptxtpath);
|
|
|
|
StreamReader sr = new StreamReader(temptxtpath);
|
|
|
|
string temp2 = sr.ReadLine();
|
|
|
|
string temp2 = sr.ReadLine();
|
|
|
|
if (temp2 == null)
|
|
|
|
if (temp2 == null)
|
|
|
|