From 085669e43a018e3c3d29eaef6ba51d57f695c30d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AD=B1=E5=82=91?= Date: Fri, 13 Oct 2023 23:08:43 +0800 Subject: [PATCH] Add proxy page translation --- .../GrasscutterTools/GrasscutterTools.csproj | 9 + .../Pages/PageProxy.Designer.cs | 80 +---- .../Pages/PageProxy.en-US.resx | 160 +++++++++ Source/GrasscutterTools/Pages/PageProxy.resx | 339 ++++++++++++++++++ .../Pages/PageProxy.ru-RU.resx | 173 +++++++++ .../Pages/PageProxy.zh-TW.resx | 147 ++++++++ 6 files changed, 844 insertions(+), 64 deletions(-) create mode 100644 Source/GrasscutterTools/Pages/PageProxy.en-US.resx create mode 100644 Source/GrasscutterTools/Pages/PageProxy.ru-RU.resx create mode 100644 Source/GrasscutterTools/Pages/PageProxy.zh-TW.resx diff --git a/Source/GrasscutterTools/GrasscutterTools.csproj b/Source/GrasscutterTools/GrasscutterTools.csproj index ad199a3..6efce63 100644 --- a/Source/GrasscutterTools/GrasscutterTools.csproj +++ b/Source/GrasscutterTools/GrasscutterTools.csproj @@ -602,9 +602,18 @@ PageOpenCommand.cs + + PageProxy.cs + PageProxy.cs + + PageProxy.cs + + + PageProxy.cs + PageQuest.cs diff --git a/Source/GrasscutterTools/Pages/PageProxy.Designer.cs b/Source/GrasscutterTools/Pages/PageProxy.Designer.cs index 2c2f809..aba7bf7 100644 --- a/Source/GrasscutterTools/Pages/PageProxy.Designer.cs +++ b/Source/GrasscutterTools/Pages/PageProxy.Designer.cs @@ -28,11 +28,12 @@ /// private void InitializeComponent() { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PageProxy)); this.TxtHost = new System.Windows.Forms.TextBox(); this.LblServerAddress = new System.Windows.Forms.Label(); this.BtnStartProxy = new System.Windows.Forms.Button(); this.ChkAutoStart = new System.Windows.Forms.CheckBox(); - this.LblProxyIntroduction = new System.Windows.Forms.Label(); + this.LblProxyIntroduction = new System.Windows.Forms.TextBox(); this.BtnDestroyCert = new System.Windows.Forms.Button(); this.LnkEavesdrop = new System.Windows.Forms.LinkLabel(); this.LnkAbout = new System.Windows.Forms.LinkLabel(); @@ -43,124 +44,75 @@ // // TxtHost // - this.TxtHost.Anchor = System.Windows.Forms.AnchorStyles.None; - this.TxtHost.Location = new System.Drawing.Point(227, 40); + resources.ApplyResources(this.TxtHost, "TxtHost"); this.TxtHost.Name = "TxtHost"; - this.TxtHost.Size = new System.Drawing.Size(160, 23); - this.TxtHost.TabIndex = 4; - this.TxtHost.Text = "http://127.0.0.1:443"; // // LblServerAddress // - this.LblServerAddress.Anchor = System.Windows.Forms.AnchorStyles.None; - this.LblServerAddress.AutoSize = true; - this.LblServerAddress.Location = new System.Drawing.Point(84, 43); + resources.ApplyResources(this.LblServerAddress, "LblServerAddress"); this.LblServerAddress.Name = "LblServerAddress"; - this.LblServerAddress.Size = new System.Drawing.Size(137, 17); - this.LblServerAddress.TabIndex = 3; - this.LblServerAddress.Text = "目标 http(s) 服务器地址"; // // BtnStartProxy // - this.BtnStartProxy.Anchor = System.Windows.Forms.AnchorStyles.None; - this.BtnStartProxy.Location = new System.Drawing.Point(393, 40); + resources.ApplyResources(this.BtnStartProxy, "BtnStartProxy"); this.BtnStartProxy.Name = "BtnStartProxy"; - this.BtnStartProxy.Size = new System.Drawing.Size(120, 25); - this.BtnStartProxy.TabIndex = 5; - this.BtnStartProxy.Text = "启动代理"; this.BtnStartProxy.UseVisualStyleBackColor = true; this.BtnStartProxy.Click += new System.EventHandler(this.BtnStartProxy_Click); // // ChkAutoStart // - this.ChkAutoStart.Anchor = System.Windows.Forms.AnchorStyles.None; - this.ChkAutoStart.AutoSize = true; - this.ChkAutoStart.Location = new System.Drawing.Point(519, 42); + resources.ApplyResources(this.ChkAutoStart, "ChkAutoStart"); this.ChkAutoStart.Name = "ChkAutoStart"; - this.ChkAutoStart.Size = new System.Drawing.Size(75, 21); - this.ChkAutoStart.TabIndex = 6; - this.ChkAutoStart.Text = "自动开启"; this.ChkAutoStart.UseVisualStyleBackColor = true; this.ChkAutoStart.CheckedChanged += new System.EventHandler(this.ChkAutoStart_CheckedChanged); // // LblProxyIntroduction // - this.LblProxyIntroduction.Anchor = System.Windows.Forms.AnchorStyles.None; - this.LblProxyIntroduction.Location = new System.Drawing.Point(48, 72); + resources.ApplyResources(this.LblProxyIntroduction, "LblProxyIntroduction"); this.LblProxyIntroduction.Name = "LblProxyIntroduction"; - this.LblProxyIntroduction.Size = new System.Drawing.Size(550, 120); - this.LblProxyIntroduction.TabIndex = 7; - this.LblProxyIntroduction.Text = " 启动代理需要信任本应用的临时根证书,该证书仅用于代理动漫游戏相关请求,有效期1月,你可以随时点击右下角卸载证书。\r\n 代理功能代码来自开源项目 Ea" + - "vesdrop,遵循MIT开源协议,经过魔改以匹配应用需求。\r\n 本代理通过大量过滤规则来规避非动漫游戏的请求经过应用,减小影响,欢迎体验!\r\n 程" + - "序退出时会自动关闭代理,放心使用 :)"; + this.LblProxyIntroduction.ReadOnly = true; // // BtnDestroyCert // - this.BtnDestroyCert.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.BtnDestroyCert.Location = new System.Drawing.Point(529, 207); + resources.ApplyResources(this.BtnDestroyCert, "BtnDestroyCert"); this.BtnDestroyCert.Name = "BtnDestroyCert"; - this.BtnDestroyCert.Size = new System.Drawing.Size(100, 25); - this.BtnDestroyCert.TabIndex = 10; - this.BtnDestroyCert.Text = "卸载证书"; this.BtnDestroyCert.UseVisualStyleBackColor = true; this.BtnDestroyCert.Click += new System.EventHandler(this.BtnDestroyCert_Click); // // LnkEavesdrop // - this.LnkEavesdrop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.LnkEavesdrop.AutoSize = true; - this.LnkEavesdrop.Location = new System.Drawing.Point(15, 211); + resources.ApplyResources(this.LnkEavesdrop, "LnkEavesdrop"); this.LnkEavesdrop.Name = "LnkEavesdrop"; - this.LnkEavesdrop.Size = new System.Drawing.Size(70, 17); - this.LnkEavesdrop.TabIndex = 8; this.LnkEavesdrop.TabStop = true; - this.LnkEavesdrop.Text = "Eavesdrop"; this.LnkEavesdrop.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LnkEavesdrop_LinkClicked); // // LnkAbout // - this.LnkAbout.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.LnkAbout.AutoSize = true; - this.LnkAbout.Location = new System.Drawing.Point(482, 211); + resources.ApplyResources(this.LnkAbout, "LnkAbout"); this.LnkAbout.Name = "LnkAbout"; - this.LnkAbout.Size = new System.Drawing.Size(32, 17); - this.LnkAbout.TabIndex = 9; this.LnkAbout.TabStop = true; - this.LnkAbout.Text = "关于"; this.LnkAbout.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LnkAbout_LinkClicked); // // LblGcJarPath // - this.LblGcJarPath.AutoSize = true; - this.LblGcJarPath.Location = new System.Drawing.Point(102, 14); + resources.ApplyResources(this.LblGcJarPath, "LblGcJarPath"); this.LblGcJarPath.Name = "LblGcJarPath"; - this.LblGcJarPath.Size = new System.Drawing.Size(119, 17); - this.LblGcJarPath.TabIndex = 0; - this.LblGcJarPath.Text = "GrasscutterJar 路径"; - this.LblGcJarPath.Visible = false; // // TxtGcJarPath // - this.TxtGcJarPath.Location = new System.Drawing.Point(227, 11); + resources.ApplyResources(this.TxtGcJarPath, "TxtGcJarPath"); this.TxtGcJarPath.Name = "TxtGcJarPath"; - this.TxtGcJarPath.Size = new System.Drawing.Size(160, 23); - this.TxtGcJarPath.TabIndex = 1; - this.TxtGcJarPath.Visible = false; // // BtnStartGc // - this.BtnStartGc.Location = new System.Drawing.Point(393, 11); + resources.ApplyResources(this.BtnStartGc, "BtnStartGc"); this.BtnStartGc.Name = "BtnStartGc"; - this.BtnStartGc.Size = new System.Drawing.Size(120, 25); - this.BtnStartGc.TabIndex = 2; - this.BtnStartGc.Text = "启动服务器"; this.BtnStartGc.UseVisualStyleBackColor = true; - this.BtnStartGc.Visible = false; this.BtnStartGc.Click += new System.EventHandler(this.BtnStartGc_Click); // // PageProxy // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); + resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.BtnStartGc); this.Controls.Add(this.TxtGcJarPath); @@ -185,7 +137,7 @@ private System.Windows.Forms.Label LblServerAddress; private System.Windows.Forms.Button BtnStartProxy; private System.Windows.Forms.CheckBox ChkAutoStart; - private System.Windows.Forms.Label LblProxyIntroduction; + private System.Windows.Forms.TextBox LblProxyIntroduction; private System.Windows.Forms.Button BtnDestroyCert; private System.Windows.Forms.LinkLabel LnkEavesdrop; private System.Windows.Forms.LinkLabel LnkAbout; diff --git a/Source/GrasscutterTools/Pages/PageProxy.en-US.resx b/Source/GrasscutterTools/Pages/PageProxy.en-US.resx new file mode 100644 index 0000000..4c6947a --- /dev/null +++ b/Source/GrasscutterTools/Pages/PageProxy.en-US.resx @@ -0,0 +1,160 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + 138, 17 + + + Target HTTP (s) server + + + Start proxy + + + 84, 21 + + + Auto start + + + To start the proxy, you need to trust the temporary root certificate of this application, which is only used for proxying requests related to anime games. The certificate is valid for one month, and you can uninstall it by clicking the lower right corner at any time. + The proxy functionality code comes from the open-source project Eavesdrop, following the MIT open-source license and has been modified to match the application's requirements. + This proxy bypasses non-anime game requests through a large number of filtering rules, reducing the impact. Feel free to give it a try! + The proxy will automatically close when the program exits, so you can use it with peace of mind :) + + + Uninstall cert + + + 43, 17 + + + About + + + 120, 17 + + + GrasscutterJar Path + + + Start Grasscutter + + \ No newline at end of file diff --git a/Source/GrasscutterTools/Pages/PageProxy.resx b/Source/GrasscutterTools/Pages/PageProxy.resx index 1af7de1..9c6623d 100644 --- a/Source/GrasscutterTools/Pages/PageProxy.resx +++ b/Source/GrasscutterTools/Pages/PageProxy.resx @@ -117,4 +117,343 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Top, Left, Right + + + + 227, 40 + + + 160, 23 + + + + 4 + + + http://127.0.0.1:443 + + + TxtHost + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 10 + + + True + + + 84, 43 + + + 137, 17 + + + 3 + + + 目标 http(s) 服务器地址 + + + LblServerAddress + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 9 + + + Top, Right + + + 393, 40 + + + 120, 25 + + + 5 + + + 启动代理 + + + BtnStartProxy + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 8 + + + Top, Right + + + True + + + 519, 42 + + + 75, 21 + + + 6 + + + 自动开启 + + + ChkAutoStart + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 7 + + + Top, Bottom, Left, Right + + + 48, 72 + + + True + + + Vertical + + + 550, 120 + + + 7 + + + 启动代理需要信任本应用的临时根证书,该证书仅用于代理动漫游戏相关请求,有效期1月,你可以随时点击右下角卸载证书。 + 代理功能代码来自开源项目 Eavesdrop,遵循MIT开源协议,经过魔改以匹配应用需求。 + 本代理通过大量过滤规则来规避非动漫游戏的请求经过应用,减小影响,欢迎体验! + 程序退出时会自动关闭代理,放心使用 :) + + + LblProxyIntroduction + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 6 + + + Bottom, Right + + + 529, 207 + + + 100, 25 + + + 10 + + + 卸载证书 + + + BtnDestroyCert + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 5 + + + Bottom, Left + + + True + + + 15, 211 + + + 70, 17 + + + 8 + + + Eavesdrop + + + LnkEavesdrop + + + System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 4 + + + Bottom, Right + + + True + + + 482, 211 + + + 32, 17 + + + 9 + + + 关于 + + + LnkAbout + + + System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 3 + + + True + + + 102, 14 + + + 119, 17 + + + 0 + + + GrasscutterJar 路径 + + + False + + + LblGcJarPath + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 2 + + + Top, Left, Right + + + 227, 11 + + + 160, 23 + + + 1 + + + False + + + TxtGcJarPath + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 1 + + + Top, Right + + + 393, 11 + + + 120, 25 + + + 2 + + + 启动服务器 + + + False + + + BtnStartGc + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 0 + + + True + + + 7, 17 + + + True + + + PageProxy + + + GrasscutterTools.Pages.BasePage, GrasscutterTools, Version=1.13.0.0, Culture=neutral, PublicKeyToken=de2b1c089621e923 + \ No newline at end of file diff --git a/Source/GrasscutterTools/Pages/PageProxy.ru-RU.resx b/Source/GrasscutterTools/Pages/PageProxy.ru-RU.resx new file mode 100644 index 0000000..3aba413 --- /dev/null +++ b/Source/GrasscutterTools/Pages/PageProxy.ru-RU.resx @@ -0,0 +1,173 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + 72, 44 + + + 150, 17 + + + Целевой сервер http(s) + + + 130, 25 + + + Запустить прокси + + + 529, 34 + + + 126, 38 + + + Автоматическое +открытие  + + + Для запуска прокси необходимо доверять временному корневому сертификату этого приложения, который используется только для проксирования запросов, связанных с аниме-играми. Срок действия сертификата составляет один месяц, и вы можете удалить его в любое время, нажав правый нижний угол. + Код функционала прокси взят из открытого проекта Eavesdrop и выпущен под лицензией MIT с изменениями в соответствии с требованиями приложения. + Этот прокси обходит запросы, не относящиеся к аниме-играм, с помощью большого количества фильтрующих правил, что уменьшает воздействие на систему. Приглашаем вас попробовать! + Прокси автоматически закроется при выходе из программы, так что можете использовать его спокойно :) + + + Удалить сертификат  + + + 18, 17 + + + О + + + 120, 17 + + + GrasscutterJar Path + + + 130, 25 + + +  Запустить сервер  + + \ No newline at end of file diff --git a/Source/GrasscutterTools/Pages/PageProxy.zh-TW.resx b/Source/GrasscutterTools/Pages/PageProxy.zh-TW.resx new file mode 100644 index 0000000..ea79763 --- /dev/null +++ b/Source/GrasscutterTools/Pages/PageProxy.zh-TW.resx @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 目標 http(s) 伺服器地址 + + + 啟動代理 + + + 自動開啟 + + + 啟動代理需要信任本應用的臨時根證書,該證書僅用於代理動漫遊戲相關請求,有效期1月,你可以隨時點擊右下角卸載證書。 + 代理功能程式碼來自開源項目 Eavesdrop,遵循MIT開源協議,經過魔改以匹配應用需求。 + 本代理通過大量過濾規則來規避非動漫遊戲的請求經過應用,減小影響,歡迎體驗! + 程式退出時會自動關閉代理,放心使用 :) + + + 卸載證書 + + + 關於 + + + GrasscutterJar 路徑 + + + 啟動伺服器 + + \ No newline at end of file