|
|
@ -1,10 +1,5 @@
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
using System.IO;
|
|
|
|
using System.IO;
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace WpfApp2.translationKey
|
|
|
|
namespace WpfApp2.translationKey
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -24,19 +19,21 @@ namespace WpfApp2.translationKey
|
|
|
|
|
|
|
|
|
|
|
|
string temppathTemp = pathTemp + "\\" + name + ".txt";
|
|
|
|
string temppathTemp = pathTemp + "\\" + name + ".txt";
|
|
|
|
StreamWriter sw = new StreamWriter(temppathTemp);
|
|
|
|
StreamWriter sw = new StreamWriter(temppathTemp);
|
|
|
|
|
|
|
|
StreamWriter sw2 = new StreamWriter(txtPath,true);
|
|
|
|
|
|
|
|
|
|
|
|
foreach (string s in list)
|
|
|
|
foreach (string s in list)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
sw.WriteLine(s);
|
|
|
|
sw.WriteLine(s);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
name = "\n" + name;
|
|
|
|
|
|
|
|
System.IO.File.AppendAllText(txtPath, name);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sw2.WriteLine(name);
|
|
|
|
sw.Close();
|
|
|
|
sw.Close();
|
|
|
|
|
|
|
|
sw2.Close();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void InputBaiduPrivate(string name, string id, string key)//该函数仅百度支持
|
|
|
|
public void InputBaiduPrivate(string name, string id, string key)//该函数仅百度支持
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(!Directory.Exists(pathTemp))
|
|
|
|
if (!Directory.Exists(pathTemp))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Directory.CreateDirectory(pathTemp);
|
|
|
|
Directory.CreateDirectory(pathTemp);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -44,10 +41,10 @@ namespace WpfApp2.translationKey
|
|
|
|
string temppathTemp = pathTemp + "\\" + name + ".txt";
|
|
|
|
string temppathTemp = pathTemp + "\\" + name + ".txt";
|
|
|
|
StreamWriter sw = new StreamWriter(temppathTemp);
|
|
|
|
StreamWriter sw = new StreamWriter(temppathTemp);
|
|
|
|
StreamWriter sw2 = new StreamWriter(txtPath);
|
|
|
|
StreamWriter sw2 = new StreamWriter(txtPath);
|
|
|
|
|
|
|
|
|
|
|
|
InputTranslationId(id,sw);
|
|
|
|
InputTranslationId(id, sw);
|
|
|
|
InputTranslationKey(key,sw);
|
|
|
|
InputTranslationKey(key, sw);
|
|
|
|
|
|
|
|
|
|
|
|
sw2.WriteLine(name);
|
|
|
|
sw2.WriteLine(name);
|
|
|
|
sw.Close();
|
|
|
|
sw.Close();
|
|
|
|
sw2.Close();
|
|
|
|
sw2.Close();
|
|
|
|