返回提交历史
Modified
SpaceEngineersBlueprintEditor/Strings/en-us/Resources.resw
+12
-0
Modified
SpaceEngineersBlueprintEditor/ViewModels/GameDefinitionsViewPageViewModel.cs
+2
-2
SpaceEngineersModDev/SpaceEngineersBlueprintEditorInWinUI
完成游戏定义集页面的en本地化
94b72c4
代码差异
2 个文件
+14
-2
@@ -261,6 +261,18 @@
261
261
<value>None</value>
262
262
<comment>无</comment>
263
263
</data>
264
<data name="EmptyValue" xml:space="preserve">
265
<value>Empty value</value>
266
<comment>空值</comment>
267
</data>
268
<data name="NullObject" xml:space="preserve">
269
<value>Null</value>
270
<comment>空对象</comment>
271
</data>
272
<data name="Definitions" xml:space="preserve">
273
<value>Definitions</value>
274
<comment>定义集</comment>
275
</data>
264
276
<data name="DragFileToEditorText" xml:space="preserve">
265
277
<value>Drag blueprint here</value>
266
278
<comment>拖动蓝图文件至此处</comment>
@@ -54,7 +54,7 @@ public partial class GameDefinitionsViewPageViewModel : ViewModelBase
54
54
var propertyViewData = new PropertyViewData
55
55
{
56
56
PropertyName = definition.Name,
57
Value = string.IsNullOrWhiteSpace(valueString) ? isValueType ? "空值" : "空对象" : valueString,
57
Value = string.IsNullOrWhiteSpace(valueString) ? isValueType ? "EmptyValue".GetLocalized() : "NullObject".GetLocalized() : valueString,
58
58
IsValueType = isValueType
59
59
};
60
60
_propertiesInfo.Add(propertyViewData);
@@ -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 {e.ToLower()} definitions...");
71
loadingService?.StartLoading<GameDefinitionsViewPage>($"{"Loading".GetLocalized()} {e.ToLower()} {"Definitions".GetLocalized()}...");
72
72
currentParameter = e;
73
73
await Helper.Wait(() => Initializer.IsDefinitionsLoadComplete && ItemsViewDisplayService.IsPageLoaded);
74
74
LoadDefinitions(GetCurrentDefinitions(currentParameter));