properly init string table entries from actual string table
This commit is contained in:
parent
6ca434e120
commit
70b8babb82
@ -25,13 +25,13 @@ namespace UniversalEditor.Localization
|
||||
{
|
||||
public static class StringTable
|
||||
{
|
||||
public static string ApplicationName { get { return Application.Instance.DefaultLanguage.GetStringTableEntry("Application.Title", "Universal Editor"); } }
|
||||
public static string ErrorDataFormatNotOpen { get; } = "The data format is not open.";
|
||||
public static string ApplicationName { get { return Application.Instance?.DefaultLanguage?.GetStringTableEntry("Application.Title", null) ?? "Universal Editor"; } }
|
||||
|
||||
public static string ErrorDataFormatInvalid { get; } = "The data format is invalid.";
|
||||
public static string ErrorDataCorrupted { get; } = "The file is corrupted.";
|
||||
public static string ErrorFileNotFound { get; } = "The file could not be found.";
|
||||
public static string ErrorNotAnObjectModel { get; } = "The specified type is not an object model.";
|
||||
public static string ErrorObjectModelNull { get; } = "The object model must not be null.";
|
||||
public static string ErrorDataFormatNotOpen { get { return Application.Instance?.DefaultLanguage?.GetStringTableEntry("Application.Errors.DataFormatNotOpen", null) ?? "The data format is not open."; } }
|
||||
public static string ErrorDataFormatInvalid { get { return Application.Instance?.DefaultLanguage?.GetStringTableEntry("Application.Errors.DataFormatInvalid", null) ?? "The data format is invalid."; } }
|
||||
public static string ErrorDataCorrupted { get { return Application.Instance?.DefaultLanguage?.GetStringTableEntry("Application.Errors.DataCorrupted", null) ?? "The file is corrupted."; } }
|
||||
public static string ErrorFileNotFound { get { return Application.Instance?.DefaultLanguage?.GetStringTableEntry("Application.Errors.FileNotFound", null) ?? "The file could not be found."; } }
|
||||
public static string ErrorNotAnObjectModel { get { return Application.Instance?.DefaultLanguage?.GetStringTableEntry("Application.Errors.NotAnObjectModel", null) ?? "The specified type is not an object model."; } }
|
||||
public static string ErrorObjectModelNull { get { return Application.Instance?.DefaultLanguage?.GetStringTableEntry("Application.Errors.ObjectModelNull", null) ?? "The object model must not be null."; } }
|
||||
}
|
||||
}
|
||||
|
||||
@ -76,7 +76,7 @@ namespace UniversalEditor.DataFormats.Multimedia.Picture.GIM
|
||||
|
||||
_dfr.ExportOptions.SettingsGroups[0].Settings.Add(new TextSetting(nameof(OriginalFileName), "Original _filename"));
|
||||
_dfr.ExportOptions.SettingsGroups[0].Settings.Add(new TextSetting(nameof(CreationUserName), "Creation _user"));
|
||||
_dfr.ExportOptions.SettingsGroups[0].Settings.Add(new TextSetting(nameof(CreationApplication), "_Application name", "Universal Editor"));
|
||||
_dfr.ExportOptions.SettingsGroups[0].Settings.Add(new TextSetting(nameof(CreationApplication), "_Application name", MBS.Framework.Application.Instance.Title));
|
||||
}
|
||||
return _dfr;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user