Commit cf166248 lailai.xing

修改语言包

1 个父辈 a3879b52
...@@ -41,6 +41,7 @@ namespace OnlineStore ...@@ -41,6 +41,7 @@ namespace OnlineStore
var lngjson = JsonHelper.SerializeObject(LangMap); var lngjson = JsonHelper.SerializeObject(LangMap);
Task.Run(() => { Task.Run(() => {
return;
try try
{ {
Task.Delay(10 * 1000).Wait(); Task.Delay(10 * 1000).Wait();
...@@ -290,6 +291,8 @@ namespace OnlineStore ...@@ -290,6 +291,8 @@ namespace OnlineStore
private static void PreControlLanaguage(Control partentControl, string className) private static void PreControlLanaguage(Control partentControl, string className)
{ {
string newStr = ""; string newStr = "";
//Con_GetTxt(partentControl, out string title); //Con_GetTxt(partentControl, out string title);
//string newStr = GetString(GetTextIdStr(className, partentControl.Name), title); //string newStr = GetString(GetTextIdStr(className, partentControl.Name), title);
//if (!newStr.Equals("")) //if (!newStr.Equals(""))
...@@ -306,11 +309,28 @@ namespace OnlineStore ...@@ -306,11 +309,28 @@ namespace OnlineStore
continue; continue;
} }
string strA = "";
if (con.Text.Contains("IO调试"))
{
strA=con.Text;
}
if (con.Text.Contains("IO Debugging"))
{
strA = con.Text;
}
if (Con_GetTxt(con, out txt)) if (Con_GetTxt(con, out txt))
{ {
newStr = GetString(GetTextIdStr(className, con.Name), txt); newStr = GetString(GetTextIdStr(className, con.Name), txt);
if (!newStr.Equals("")) if (!newStr.Equals(""))
{ {
Con_SetTxt(con, newStr.Replace("\\n", "\n")); Con_SetTxt(con, newStr.Replace("\\n", "\n"));
//haslang = true; //haslang = true;
} }
...@@ -322,7 +342,13 @@ namespace OnlineStore ...@@ -322,7 +342,13 @@ namespace OnlineStore
} }
if (con.Controls.Count > 0 && !haslang) if (con.Controls.Count > 0 && !haslang)
{ {
PreControlLanaguage(con, className+"_"+ con.Name); //kmon
if (!(con.Name.Contains("tab_io") || con.Text.Contains("tab_axis") || con.Text.Contains("tab_store") || con.Text.Contains("tab_setting")))
{
PreControlLanaguage(con, className + "_" + con.Name);
}
} }
//Console.WriteLine(con is IList<Component>); //Console.WriteLine(con is IList<Component>);
//Console.WriteLine(con is IList<Component>); //Console.WriteLine(con is IList<Component>);
......
...@@ -15,6 +15,7 @@ using System.Runtime.Serialization.Formatters.Binary; ...@@ -15,6 +15,7 @@ using System.Runtime.Serialization.Formatters.Binary;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using static System.Net.Mime.MediaTypeNames;
using static System.Windows.Forms.VisualStyles.VisualStyleElement.StartPanel; using static System.Windows.Forms.VisualStyles.VisualStyleElement.StartPanel;
namespace TheMachine namespace TheMachine
...@@ -186,7 +187,9 @@ namespace TheMachine ...@@ -186,7 +187,9 @@ namespace TheMachine
AddForm("tab_setting", crc.GetString(L.tab_setting, "相关设置"), sc); AddForm("tab_setting", crc.GetString(L.tab_setting, "相关设置"), sc);
//this.ResumeLayout(true); //this.ResumeLayout(true);
//this.PerformLayout(); //this.PerformLayout();
crc.LanguageProcess(this);
//crc.LanguageProcess(this);
} }
private void T1_Tick(object sender, EventArgs e) private void T1_Tick(object sender, EventArgs e)
...@@ -246,6 +249,8 @@ namespace TheMachine ...@@ -246,6 +249,8 @@ namespace TheMachine
private void AddForm(string id, string text, UserControl form) private void AddForm(string id, string text, UserControl form)
{ {
//GetString(GetTextIdStr(className, id), text);
foreach (TabPage tp in tabc.TabPages) foreach (TabPage tp in tabc.TabPages)
{ {
if (tp.Name == id) if (tp.Name == id)
...@@ -254,6 +259,7 @@ namespace TheMachine ...@@ -254,6 +259,7 @@ namespace TheMachine
return; return;
} }
} }
TabPage lineTabPage = new TabPage(text); TabPage lineTabPage = new TabPage(text);
lineTabPage.Name = id; lineTabPage.Name = id;
Panel linePan = new Panel(); Panel linePan = new Panel();
......
...@@ -223,6 +223,8 @@ namespace TheMachineNView ...@@ -223,6 +223,8 @@ namespace TheMachineNView
List<TabPage> tabPages = new List<TabPage>(); List<TabPage> tabPages = new List<TabPage>();
void showDebugTabPages(bool show) void showDebugTabPages(bool show)
{ {
if (this.InvokeRequired) if (this.InvokeRequired)
{ {
this.Invoke((EventHandler)delegate this.Invoke((EventHandler)delegate
...@@ -243,6 +245,7 @@ namespace TheMachineNView ...@@ -243,6 +245,7 @@ namespace TheMachineNView
item.Parent = null; item.Parent = null;
} }
} }
//kmon
crc.LanguageProcess(this); crc.LanguageProcess(this);
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!