From ca7a40044c60839da7f3313468454d313c4caf38 Mon Sep 17 00:00:00 2001 From: Myssal <143514975+myssal@users.noreply.github.com> Date: Sun, 27 Apr 2025 21:57:53 +0700 Subject: [PATCH] feat: more controls localize --- SpineViewer/Controls/SpineListView.cs | 26 +- .../Controls/SpineListView.ebu-KE.resx | 120 +++ SpineViewer/Controls/SpineListView.en.resx | 278 ++++--- SpineViewer/Controls/SpineListView.resx | 782 +++++++++--------- .../Controls/SpinePreviewPanel.en-US.resx | 3 + SpineViewer/Controls/SpinePreviewPanel.resx | 5 +- SpineViewer/Dialogs/AboutDialog.cs | 4 +- SpineViewer/Properties/Resources.Designer.cs | 153 ++++ SpineViewer/Properties/Resources.en-US.resx | 56 +- SpineViewer/Properties/Resources.resx | 51 ++ 10 files changed, 957 insertions(+), 521 deletions(-) create mode 100644 SpineViewer/Controls/SpineListView.ebu-KE.resx diff --git a/SpineViewer/Controls/SpineListView.cs b/SpineViewer/Controls/SpineListView.cs index fd888fc..1aecb5b 100644 --- a/SpineViewer/Controls/SpineListView.cs +++ b/SpineViewer/Controls/SpineListView.cs @@ -16,6 +16,7 @@ using NLog; using SpineViewer.Extensions; using SpineViewer.Utils; using SpineViewer.Spine.SpineView; +using SpineViewer.Utils.Localize; namespace SpineViewer.Controls { @@ -47,11 +48,12 @@ namespace SpineViewer.Controls Spines = spines.AsReadOnly(); } - /// - /// 显示骨骼信息的属性面板 - /// - [Category("自定义"), Description("用于显示模型属性的组合属性页")] - public SpineViewPropertyGrid? SpinePropertyGrid { get; set; } + /// + /// 显示骨骼信息的属性面板 + /// + [LocalizedCategory(typeof(Properties.Resources), "categoryCustom")] + [LocalizedDescription(typeof(Properties.Resources), "descModelAttributes")] + public SpineViewPropertyGrid? SpinePropertyGrid { get; set; } /// /// 选中的索引 @@ -101,7 +103,7 @@ namespace SpineViewer.Controls { logger.Error(ex.ToString()); logger.Error("Failed to load {} {}", result.SkelPath, result.AtlasPath); - MessagePopup.Error(ex.ToString(), "骨骼加载失败"); + MessagePopup.Error(ex.ToString(), Properties.Resources.errorLoadSkeleton); } logger.LogCurrentProcessMemoryUsage(); @@ -142,7 +144,7 @@ namespace SpineViewer.Controls int success = 0; int error = 0; - worker.ReportProgress(0, $"已处理 0/{totalCount}"); + worker.ReportProgress(0, $"{Properties.Resources.process} 0/{totalCount}"); for (int i = 0; i < totalCount; i++) { if (worker.CancellationPending) @@ -174,7 +176,7 @@ namespace SpineViewer.Controls error++; } - worker.ReportProgress((int)((i + 1) * 100.0) / totalCount, $"已处理 {i + 1}/{totalCount}"); + worker.ReportProgress((int)((i + 1) * 100.0) / totalCount, $"{Properties.Resources.process} {i + 1}/{totalCount}"); } // 选中最后一项 @@ -222,7 +224,7 @@ namespace SpineViewer.Controls { if (validPaths.Count > 100) { - if (MessagePopup.Quest($"共发现 {validPaths.Count} 个可加载骨骼,数量较多,是否一次性全部加载?") == DialogResult.Cancel) + if (MessagePopup.Quest($"{Properties.Resources.loadAllSkeletonPrefix}{validPaths.Count}{Properties.Resources.loadAllSkeletonSuffix}") == DialogResult.Cancel) return; } BatchAdd(new Dialogs.BatchOpenSpineDialogResult(SpineVersion.Auto, validPaths.ToArray())); @@ -276,7 +278,7 @@ namespace SpineViewer.Controls if (listView.SelectedItems.Count > 0) listView.SelectedItems[0].EnsureVisible(); - toolStripStatusLabel_CountInfo.Text = $"已选择 {listView.SelectedItems.Count} 项,共 {listView.Items.Count} 项"; + toolStripStatusLabel_CountInfo.Text = $"{Properties.Resources.countInfoStatusPrefix} {listView.SelectedItems.Count} {Properties.Resources.countInfoStatusMidfix} {listView.Items.Count} {Properties.Resources.countInfoStatusSuffix}"; } private void listView_ItemDrag(object sender, ItemDragEventArgs e) @@ -411,7 +413,7 @@ namespace SpineViewer.Controls if (listView.SelectedIndices.Count > 1) { - if (MessagePopup.Quest($"确定移除所选 {listView.SelectedIndices.Count} 项吗?") != DialogResult.OK) + if (MessagePopup.Quest($"{Properties.Resources.removeItemConfirmPrefix} {listView.SelectedIndices.Count} {Properties.Resources.removeItemConfirmSuffix}") != DialogResult.OK) return; } @@ -511,7 +513,7 @@ namespace SpineViewer.Controls if (listView.Items.Count <= 0) return; - if (MessagePopup.Quest($"确认移除所有 {listView.Items.Count} 项吗?") != DialogResult.OK) + if (MessagePopup.Quest($"{Properties.Resources.removeAllItemPrefix} {listView.Items.Count} {Properties.Resources.removeItemConfirmSuffix}") != DialogResult.OK) return; listView.Items.Clear(); diff --git a/SpineViewer/Controls/SpineListView.ebu-KE.resx b/SpineViewer/Controls/SpineListView.ebu-KE.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/SpineViewer/Controls/SpineListView.ebu-KE.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + \ No newline at end of file diff --git a/SpineViewer/Controls/SpineListView.en.resx b/SpineViewer/Controls/SpineListView.en.resx index fe000ab..5c4ec82 100644 --- a/SpineViewer/Controls/SpineListView.en.resx +++ b/SpineViewer/Controls/SpineListView.en.resx @@ -1,17 +1,17 @@  - @@ -117,102 +117,156 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - + + Name - - - - - Switch view - - - Stick to top - - - - - - - - - Remove - - - - - - Copy preview - - - - - - Large icon - - - - - - Up - - - - - - More info - - - - - - Bottom - - - 0 items selected, 0 items total - - - Select all - - - Add to clipboard - - - - - - - - - - - - - - - Bulk add... - - - Remove all + + + 192, 24 Add to... - - List - - - - 206, 20 + + 192, 24 Insert... - - + + + (none) + + + 192, 24 + + + Remove + + + 189, 6 + + + 192, 24 + + + Bulk add... + + + 192, 24 + + + Remove all + + + 189, 6 + + + (none) + + + 192, 24 + + + Up + + + 192, 24 Down + + (none) + + + 192, 24 + + + Stick to top + + + (none) + + + 192, 24 + + + Bottom + + + 189, 6 + + + (none) + + + 192, 24 + + + Copy preview + + + (none) + + + 192, 24 + + + Add to clipboard + + + (none) + + + 192, 24 + + + Select all + + + 189, 6 + + + (none) + + + 161, 26 + + + Large icon + + + (none) + + + 161, 26 + + + List + + + (none) + + + 161, 26 + + + More info + + + 192, 24 + + + Switch view + + + 193, 340 + + + 206, 20 + + + 0 items selected, 0 items total + \ No newline at end of file diff --git a/SpineViewer/Controls/SpineListView.resx b/SpineViewer/Controls/SpineListView.resx index ce5aee1..7329cfe 100644 --- a/SpineViewer/Controls/SpineListView.resx +++ b/SpineViewer/Controls/SpineListView.resx @@ -117,458 +117,458 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - statusStrip1 - - - - Alt+Shift+W - - - 244, 371 + + 200, 26 - - timer_SelectedIndexChangedDebounce + + 置顶 - - System.Windows.Forms.ColumnHeader, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 8, 20 - + 220, 24 - - Fill + + 全选 - - 0, 0 - - + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 220, 24 + + toolStripMenuItem_ChangeView - - toolStripStatusLabel_CountInfo - - - 221, 340 - - - 220, 24 - - - toolStripMenuItem_CopyPreview - - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 217, 6 - - toolStripMenuItem_LargeIconView + + 220, 24 - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + toolStripMenuItem_SelectAll - - 244, 371 - - - System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + toolStripMenuItem_DetailsView - - 1 + + 300 - - System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 244, 345 + + + 大图标 + + + tableLayoutPanel + + + 217, 6 + + + toolStripSeparator3 + + + listView + + + 220, 24 + + + SpineListView + + + 220, 24 + + + 0 + + + 添加... 220, 24 + + System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 220, 24 + + + + Alt+Shift+W + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 221, 340 + + + timer_SelectedIndexChangedDebounce + + + 从剪贴板添加 + + + tableLayoutPanel + + + System.Windows.Forms.ColumnHeader, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 0, 0 + 0, 0, 0, 0 - - 0, 0 + + 244, 371 - - System.Windows.Forms.UserControl, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - + 220, 24 - - toolStripMenuItem_ChangeView + + 移除 - - 切换视图 - - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 置顶 - - - 0, 345 - - - System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Alt+W - - - tableLayoutPanel - - - toolStripSeparator1 - - - 200, 26 - - - 220, 24 + + System.Windows.Forms.ImageList, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 96, 96 - - toolStripMenuItem_BatchAdd - - - System.Windows.Forms.StatusStrip, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Windows.Forms.ToolStripStatusLabel, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Alt+S - - - <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="listView" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="statusStrip" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /></Controls><Columns Styles="Percent,100" /><Rows Styles="Percent,100,AutoSize,0" /></TableLayoutSettings> - - - toolStripMenuItem_AddFromClipboard + + statusStrip1 1 - - 48, 48 + + Alt+2 - - toolStripMenuItem_MoveDown + + System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 详细信息 + + + toolStripMenuItem_MoveTop + + + 220, 24 + + + 2, 2, 2, 2 + + + toolStripMenuItem_LargeIconView + + + 已选择 0 项,共 0 项 + + + toolStripMenuItem_Insert + + + 置底 + + + 上移 + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 244, 371 + + + Left System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 插入... + + + 复制预览图 + + + 切换视图 + + + 217, 6 + + + 名称 + + + 220, 24 + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Ctrl+C + + + System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 220, 24 + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + contextMenuStrip + + + 1 + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + tableLayoutPanel - - 2, 2, 2, 2 - - - 2, 2, 2, 2 - - - 移除 - - - 217, 6 - - - Ctrl+C - - - 217, 6 - - - 200, 26 - - - 300 - - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Fill - - - 复制预览图 - - - Alt+Shift+S - - - 大图标 - - - System.Windows.Forms.Timer, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 217, 6 - - - columnHeader_Name - - - tableLayoutPanel - - - Ctrl+V - - - 1, 0, 10, 0 - - - listView - toolStripMenuItem_RemoveAll - - toolStripSeparator3 - - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 220, 24 - - - toolStripMenuItem_Insert - - - 220, 24 - - - 3 - - - 名称 - - - 上移 - - - toolStripMenuItem_Remove - - - Alt+2 - - - 详细信息 - - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 2 - - - imageList_SmallIcon - - - Alt+1 - - - 8, 20 - - - 220, 24 - - - 置底 - - - 0 - - - toolStripMenuItem_MoveBottom - - - 已选择 0 项,共 0 项 - - - 全选 - - - System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - toolStripMenuItem_MoveTop - - - 从剪贴板添加 - - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - toolStripMenuItem_DetailsView - - - Alt+3 - - - 1 - - - toolStripSeparator4 - - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 200, 26 - - - System.Windows.Forms.ListView, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - toolStripMenuItem_ListView - - - SpineListView - - - 220, 24 - - - imageList_LargeIcon - - - 244, 345 - - - 220, 24 - - - 220, 24 - - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Ctrl+A - - - System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - contextMenuStrip - - - toolStripMenuItem_SelectAll - - - 220, 24 - - - Fill - - - toolStripMenuItem_Add - - - 2 - - - 批量添加... - - - statusStrip - - - 移除全部 - - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 添加... - - - 列表 - - - 145, 20 - - - toolStripMenuItem_MoveUp - - - toolStripSeparator2 - - - 244, 26 - - - Left - - - 1 - - - 插入... - - - System.Windows.Forms.ImageList, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - $this - - - Del - - - System.Windows.Forms.ImageList, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - 下移 + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 217, 6 + + + 移除全部 + + + toolStripMenuItem_AddFromClipboard + + + System.Windows.Forms.ToolStripStatusLabel, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 200, 26 + + + 220, 24 + + + Alt+W + + + Alt+1 + + + Ctrl+V + + + statusStrip + + + toolStripSeparator1 + + + 1 + + + 批量添加... + + + System.Windows.Forms.ImageList, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + toolStripMenuItem_MoveBottom + + + toolStripMenuItem_Add + + + imageList_LargeIcon + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 48, 48 + + + 200, 26 + + + toolStripMenuItem_MoveDown + + + 0, 0 + + + 244, 26 + + + toolStripSeparator4 + + + Fill + + + toolStripSeparator2 + + + columnHeader_Name + + + Alt+3 + + + 2, 2, 2, 2 + + + toolStripMenuItem_Remove + + + Del + + + toolStripMenuItem_BatchAdd + + + Fill + + + System.Windows.Forms.Timer, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Ctrl+A + + + System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + imageList_SmallIcon + + + <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="listView" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="statusStrip" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /></Controls><Columns Styles="Percent,100" /><Rows Styles="Percent,100,AutoSize,0" /></TableLayoutSettings> + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + toolStripStatusLabel_CountInfo + + + Fill + + + Alt+Shift+S + + + 2 + + + 2 + + + 145, 20 + + + toolStripMenuItem_ListView + + + $this + + + 列表 + + + System.Windows.Forms.ListView, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 220, 24 + + + System.Windows.Forms.UserControl, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 220, 24 + + + 0, 345 + + + Alt+S + + + System.Windows.Forms.StatusStrip, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 1 + + + toolStripMenuItem_MoveUp + + + toolStripMenuItem_CopyPreview + + + 1, 0, 10, 0 + + + 3 + True - - 17, 17 - - - en - - - 252, 19 - - - 511, 20 - 1176, 24 771, 24 + + 511, 20 + + + ebu-KE + + + 17, 17 + + + 252, 19 + \ No newline at end of file diff --git a/SpineViewer/Controls/SpinePreviewPanel.en-US.resx b/SpineViewer/Controls/SpinePreviewPanel.en-US.resx index 1af7de1..8348b2d 100644 --- a/SpineViewer/Controls/SpinePreviewPanel.en-US.resx +++ b/SpineViewer/Controls/SpinePreviewPanel.en-US.resx @@ -117,4 +117,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + About + \ No newline at end of file diff --git a/SpineViewer/Controls/SpinePreviewPanel.resx b/SpineViewer/Controls/SpinePreviewPanel.resx index 1e63bb1..35f366f 100644 --- a/SpineViewer/Controls/SpinePreviewPanel.resx +++ b/SpineViewer/Controls/SpinePreviewPanel.resx @@ -126,7 +126,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD0 - IwAAAk1TRnQBSQFMAgEBBwEAAZABAAGYAQABHwEAARgBAAT/ASEBEAj/AUIBTQE2BwABNgMAASgDAAF8 + IwAAAk1TRnQBSQFMAgEBBwEAAZABAAGcAQABHwEAARgBAAT/ASEBEAj/AUIBTQE2BwABNgMAASgDAAF8 AwABMAMAAQEBAAEgBgABXT4AAwQBBQMAAf8DAAH/AwAB/wMAAf8DAAH/AwAB/wMAAf8DAAH/AwAB/0MA Af8DAAH/AwAB/wMAAf8DVQGxZAADWAHvAwAB/wMAAf8DAAH/AwAB/wMAAf8DAAH/AwAB/wMAAf8DAAH/ AwAB/wMAAf8DAAH/AwAB/wMAAf8DAAH/AwAB/wMAAf8DAAH/AwAB/wMAAf8DLQFFtwAB/wMAAf8DAAH/ @@ -291,4 +291,7 @@ 618, 18 + + + \ No newline at end of file diff --git a/SpineViewer/Dialogs/AboutDialog.cs b/SpineViewer/Dialogs/AboutDialog.cs index f5ff22c..cb6c653 100644 --- a/SpineViewer/Dialogs/AboutDialog.cs +++ b/SpineViewer/Dialogs/AboutDialog.cs @@ -16,7 +16,7 @@ namespace SpineViewer.Dialogs public AboutDialog() { InitializeComponent(); - Text = $"关于 {ProgramName}"; + Text = $"{Properties.Resources.about} {ProgramName}"; label_Version.Text = $"v{InformationalVersion}"; } @@ -41,7 +41,7 @@ namespace SpineViewer.Dialogs else { Clipboard.SetText(url); - MessagePopup.Info("链接已复制到剪贴板,请前往浏览器进行访问"); + MessagePopup.Info(Properties.Resources.notifyCopyGithubLink, Properties.Resources.msgBoxInfo); } } } diff --git a/SpineViewer/Properties/Resources.Designer.cs b/SpineViewer/Properties/Resources.Designer.cs index 130d80d..b426690 100644 --- a/SpineViewer/Properties/Resources.Designer.cs +++ b/SpineViewer/Properties/Resources.Designer.cs @@ -60,6 +60,15 @@ namespace SpineViewer.Properties { } } + /// + /// Looks up a localized string similar to 关于 . + /// + internal static string about { + get { + return ResourceManager.GetString("about", resourceCulture); + } + } + /// /// Looks up a localized string similar to 自定义. /// @@ -87,6 +96,33 @@ namespace SpineViewer.Properties { } } + /// + /// Looks up a localized string similar to 项,共 . + /// + internal static string countInfoStatusMidfix { + get { + return ResourceManager.GetString("countInfoStatusMidfix", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 已选择 . + /// + internal static string countInfoStatusPrefix { + get { + return ResourceManager.GetString("countInfoStatusPrefix", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 项. + /// + internal static string countInfoStatusSuffix { + get { + return ResourceManager.GetString("countInfoStatusSuffix", resourceCulture); + } + } + /// /// Looks up a localized string similar to 相关联的 SpineListView. /// @@ -105,6 +141,15 @@ namespace SpineViewer.Properties { } } + /// + /// Looks up a localized string similar to 用于显示模型属性的组合属性页. + /// + internal static string descModelAttributes { + get { + return ResourceManager.GetString("descModelAttributes", resourceCulture); + } + } + /// /// Looks up a localized string similar to 背景颜色. /// @@ -195,6 +240,15 @@ namespace SpineViewer.Properties { } } + /// + /// Looks up a localized string similar to 骨骼加载失败. + /// + internal static string errorLoadSkeleton { + get { + return ResourceManager.GetString("errorLoadSkeleton", resourceCulture); + } + } + /// /// Looks up a localized string similar to 已选择 . /// @@ -213,6 +267,105 @@ namespace SpineViewer.Properties { } } + /// + /// Looks up a localized string similar to 共发现 . + /// + internal static string loadAllSkeletonPrefix { + get { + return ResourceManager.GetString("loadAllSkeletonPrefix", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 个可加载骨骼,数量较多,是否一次性全部加载?. + /// + internal static string loadAllSkeletonSuffix { + get { + return ResourceManager.GetString("loadAllSkeletonSuffix", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 错误信息. + /// + internal static string msgBoxError { + get { + return ResourceManager.GetString("msgBoxError", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 提示信息. + /// + internal static string msgBoxInfo { + get { + return ResourceManager.GetString("msgBoxInfo", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 操作确认. + /// + internal static string msgBoxQuest { + get { + return ResourceManager.GetString("msgBoxQuest", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 警告信息. + /// + internal static string msgBoxWarning { + get { + return ResourceManager.GetString("msgBoxWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 链接已复制到剪贴板,请前往浏览器进行访问. + /// + internal static string notifyCopyGithubLink { + get { + return ResourceManager.GetString("notifyCopyGithubLink", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 已处理 . + /// + internal static string process { + get { + return ResourceManager.GetString("process", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 确认移除所有 . + /// + internal static string removeAllItemPrefix { + get { + return ResourceManager.GetString("removeAllItemPrefix", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 确定移除所选 . + /// + internal static string removeItemConfirmPrefix { + get { + return ResourceManager.GetString("removeItemConfirmPrefix", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 项吗?. + /// + internal static string removeItemConfirmSuffix { + get { + return ResourceManager.GetString("removeItemConfirmSuffix", resourceCulture); + } + } + /// /// Looks up a localized string similar to 语言已设为英语。立即重启应用程序吗?. /// diff --git a/SpineViewer/Properties/Resources.en-US.resx b/SpineViewer/Properties/Resources.en-US.resx index 4ace5d0..718c8ed 100644 --- a/SpineViewer/Properties/Resources.en-US.resx +++ b/SpineViewer/Properties/Resources.en-US.resx @@ -117,6 +117,9 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + About + Custom @@ -126,12 +129,24 @@ [1] Preview + + item(s) selected, + + + . + + + in total. + Associated SpineListView Property page for displaying image properties + + Model attributes display page. + Background color @@ -162,13 +177,48 @@ Zoom - - - + + Failed to load skeleton + + + . item(s) selected. + + A total of + + + skeletons found. Do you want to load them all at once? + + + Error + + + Info + + + Action Confirmation + + + Warning + + + Link copied to clipboard. Please open it in browser + + + Processed + + + Remove all + + + Remove + + + item(s)? + Language set to Simplified Chinese. Restart application now? diff --git a/SpineViewer/Properties/Resources.resx b/SpineViewer/Properties/Resources.resx index 2a5c952..dd75ce0 100644 --- a/SpineViewer/Properties/Resources.resx +++ b/SpineViewer/Properties/Resources.resx @@ -117,6 +117,9 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 关于 + 自定义 @@ -126,12 +129,24 @@ [1] 预览 + + 项,共 + + + 已选择 + + + + 相关联的 SpineListView 用于显示画面属性的属性页 + + 用于显示模型属性的组合属性页 + 背景颜色 @@ -162,12 +177,48 @@ 缩放 + + 骨骼加载失败 + 已选择 个文件 + + 共发现 + + + 个可加载骨骼,数量较多,是否一次性全部加载? + + + 错误信息 + + + 提示信息 + + + 操作确认 + + + 警告信息 + + + 链接已复制到剪贴板,请前往浏览器进行访问 + + + 已处理 + + + 确认移除所有 + + + 确定移除所选 + + + 项吗? + 语言已设为英语。立即重启应用程序吗?