返回提交历史
Modified
SpaceEngineersBlueprintEditor/Strings/en-us/Resources.resw
+16
-0
Modified
SpaceEngineersBlueprintEditor/ViewModels/BlueprintsViewPageViewModel.cs
+4
-5
SpaceEngineersModDev/SpaceEngineersBlueprintEditorInWinUI
完成蓝图查看的en本地化
73d8ef3
代码差异
2 个文件
+20
-5
@@ -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>
@@ -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
}