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

SpaceEngineersModDev/SpaceEngineersBlueprintEditorInWinUI

完成设置页面的en本地化

11dc7b9
XFE工作室室长 <mail@xfegzs.com>
提交于

代码差异

3 个文件 +31 -7
Modified SpaceEngineersBlueprintEditor/Strings/en-us/Resources.resw +24 -0
@@ -273,6 +273,30 @@
273 273 <value>Definitions</value>
274 274 <comment>定义集</comment>
275 275 </data>
276 <data name="Confirm" xml:space="preserve">
277 <value>Confirm</value>
278 <comment>确认</comment>
279 </data>
280 <data name="Cancel" xml:space="preserve">
281 <value>Cancel</value>
282 <comment>取消</comment>
283 </data>
284 <data name="ChangePath_FromPath" xml:space="preserve">
285 <value>Change the path from</value>
286 <comment>将目录从</comment>
287 </data>
288 <data name="ChangePath_ToPath" xml:space="preserve">
289 <value>To</value>
290 <comment>更改为</comment>
291 </data>
292 <data name="ChangePath_Ensure" xml:space="preserve">
293 <value>Are you sure to change?</value>
294 <comment>是否更改?</comment>
295 </data>
296 <data name="ClearCache_Ensure" xml:space="preserve">
297 <value>Are you sure to clear all the cache files (Include loaded game definitions)?</value>
298 <comment>是否清除包括已加载的游戏定义集在内的缓存文件?</comment>
299 </data>
276 300 <data name="DragFileToEditorText" xml:space="preserve">
277 301 <value>Drag blueprint here</value>
278 302 <comment>拖动蓝图文件至此处</comment>
Modified SpaceEngineersBlueprintEditor/ViewModels/GameDefinitionsViewPageViewModel.cs +1 -1
@@ -68,7 +68,7 @@ public partial class GameDefinitionsViewPageViewModel : ViewModelBase
68 68 {
69 69 if (e is null || NavigationParameterService.SameAsLast)
70 70 return;
71 loadingService?.StartLoading<GameDefinitionsViewPage>($"{"Loading".GetLocalized()} {e.ToLower()} {"Definitions".GetLocalized()}...");
71 loadingService?.StartLoading<GameDefinitionsViewPage>($"{"Loading".GetLocalized()} {e.ToLower()} {"Definitions".GetLocalized().ToLower()}...");
72 72 currentParameter = e;
73 73 await Helper.Wait(() => Initializer.IsDefinitionsLoadComplete && ItemsViewDisplayService.IsPageLoaded);
74 74 LoadDefinitions(GetCurrentDefinitions(currentParameter));
Modified SpaceEngineersBlueprintEditor/ViewModels/SettingPageViewModel.cs +6 -6
@@ -47,10 +47,10 @@ public partial class SettingPageViewModel : ViewModelBase
47 47 {
48 48 DefaultButton = ContentDialogButton.Primary,
49 49 IsPrimaryButtonEnabled = true,
50 Content = $"将目录从:{originalPath}\n更改为:{folder.Path}\n\n是否更改?",
51 PrimaryButtonText = "确认",
50 Content = $"{"ChangePath_FromPath".GetLocalized()}: {originalPath}\n{"ChangePath_ToPath".GetLocalized()}: {folder.Path}\n\n{"ChangePath_Ensure".GetLocalized()}",
51 PrimaryButtonText = "Confirm".GetLocalized(),
52 52 IsSecondaryButtonEnabled = true,
53 SecondaryButtonText = "取消",
53 SecondaryButtonText = "Cancel".GetLocalized(),
54 54 XamlRoot = SettingPage.Current.Content.XamlRoot
55 55 };
56 56 return (contentDialog, folder);
@@ -73,10 +73,10 @@ public partial class SettingPageViewModel : ViewModelBase
73 73 {
74 74 DefaultButton = ContentDialogButton.Primary,
75 75 IsPrimaryButtonEnabled = true,
76 Content = "是否清除包括已加载的游戏定义集在内的缓存文件?",
77 PrimaryButtonText = "确认",
76 Content = "ClearCache_Ensure".GetLocalized(),
77 PrimaryButtonText = "Confirm".GetLocalized(),
78 78 IsSecondaryButtonEnabled = true,
79 SecondaryButtonText = "取消",
79 SecondaryButtonText = "Cancel".GetLocalized(),
80 80 XamlRoot = SettingPage.Current.Content.XamlRoot
81 81 };
82 82 if (await contentDialog.ShowAsync() == ContentDialogResult.Primary)