XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

SpaceEngineersModDev/SpaceEngineersBlueprintEditorInWinUI

完成蓝图查看的en本地化

73d8ef3
XFE工作室室长 <mail@xfegzs.com>
提交于

代码差异

2 个文件 +20 -5
Modified SpaceEngineersBlueprintEditor/Strings/en-us/Resources.resw +16 -0
@@ -217,6 +217,18 @@
217 217 <value>Convert complete</value>
218 218 <comment>转换完成</comment>
219 219 </data>
220 <data name="RefreshComplete" xml:space="preserve">
221 <value>Refresh complete</value>
222 <comment>刷新完成</comment>
223 </data>
224 <data name="CopyToComplete" xml:space="preserve">
225 <value>Successful copy to</value>
226 <comment>已复制至</comment>
227 </data>
228 <data name="DeleteAtComplete" xml:space="preserve">
229 <value>Successful detele at</value>
230 <comment>已删除</comment>
231 </data>
220 232 <data name="Complete" xml:space="preserve">
221 233 <value>Complete</value>
222 234 <comment>完成</comment>
@@ -589,6 +601,10 @@
589 601 <value>Refresh list</value>
590 602 <comment>刷新列表</comment>
591 603 </data>
604 <data name="BlueprintViewPage_EnsureToDelete" xml:space="preserve">
605 <value>Are you sure to delete</value>
606 <comment>你确定要删除</comment>
607 </data>
592 608 <data name="GameDefinitionsViewPage_AutoSuggestBox_Properties.PlaceholderText" xml:space="preserve">
593 609 <value>Search properties...</value>
594 610 <comment>搜索属性...</comment>
Modified SpaceEngineersBlueprintEditor/ViewModels/BlueprintsViewPageViewModel.cs +4 -5
@@ -1,6 +1,5 @@
1 1 using CommunityToolkit.Mvvm.ComponentModel;
2 2 using CommunityToolkit.Mvvm.Input;
3 using Newtonsoft.Json.Linq;
4 3 using SpaceEngineersBlueprintEditor.Implements.Services;
5 4 using SpaceEngineersBlueprintEditor.Interface.Services;
6 5 using SpaceEngineersBlueprintEditor.Model;
@@ -67,7 +66,7 @@ public partial class BlueprintsViewPageViewModel : ViewModelBase
67 66 else if (e is BlueprintInfoViewData blueprintInfoViewData && Path.GetDirectoryName(blueprintInfoViewData.FilePath) is string path)
68 67 {
69 68 currentBlueprintInfoViewData = blueprintInfoViewData;
70 DeleteEnsureText = $"Are you sure to delete {blueprintInfoViewData.Name}?";
69 DeleteEnsureText = $"{"BlueprintViewPage_EnsureToDelete".GetLocalized()} {blueprintInfoViewData.Name}?";
71 70 CopyFolderText = Path.GetFileName(FileHelper.GetCopyDirectoryName(path)) ?? throw new NullReferenceException("Can't get the folder name");
72 71 }
73 72 }
@@ -80,7 +79,7 @@ public partial class BlueprintsViewPageViewModel : ViewModelBase
80 79 LoadCurrentBlueprints();
81 80 else
82 81 OnSearchTextChanged(SearchText);
83 messageService?.ShowMessage("刷新成功", "完成", InfoBarSeverity.Success);
82 messageService?.ShowMessage("RefreshComplete".GetLocalized(), "Complete".GetLocalized(), InfoBarSeverity.Success);
84 83 }
85 84
86 85 [RelayCommand]
@@ -100,7 +99,7 @@ public partial class BlueprintsViewPageViewModel : ViewModelBase
100 99 {
101 100 var targetPath = $@"{Path.GetDirectoryName(path)}\{CopyFolderText}";
102 101 FileHelper.CopyDirectory(path, targetPath);
103 messageService?.ShowMessage($"已复制至:{targetPath}", "完成", InfoBarSeverity.Success);
102 messageService?.ShowMessage($"{"CopyToComplete".GetLocalized()}: {targetPath}", "Complete".GetLocalized(), InfoBarSeverity.Success);
104 103 BlueprintsViewPage.Current?.commandBarFlyout.Hide();
105 104 await RefreshBlueprints();
106 105 }
@@ -112,7 +111,7 @@ public partial class BlueprintsViewPageViewModel : ViewModelBase
112 111 if (currentBlueprintInfoViewData is not null && Path.GetDirectoryName(currentBlueprintInfoViewData.FilePath) is string path)
113 112 {
114 113 Directory.Delete(path, true);
115 messageService?.ShowMessage($"已删除:{path}", "完成", InfoBarSeverity.Success);
114 messageService?.ShowMessage($"{"DeleteAtComplete".GetLocalized()}: {path}", "Complete".GetLocalized(), InfoBarSeverity.Success);
116 115 BlueprintsViewPage.Current?.commandBarFlyout.Hide();
117 116 await RefreshBlueprints();
118 117 }