From 14a089194666481653bdd70905d1b5a3045f153f Mon Sep 17 00:00:00 2001 From: Chanple Date: Mon, 12 Mar 2018 11:07:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=97=A5=E8=AF=AD=E5=92=8C?= =?UTF-8?q?=E7=B9=81=E4=BD=93=E4=B8=AD=E6=96=87=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SmartTaskbar/Languages/Resource.ja-JP.resx | 141 ++++++++++++++++++++ SmartTaskbar/Languages/Resource.zh-CHT.resx | 141 ++++++++++++++++++++ SmartTaskbar/ResourceCulture.cs | 7 +- SmartTaskbar/SmartTaskbar.csproj | 2 + 4 files changed, 290 insertions(+), 1 deletion(-) create mode 100644 SmartTaskbar/Languages/Resource.ja-JP.resx create mode 100644 SmartTaskbar/Languages/Resource.zh-CHT.resx diff --git a/SmartTaskbar/Languages/Resource.ja-JP.resx b/SmartTaskbar/Languages/Resource.ja-JP.resx new file mode 100644 index 0000000..6937a6f --- /dev/null +++ b/SmartTaskbar/Languages/Resource.ja-JP.resx @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + について + + + アニメーション + + + スマート + + + 退出 + + + SmartTaskbar運行している + + + 隠し + + + 表示 + + \ No newline at end of file diff --git a/SmartTaskbar/Languages/Resource.zh-CHT.resx b/SmartTaskbar/Languages/Resource.zh-CHT.resx new file mode 100644 index 0000000..f715ae7 --- /dev/null +++ b/SmartTaskbar/Languages/Resource.zh-CHT.resx @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + 關於 + + + 動畫 + + + 智慧 + + + 退出 + + + SmartTaskbar正在後臺運行 + + + 隱藏 + + + 顯示 + + \ No newline at end of file diff --git a/SmartTaskbar/ResourceCulture.cs b/SmartTaskbar/ResourceCulture.cs index 8859af9..82a6266 100644 --- a/SmartTaskbar/ResourceCulture.cs +++ b/SmartTaskbar/ResourceCulture.cs @@ -13,8 +13,13 @@ public ResourceCulture() { switch (Thread.CurrentThread.CurrentUICulture.Name) { + case "zh-CN": + case "en-US": + case "de-DE": + case "ja-JP": + break; case string str when str.StartsWith("zh"): - Thread.CurrentThread.CurrentUICulture = new CultureInfo("zh-CN"); + Thread.CurrentThread.CurrentUICulture = new CultureInfo("zh-CHT"); break; case string str when str.StartsWith("de"): Thread.CurrentThread.CurrentUICulture = new CultureInfo("de-DE"); diff --git a/SmartTaskbar/SmartTaskbar.csproj b/SmartTaskbar/SmartTaskbar.csproj index 602c9c9..6d96a77 100644 --- a/SmartTaskbar/SmartTaskbar.csproj +++ b/SmartTaskbar/SmartTaskbar.csproj @@ -75,6 +75,8 @@ + + ResXFileCodeGenerator Resources.Designer.cs