diff --git a/QuestPatcher/QuestPatcher.csproj b/QuestPatcher/QuestPatcher.csproj index e29e09f..8e3c50e 100644 --- a/QuestPatcher/QuestPatcher.csproj +++ b/QuestPatcher/QuestPatcher.csproj @@ -70,4 +70,22 @@ + + + + PublicResXFileCodeGenerator + Strings.Designer.cs + + + Strings.resx + + + + + + True + True + Strings.resx + + diff --git a/QuestPatcher/Resources/Strings.Designer.cs b/QuestPatcher/Resources/Strings.Designer.cs new file mode 100644 index 0000000..5e2a0d6 --- /dev/null +++ b/QuestPatcher/Resources/Strings.Designer.cs @@ -0,0 +1,80 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace QuestPatcher.Resources { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class Strings { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Strings() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("QuestPatcher.Resources.Strings", typeof(Strings).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Display Logs. + /// + public static string DisplayLogs { + get { + return ResourceManager.GetString("DisplayLogs", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to QuestPatcher loading . . .. + /// + public static string LoadingViewQPLoading { + get { + return ResourceManager.GetString("LoadingViewQPLoading", resourceCulture); + } + } + } +} diff --git a/QuestPatcher/Resources/Strings.resx b/QuestPatcher/Resources/Strings.resx new file mode 100644 index 0000000..10b7996 --- /dev/null +++ b/QuestPatcher/Resources/Strings.resx @@ -0,0 +1,27 @@ + + + + + + + + + + text/microsoft-resx + + + 1.3 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + QuestPatcher loading . . . + + + Display Logs + + \ No newline at end of file diff --git a/QuestPatcher/Resources/Strings.zh-hans.resx b/QuestPatcher/Resources/Strings.zh-hans.resx new file mode 100644 index 0000000..fe5a671 --- /dev/null +++ b/QuestPatcher/Resources/Strings.zh-hans.resx @@ -0,0 +1,20 @@ + + + text/microsoft-resx + + + 1.3 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + QuestPatcher 正在加载 . . . + + + 显示日志 + + \ No newline at end of file diff --git a/QuestPatcher/Views/LoadingView.axaml b/QuestPatcher/Views/LoadingView.axaml index 766460d..3ca7a2c 100644 --- a/QuestPatcher/Views/LoadingView.axaml +++ b/QuestPatcher/Views/LoadingView.axaml @@ -3,6 +3,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:viewModels="clr-namespace:QuestPatcher.ViewModels" + xmlns:res="clr-namespace:QuestPatcher.Resources" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" x:Class="QuestPatcher.Views.LoadingView"> @@ -14,11 +15,11 @@ - QuestPatcher loading . . . + - +