From 6b7e64bd9199e97777cb8fb7c837c3fe4c6421d2 Mon Sep 17 00:00:00 2001 From: tangge233 Date: Sun, 7 Jul 2024 17:21:20 +0800 Subject: [PATCH] =?UTF-8?q?lang:=20=E5=AE=8C=E6=88=90=20PageOther?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controls/MyListItem.xaml.vb | 15 ++-- .../Controls/MySearchBox.xaml.vb | 8 +- .../Pages/PageDownload/PageDownloadLeft.xaml | 2 +- .../Pages/PageOther/PageOtherAbout.xaml | 74 +++++++++---------- .../Pages/PageOther/PageOtherHelp.xaml | 5 +- .../Pages/PageOther/PageOtherHelp.xaml.vb | 5 ++ .../Pages/PageOther/PageOtherLeft.xaml | 12 +-- .../Pages/PageOther/PageOtherLeft.xaml.vb | 10 +-- .../Resources/Language/en_US.xaml | 56 +++++++++++++- .../Resources/Language/zh_CN.xaml | 53 ++++++++++++- .../Resources/Language/zh_HK.xaml | 53 ++++++++++++- 11 files changed, 229 insertions(+), 64 deletions(-) diff --git a/Plain Craft Launcher 2/Controls/MyListItem.xaml.vb b/Plain Craft Launcher 2/Controls/MyListItem.xaml.vb index 60706f9f..e8b03b39 100644 --- a/Plain Craft Launcher 2/Controls/MyListItem.xaml.vb +++ b/Plain Craft Launcher 2/Controls/MyListItem.xaml.vb @@ -183,19 +183,20 @@ Public Shared ReadOnly FontSizeProperty As DependencyProperty = DependencyProperty.Register("FontSize", GetType(Double), GetType(MyListItem), New PropertyMetadata(CType(14, Double))) '信息 - Private _Info As String = "" Public Property Info As String Get - Return _Info + Return GetValue(InfoProperty) End Get Set(value As String) - If _Info = value Then Exit Property value = value.Replace(vbCr, "").Replace(vbLf, "") - _Info = value - LabInfo.Text = value - LabInfo.Visibility = If(value = "", Visibility.Collapsed, Visibility.Visible) + SetValue(InfoProperty, value) + If LabInfo IsNot Nothing Then + LabInfo.Text = value + LabInfo.Visibility = If(value = "", Visibility.Collapsed, Visibility.Visible) + End If End Set End Property + Public Shared ReadOnly InfoProperty As DependencyProperty = DependencyProperty.Register("Info", GetType(String), GetType(MyListItem), New PropertyMetadata("")) '图片 Private _Logo As String = "" @@ -663,6 +664,8 @@ Log(ex, "设置帮助 MyListItem 失败", LogLevel.Msgbox) End Try End If + LabInfo.Text = Info + LabInfo.Visibility = If(LabInfo.Text = "", Visibility.Collapsed, Visibility.Visible) End Sub Public Overrides Function ToString() As String Return Title diff --git a/Plain Craft Launcher 2/Controls/MySearchBox.xaml.vb b/Plain Craft Launcher 2/Controls/MySearchBox.xaml.vb index ee3bb152..4109d46f 100644 --- a/Plain Craft Launcher 2/Controls/MySearchBox.xaml.vb +++ b/Plain Craft Launcher 2/Controls/MySearchBox.xaml.vb @@ -3,18 +3,22 @@ Public Event TextChanged(sender As Object, e As EventArgs) Private Sub MySearchBox_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded + TextBox.HintText = HintText TextBox.Focus() End Sub '属性 Public Property HintText() As String Get - Return TextBox.HintText + Return GetValue(HintTextProperty) End Get Set(value As String) - TextBox.HintText = value + SetValue(HintTextProperty, value) + If TextBox IsNot Nothing Then TextBox.HintText = value End Set End Property + Public Shared ReadOnly HintTextProperty As DependencyProperty = DependencyProperty.Register("HintText", GetType(String), GetType(MySearchBox), New PropertyMetadata("")) + Public Property Text() As String Get Return TextBox.Text diff --git a/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadLeft.xaml b/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadLeft.xaml index 9514cb7b..eda39690 100644 --- a/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadLeft.xaml +++ b/Plain Craft Launcher 2/Pages/PageDownload/PageDownloadLeft.xaml @@ -67,7 +67,7 @@ - + diff --git a/Plain Craft Launcher 2/Pages/PageOther/PageOtherAbout.xaml b/Plain Craft Launcher 2/Pages/PageOther/PageOtherAbout.xaml index b5868511..e963cdf0 100644 --- a/Plain Craft Launcher 2/Pages/PageOther/PageOtherAbout.xaml +++ b/Plain Craft Launcher 2/Pages/PageOther/PageOtherAbout.xaml @@ -6,7 +6,7 @@ PanScroll="{Binding ElementName=PanBack}" RenderOptions.BitmapScalingMode="LowQuality"> - + @@ -17,8 +17,8 @@ - - + + @@ -29,11 +29,11 @@ - - + + - + @@ -50,16 +50,16 @@ - - - - - - - - - - + + + + + + + + + + @@ -102,9 +102,9 @@ - + - + @@ -417,26 +417,26 @@ - - - - + + + + - + - - + + - + @@ -461,42 +461,42 @@ - - - - - - - - - - - diff --git a/Plain Craft Launcher 2/Pages/PageOther/PageOtherHelp.xaml b/Plain Craft Launcher 2/Pages/PageOther/PageOtherHelp.xaml index 81a16367..c5415c77 100644 --- a/Plain Craft Launcher 2/Pages/PageOther/PageOtherHelp.xaml +++ b/Plain Craft Launcher 2/Pages/PageOther/PageOtherHelp.xaml @@ -7,7 +7,8 @@ - + + @@ -17,7 +18,7 @@ - + diff --git a/Plain Craft Launcher 2/Pages/PageOther/PageOtherHelp.xaml.vb b/Plain Craft Launcher 2/Pages/PageOther/PageOtherHelp.xaml.vb index d8c0a68c..1cfb8e72 100644 --- a/Plain Craft Launcher 2/Pages/PageOther/PageOtherHelp.xaml.vb +++ b/Plain Craft Launcher 2/Pages/PageOther/PageOtherHelp.xaml.vb @@ -4,6 +4,11 @@ '滚动条 Private Sub PageOther_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded + If Lang = "zh_CN" Then + HintSCOnly.Visibility = Visibility.Collapsed + Else + HintSCOnly.Visibility = Visibility.Visible + End If PanBack.ScrollToHome() End Sub '初始化加载器信息 diff --git a/Plain Craft Launcher 2/Pages/PageOther/PageOtherLeft.xaml b/Plain Craft Launcher 2/Pages/PageOther/PageOtherLeft.xaml index 119a07ce..016b3bb3 100644 --- a/Plain Craft Launcher 2/Pages/PageOther/PageOtherLeft.xaml +++ b/Plain Craft Launcher 2/Pages/PageOther/PageOtherLeft.xaml @@ -3,21 +3,21 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:PCL" AnimatedControl="{Binding ElementName=PanItem, Mode=OneWay}"> - - + - - - - diff --git a/Plain Craft Launcher 2/Pages/PageOther/PageOtherLeft.xaml.vb b/Plain Craft Launcher 2/Pages/PageOther/PageOtherLeft.xaml.vb index 846e453a..281c53fe 100644 --- a/Plain Craft Launcher 2/Pages/PageOther/PageOtherLeft.xaml.vb +++ b/Plain Craft Launcher 2/Pages/PageOther/PageOtherLeft.xaml.vb @@ -116,7 +116,7 @@ RefreshHelp() ItemHelp.Checked = True End Select - Hint("正在刷新……", Log:=False) + Hint(Application.Current.FindResource("LangPageOtherRefreshing"), Log:=False) End Sub Public Shared Sub RefreshHelp() Setup.Set("SystemHelpVersion", 0) '强制重新解压文件 @@ -127,8 +127,8 @@ '打开网页 Public Shared Sub TryFeedback() Handles ItemFeedback.Click If Not CanFeedback(True) Then Exit Sub - Select Case MyMsgBox("是否要打开反馈列表网页?" & vbCrLf & "如果无法打开该网页,请尝试使用加速器或 VPN。", - "反馈提示", "提交新反馈", "查看反馈列表", "取消") + Select Case MyMsgBox(Application.Current.FindResource("LangPageOtherDialogFeedbackContent"), + Application.Current.FindResource("LangPageOtherDialogFeedbackTitle"), Application.Current.FindResource("LangPageOtherDialogFeedbackBtn1"), Application.Current.FindResource("LangPageOtherDialogFeedbackBtn2"), Application.Current.FindResource("LangDialogBtnCancel")) Case 1 Feedback(True, False) Case 2 @@ -136,8 +136,8 @@ End Select End Sub Public Shared Sub TryVote() Handles ItemVote.Click - If MyMsgBox("是否要打开新功能投票网页?" & vbCrLf & "如果无法打开该网页,请尝试使用加速器或 VPN。", - "提醒", "打开", "取消") = 2 Then Exit Sub + If MyMsgBox(Application.Current.FindResource("LangPageOtherDialogVoteContent"), + Application.Current.FindResource("LangPageOtherDialogVoteTitle"), Application.Current.FindResource("LangPageOtherDialogVoteBtn1"), Application.Current.FindResource("LangDialogBtnCancel")) = 2 Then Exit Sub OpenWebsite("https://github.com/Hex-Dragon/PCL2/discussions/categories/%E5%8A%9F%E8%83%BD%E6%8A%95%E7%A5%A8?discussions_q=category%3A%E5%8A%9F%E8%83%BD%E6%8A%95%E7%A5%A8+sort%3Adate_created") End Sub diff --git a/Plain Craft Launcher 2/Resources/Language/en_US.xaml b/Plain Craft Launcher 2/Resources/Language/en_US.xaml index 3dcedba3..711cb871 100644 --- a/Plain Craft Launcher 2/Resources/Language/en_US.xaml +++ b/Plain Craft Launcher 2/Resources/Language/en_US.xaml @@ -564,7 +564,7 @@ Snapshot Tips Startup log The snapshot version contains test features that have not yet been officially released and is only for the sponsors themselves to try. Please do not send it to others or use it to make integrated packages! -If you have accumulated sponsorship ¥ 23.33, you can permanently hide this reminder by sending the "解锁码" in a private message from AiPower Generation. +If you have accumulated sponsorship ¥ 23.33, you can permanently hide this reminder by sending the "解锁码" in a private message from AFDian. Loading home page... Tips Echo hole @@ -635,5 +635,55 @@ Loading Change password Log out - - + + + Help + Refresh + About and thanks + Tools + Feedback + New feature voting + + + Search here + Loading help list + Sorry, the help library currently only supports Simplified Chinese + Refreshing... + Do you want to open the feedback list page? If you can't open the webpage, try using an accelerator or VPN. + Feedback prompt + Submit new feedback + View the feedback list + Do you want to open a new feature voting page? If you can't open the webpage, try using an accelerator or VPN. +Remind +Open + + +About +LTCat +The author of Plain Craft Launcher ! +Buy him a coffee +Version: %VERSION%(%VERSIONCODE%.%BRANCH%) +View source +Special thanks +Provide BMCLAPI image source and Forge installation tool. For details, see https://bmclapi.bangbang93.com +Sponsor +It provides a Chinese translation of the name of Mod and more related information! +Open the MCMod +Provides Java Launch Wrapper and some important service support! +Provides some hard-to-find versions of Minecraft and some technical support! +I designed and made the PCL icon, which freed me from the dire straits of making icons... +In the internal test, we found a lot of weird bugs that no one expected, and they had extraordinary Bug constitutions. +Although the website has been closed, thank you for providing the MCBBS image source before... +Thank you to the netizens in the group for their support and encouragement to PCL and me for so long! +Sponsors +The following are the senior sponsors from May to June 2024! Thank you for your support for PCL! +Generate unlock code +Sponsored author +Copy identification code +Enter unlock code +Legal information +License and copyright statement +View license documents +Check the source website +User Agreement and Disclaimer + \ No newline at end of file diff --git a/Plain Craft Launcher 2/Resources/Language/zh_CN.xaml b/Plain Craft Launcher 2/Resources/Language/zh_CN.xaml index de60981a..eea04edc 100644 --- a/Plain Craft Launcher 2/Resources/Language/zh_CN.xaml +++ b/Plain Craft Launcher 2/Resources/Language/zh_CN.xaml @@ -635,4 +635,55 @@ 加载中 更改密码 退出登录 - + + + 帮助 + 刷新 + 关于与鸣谢 + 百宝箱 + 反馈 + 新功能投票 + + + 搜索帮助 + 正在加载帮助列表 + 很抱歉,帮助库目前只支持简体中文 + 正在刷新…… + 是否要打开反馈列表网页? 如果无法打开该网页,请尝试使用加速器或 VPN。 + 反馈提示 + 提交新反馈 + 查看反馈列表 + 是否要打开新功能投票网页? 如果无法打开该网页,请尝试使用加速器或 VPN。 +提醒 +打开 + + + 关于 + 龙腾猫跃 + Plain Craft Launcher 的作者! + 赞助作者 + 当前版本:%VERSION%(%VERSIONCODE%.%BRANCH%) + 查看源代码 + 特别鸣谢 + 提供 BMCLAPI 镜像源和 Forge 安装工具,详见 https://bmclapi.bangbang93.com + 赞助镜像源 + 提供了 Mod 名称的中文翻译和更多相关信息! + 打开百科 + 提供了 Java Launch Wrapper 和一些重要服务支持! + 提供了部分很难找到的 Minecraft 版本与一些技术支持! + 设计并制作了 PCL 图标,让我从做图标的水深火热中得到了解脱…… + 在内测中找出了一大堆没人想得到的诡异 Bug,有非同寻常的 Bug 体质 + 虽然已经关站了,但感谢此前提供了 MCBBS 镜像源…… + 感谢内群的沙雕网友们这么久以来对我和 PCL 的支持与鼓励! + 赞助者 + 以下是 2024 年 5~6 月的高级赞助者们!感谢各位对 PCL 和伟大的咕咕咕事业的支持! + 生成解锁码 + 赞助作者 + 复制识别码 + 输入解锁码 + 法律信息 + 许可与版权声明 + 查看许可文档 + 查看来源网站 + 用户协议与免责声明 + \ No newline at end of file diff --git a/Plain Craft Launcher 2/Resources/Language/zh_HK.xaml b/Plain Craft Launcher 2/Resources/Language/zh_HK.xaml index 27625ba3..76c7c540 100644 --- a/Plain Craft Launcher 2/Resources/Language/zh_HK.xaml +++ b/Plain Craft Launcher 2/Resources/Language/zh_HK.xaml @@ -635,4 +635,55 @@ 加載中 更改密碼 退出登錄 - + + + 幫助 + 刷新 + 關於與鳴謝 + 百寶箱 + 反饋 + 新功能投票 + + + 搜索幫助 + 正在加載幫助列表 + 很抱歉,幫助庫目前只支持簡體中文 + 正在刷新…… + 是否要打開反饋列表網頁? 如果無法打開該網頁,請嘗試使用加速器或 VPN。 + 反饋提示 + 提交新反饋 + 查看反饋列表 + 是否要打開新功能投票網頁? 如果無法打開該網頁,請嘗試使用加速器或 VPN。 +提醒 +打開 + + + 關於 + 龍騰貓躍 + Plain Craft Launcher 的作者! + 贊助作者 + 當前版本:%VERSION%(%VERSIONCODE%.%BRANCH%) + 查看源代碼 + 特別鳴謝 + 提供 BMCLAPI 鏡像源和 Forge 安裝工具,詳見 https://bmclapi.bangbang93.com + 贊助鏡像源 + 提供了 Mod 名稱的中文翻譯和更多相關信息! + 打開百科 + 提供了 Java Launch Wrapper 和一些重要服務支持! + 提供了部分很難找到的 Minecraft 版本與一些技術支持! + 設計並製作了 PCL 圖標,讓我從做圖標的水深火熱中得到了解脫…… + 在內測中找出了一大堆沒人想得到的詭異 Bug,有非同尋常的 Bug 體質 + 雖然已經關站了,但感謝此前提供了 MCBBS 鏡像源…… + 感謝內群的沙雕網友們這麼久以來對我和 PCL 的支持與鼓勵! + 贊助者 + 以下是 2024 年 5~6 月的高級贊助者們!感謝各位對 PCL 和偉大的咕咕咕事業的支持! + 生成解鎖碼 + 贊助作者 + 複製識別碼 + 輸入解鎖碼 + 法律信息 + 許可與版權聲明 + 查看許可文檔 + 查看來源網站 + 用戶協議與免責聲明 + \ No newline at end of file