diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/App.config b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Data/F#.pdf b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Data/F#.pdf new file mode 100644 index 0000000..8773442 Binary files /dev/null and b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Data/F#.pdf differ diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Form1.Designer.cs b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Form1.Designer.cs new file mode 100644 index 0000000..da38b9c --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Form1.Designer.cs @@ -0,0 +1,40 @@ +namespace HostedLocalizationSample +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Text = "Form1"; + } + + #endregion + } +} + diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Form1.cs b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Form1.cs new file mode 100644 index 0000000..8d8926d --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Form1.cs @@ -0,0 +1,34 @@ +using Syncfusion.Windows.PdfViewer; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using System.Windows.Forms.Integration; + +namespace HostedLocalizationSample +{ + public partial class Form1 : Form + { + ElementHost elementHost = new ElementHost(); + WPFUserControl pdfViewer; + public Form1() + { + InitializeComponent(); + pdfViewer = new WPFUserControl(); + elementHost.Dock = DockStyle.Fill; + elementHost.Child = pdfViewer; + this.Controls.Add(elementHost); + this.Load += Form1_Load; + } + + private void Form1_Load(object sender, EventArgs e) + { + this.WindowState = FormWindowState.Maximized; + } + } +} diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/HostedLocalizationSample.csproj b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/HostedLocalizationSample.csproj new file mode 100644 index 0000000..c4bb6a5 --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/HostedLocalizationSample.csproj @@ -0,0 +1,104 @@ + + + + + Debug + AnyCPU + {EE530E7C-768A-4D2B-9CAB-45D6883C5E88} + WinExe + HostedLocalizationSample + HostedLocalizationSample + v4.8 + 512 + true + true + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + WPFUserControl.xaml + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + Designer + MSBuild:Compile + + + + + {3a4f9d5f-fa2b-41d7-aeac-339ff4a540c6} + LocalizationClassLibrary + + + + \ No newline at end of file diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/HostedLocalizationSample.sln b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/HostedLocalizationSample.sln new file mode 100644 index 0000000..ad58935 --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/HostedLocalizationSample.sln @@ -0,0 +1,28 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35707.178 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LocalizationClassLibrary", "..\LocalizationClassLibrary\LocalizationClassLibrary.csproj", "{3A4F9D5F-FA2B-41D7-AEAC-339FF4A540C6}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HostedLocalizationSample", "HostedLocalizationSample.csproj", "{EE530E7C-768A-4D2B-9CAB-45D6883C5E88}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3A4F9D5F-FA2B-41D7-AEAC-339FF4A540C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3A4F9D5F-FA2B-41D7-AEAC-339FF4A540C6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3A4F9D5F-FA2B-41D7-AEAC-339FF4A540C6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3A4F9D5F-FA2B-41D7-AEAC-339FF4A540C6}.Release|Any CPU.Build.0 = Release|Any CPU + {EE530E7C-768A-4D2B-9CAB-45D6883C5E88}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EE530E7C-768A-4D2B-9CAB-45D6883C5E88}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EE530E7C-768A-4D2B-9CAB-45D6883C5E88}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EE530E7C-768A-4D2B-9CAB-45D6883C5E88}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/HostedLocalizationSample_NET.csproj b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/HostedLocalizationSample_NET.csproj new file mode 100644 index 0000000..ef8e65d --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/HostedLocalizationSample_NET.csproj @@ -0,0 +1,20 @@ + + + + WinExe + net8.0-windows + enable + true + true + enable + + + + + + + + + + + \ No newline at end of file diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/HostedLocalizationSample_NET.csproj.user b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/HostedLocalizationSample_NET.csproj.user new file mode 100644 index 0000000..562025a --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/HostedLocalizationSample_NET.csproj.user @@ -0,0 +1,9 @@ + + + + + + Form + + + \ No newline at end of file diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/HostedLocalizationSample_NET.sln b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/HostedLocalizationSample_NET.sln new file mode 100644 index 0000000..1dc2d18 --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/HostedLocalizationSample_NET.sln @@ -0,0 +1,28 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35707.178 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HostedLocalizationSample_NET", "HostedLocalizationSample_NET.csproj", "{3DA71362-018F-4277-B90A-288E1A370CBD}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LocalizationClassLibrary", "..\LocalizationClassLibrary\LocalizationClassLibrary.csproj", "{3A4F9D5F-FA2B-41D7-AEAC-339FF4A540C6}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3DA71362-018F-4277-B90A-288E1A370CBD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3DA71362-018F-4277-B90A-288E1A370CBD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3DA71362-018F-4277-B90A-288E1A370CBD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3DA71362-018F-4277-B90A-288E1A370CBD}.Release|Any CPU.Build.0 = Release|Any CPU + {3A4F9D5F-FA2B-41D7-AEAC-339FF4A540C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3A4F9D5F-FA2B-41D7-AEAC-339FF4A540C6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3A4F9D5F-FA2B-41D7-AEAC-339FF4A540C6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3A4F9D5F-FA2B-41D7-AEAC-339FF4A540C6}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Program.cs b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Program.cs new file mode 100644 index 0000000..400e585 --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace HostedLocalizationSample +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Properties/AssemblyInfo.cs b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..1b5a251 --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Properties/AssemblyInfo.cs @@ -0,0 +1,27 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyDescription("")] +[assembly: AssemblyCopyright("Copyright © 2025")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("ee530e7c-768a-4d2b-9cab-45d6883c5e88")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Properties/Resources.Designer.cs b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Properties/Resources.Designer.cs new file mode 100644 index 0000000..15bafce --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace HostedLocalizationSample.Properties { + 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", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("HostedLocalizationSample.Properties.Resources", typeof(Resources).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)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Properties/Resources.resx b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + 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 + + \ No newline at end of file diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Properties/Settings.Designer.cs b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Properties/Settings.Designer.cs new file mode 100644 index 0000000..3498556 --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace HostedLocalizationSample.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.12.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Properties/Settings.settings b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/WPFUserControl.xaml b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/WPFUserControl.xaml new file mode 100644 index 0000000..2b5f194 --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/WPFUserControl.xaml @@ -0,0 +1,13 @@ + + + + + diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/WPFUserControl.xaml.cs b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/WPFUserControl.xaml.cs new file mode 100644 index 0000000..b11bbdb --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/WPFUserControl.xaml.cs @@ -0,0 +1,49 @@ +using Syncfusion.Windows.PdfViewer; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; +using UserControl = System.Windows.Controls.UserControl; + +namespace HostedLocalizationSample +{ + /// + /// Interaction logic for WPFUserControl.xaml + /// + public partial class WPFUserControl : UserControl + { + string path; + public WPFUserControl() + { + InitializeComponent(); + //set the current culture to the en + Thread.CurrentThread.CurrentUICulture = new CultureInfo("en"); + //Set the custom class library assmebly and and namespace for the localization + LocalizationManager.SetResources( + typeof(LocalizationClassLibrary.Class1).Assembly, + "LocalizationClassLibrary" + ); +#if NETCOREAPP + path = "../../../Data/F#.pdf"; +#else + path = "../../Data/F#.pdf"; +#endif + //Load the pdf + pdfViewer.Load(path); + + } + } +} diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/packages.config b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/packages.config new file mode 100644 index 0000000..d6e73f2 --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/HostedLocalizationSample/packages.config @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/LocalizationClassLibrary/Class1.cs b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/LocalizationClassLibrary/Class1.cs new file mode 100644 index 0000000..fe33254 --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/LocalizationClassLibrary/Class1.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace LocalizationClassLibrary +{ + public class Class1 + { + } +} diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/LocalizationClassLibrary/LocalizationClassLibrary.csproj b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/LocalizationClassLibrary/LocalizationClassLibrary.csproj new file mode 100644 index 0000000..58ecf44 --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/LocalizationClassLibrary/LocalizationClassLibrary.csproj @@ -0,0 +1,57 @@ + + + + + Debug + AnyCPU + {3A4F9D5F-FA2B-41D7-AEAC-339FF4A540C6} + Library + Properties + LocalizationClassLibrary + LocalizationClassLibrary + v4.8 + 512 + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + Designer + + + Designer + + + + \ No newline at end of file diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/LocalizationClassLibrary/Properties/AssemblyInfo.cs b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/LocalizationClassLibrary/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..073aae6 --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/LocalizationClassLibrary/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("LocalizationClassLibrary")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("LocalizationClassLibrary")] +[assembly: AssemblyCopyright("Copyright © 2025")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("3a4f9d5f-fa2b-41d7-aeac-339ff4a540c6")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/LocalizationClassLibrary/Resources/Syncfusion.PdfViewer.WPF.en.resx b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/LocalizationClassLibrary/Resources/Syncfusion.PdfViewer.WPF.en.resx new file mode 100644 index 0000000..748659c --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/LocalizationClassLibrary/Resources/Syncfusion.PdfViewer.WPF.en.resx @@ -0,0 +1,738 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Click to add a layer. + + + Add signature + + + Click to add stamp + + + Add sticky note + + + Show Annotations + + + Appearance + + + Apply + + + Apply + + + Click to permanently remove marked content. + + + Arrow + + + Author + + + Background color + + + This bookmark destination doesn't exist + + + Bookmarks + + + Border color + + + Border Style + + + Border thickness + + + Add Stamp + + + Butt + + + Cancel + + + Clear + + + Click to close annotations toolbar. + + + Click to close the bookmark pane + + + Closed + + + Click to close the text properties + + + Close form options + + + Click to close the layer pane + + + Click to close organize pages pane. + + + Close redact + + + Close Search Bar + + + Click to close the thumbnail pane + + + Cloud + + + Color + + + Color picker + + + Comment + + + Do you want to save changes before closing? + + + Copy + + + Rotate counterclockwise + + + Create signature + + + Current page index + + + Custom Stamps + + + Custom text + + + Click to decrease the magnification of the entire page. + + + Delete + + + Click to delete a layer + + + Are you sure you want to delete the pages from the document? + + + You cannot delete all pages. At least one page should remain + + + Delete pages + + + Diamond + + + This document is protected. Please enter a document open password. + + + Circle + + + Drawing Tools + + + Draw free form + + + Line + + + Polygon + + + Polyline + + + Rectangle + + + Text Callout + + + Enable multiple page selection + + + End + + + Enlarge page thumbnails + + + Enter password + + + Error + + + Essential Pdf Viewer 123 + + + Export data from a Form file + + + This file is already opened. Please close it before saving + + + Click to open, save and print a PDF Document + + + File + + + Fill color + + + Fill opacity + + + Fit to Page + + + Fit to Width + + + Font color + + + Font + + + Font size + + + Form Data + + + Form Data + + + Export + + + Import + + + Form Name + + + Enter Form name + + + Free Text + + + Add text box + + + Free text properties + + + General + + + Click to go to first page in the document. + + + Click to go to last page in the document. + + + Click to go to next page in the document. + + + Click to go to previous page in the document. + + + Sign document by drawing a signature. + + + Handwritten signature properties + + + Help + + + Highlight + + + Highlight properties + + + Highlight text + + + Icon + + + Import data into a Form file + + + Invalid numeric value + + + Incorrect password + + + Click to increase the magnification of the entire page. + + + Information + + + Ink + + + Click to erase a part of the ink annotation (freehand drawings) + + + Ink properties + + + Insert Text + + + Password is invalid + + + Key + + + Layers + + + Line Ending + + + Line properties + + + Loading Pages + + + Locked + + + Set as default + + + Make Properties default + + + Mark for Redaction + + + Click to mark content for permanent removal. + + + Zoom Select Area + + + Match Case + + + Message + + + Modified + + + Click to view more actions + + + New Paragraph + + + Next + + + Reader has finished searching the document. No matches were found + + + Reader has finished searching the document. No more matches were found + + + None + + + Note + + + of + + + OK + + + Opacity + + + Open + + + Click to open a PDF Document + + + Open + + + Open Pop-up Note + + + Outline color + + + Oval + + + Oval properties + + + Overlay text + + + Total page count + + + There is no page numbered '{0}' in this document + + + Organize Pages + + + Click to pan around the document + + + Paragraph + + + Cancel + + + OK + + + Password + + + Polygonal Line + + + Polygon line properties + + + Polygon properties + + + Previous + + + Click to Print this PDF file or pages from it. + + + Print + + + Properties + + + Rectangle properties + + + Redacted area fill color + + + Are you sure you want to continue? + + + Redaction + + + Redaction mark appearance + + + Click to perform redaction. + + + Redaction tool properties + + + Click to view redaction tool properties. + + + You are about to permanently remove all content that has been marked for redaction. Once the document is saved, this operation cannot be undone + + + Reduce page thumbnails + + + Rename + + + Please open the document again and enter the correct password + + + Closed (Reverse) + + + Open (Reverse) + + + Rotate clockwise + + + Round + + + Click to save the document in the local disk + + + Save As + + + Click to save the document in the local disk + + + Save + + + Searching + + + Click to search text + + + Selection tool for text + + + Slash + + + Square + + + Squiggly + + + Squiggly Properties + + + Stamp + + + Stamp properties + + + Standard Business + + + Start + + + Sticky Note + + + Sticky note properties + + + Strikethrough properties + + + Strikethrough text + + + Strikethrough + + + Subject + + + Text callout properties + + + Text Markup Annotation + + + Text properties + + + Thickness + + + Page Thumbnails + + + Underline + + + Underline properties + + + Underline text + + + Use overlay text + + + The value must be between {0} and {1} + + + Click to view the bookmarks + + + Click to view the layers + + + Rotate, rearrange, or delete pages + + + Click to view the thumbnails + + + Warning + + + Current zoom level + + \ No newline at end of file diff --git a/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/LocalizationClassLibrary/Resources/Syncfusion.PdfViewer.WPF.resx b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/LocalizationClassLibrary/Resources/Syncfusion.PdfViewer.WPF.resx new file mode 100644 index 0000000..34addd0 --- /dev/null +++ b/How-to/Apply-localization-to-WPF-PdfViewer-hosted-in-Winforms/LocalizationClassLibrary/Resources/Syncfusion.PdfViewer.WPF.resx @@ -0,0 +1,738 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Color picker + + + Current page index + + + Click to decrease the magnification of the entire page. + + + Delete + + + Circle + + + Drawing Tools + + + Draw free form + + + Line + + + Rectangle + + + Fit to Page + + + Fit to Width + + + Click to go to first page in the document. + + + Click to go to last page in the document. + + + Click to go to next page in the document. + + + Click to go to previous page in the document. + + + Highlight text + + + Click to increase the magnification of the entire page. + + + Click to open a PDF Document + + + Click to open, save and print a PDF Document + + + File + + + Open + + + Save + + + Save As + + + Print + + + Open Pop-up Note + + + Total page count + + + Click to Print this PDF file or pages from it. + + + Properties + + + Click to save the document in the local disk + + + Click to save the document in the local disk + + + Click to search text + + + Strikethrough text + + + Underline text + + + Appearance + + + Author + + + Cancel + + + Color + + + Fill color + + + General + + + Highlight properties + + + Ink properties + + + Line properties + + + Set as default + + + Make Properties default + + + Match Case + + + Modified + + + OK + + + Opacity + + + Oval properties + + + Rectangle properties + + + Strikethrough properties + + + Subject + + + Thickness + + + Underline properties + + + Current zoom level + + + Close Search Bar + + + Copy + + + Essential Pdf Viewer + + + Next + + + Reader has finished searching the document. No matches were found + + + Reader has finished searching the document. No more matches were found + + + of + + + Previous + + + Searching + + + This document is protected. Please enter a document open password. + + + Enter password + + + Cancel + + + OK + + + Click to close the bookmark pane + + + Click to view the bookmarks + + + Click to view the layers + + + Bookmarks + + + Click to close the layer pane + + + Layers + + + Background color + + + Border color + + + Border thickness + + + Free text properties + + + Text properties + + + Click to close the thumbnail pane + + + Enlarge page thumbnails + + + Reduce page thumbnails + + + Page Thumbnails + + + Click to view the thumbnails + + + Click to close the text properties + + + Click to add a layer. + + + Click to delete a layer + + + Rename + + + Add text box + + + Click to close organize pages pane. + + + Delete pages + + + Organize Pages + + + Rotate clockwise + + + Rotate counterclockwise + + + Rotate, rearrange, or delete pages + + + Click to permanently remove marked content. + + + Click to perform redaction. + + + Click to mark content for permanent removal. + + + Click to view redaction tool properties. + + + Redaction tool properties + + + Custom text + + + Font color + + + Font + + + Font size + + + Overlay text + + + Redacted area fill color + + + Redaction mark appearance + + + Fill opacity + + + Outline color + + + Use overlay text + + + Add signature + + + Apply + + + Clear + + + Create signature + + + Sign document by drawing a signature. + + + Show Annotations + + + Click to close annotations toolbar. + + + Click to add stamp + + + Stamp properties + + + Standard Business + + + Export data from a Form file + + + Form Data + + + Form Data + + + Export + + + Import + + + Import data into a Form file + + + Apply + + + Mark for Redaction + + + Redaction + + + Handwritten signature properties + + + Close form options + + + Close redact + + + Click to pan around the document + + + Add sticky note + + + Sticky note properties + + + Icon + + + Comment + + + Help + + + Insert Text + + + Key + + + New Paragraph + + + Note + + + Paragraph + + + Arrow + + + End + + + Start + + + Border Style + + + Polygon + + + Cloud + + + Polygon properties + + + Polyline + + + Polygon line properties + + + Zoom Select Area + + + Click to view more actions + + + Selection tool for text + + + This bookmark destination doesn't exist + + + Do you want to save changes before closing? + + + Are you sure you want to delete the pages from the document? + + + You cannot delete all pages. At least one page should remain + + + This file is already opened. Please close it before saving + + + Invalid numeric value + + + Password is invalid + + + There is no page numbered '{0}' in this document + + + Are you sure you want to continue? + + + You are about to permanently remove all content that has been marked for redaction. Once the document is saved, this operation cannot be undone + + + Please open the document again and enter the correct password + + + The value must be between {0} and {1} + + + Error + + + Incorrect password + + + Information + + + Loading Pages + + + Message + + + Warning + + + Enable multiple page selection + + + Custom Stamps + + + Add Stamp + + + Click to erase a part of the ink annotation (freehand drawings) + + + Butt + + + Closed + + + Diamond + + + None + + + Open + + + Closed (Reverse) + + + Open (Reverse) + + + Round + + + Slash + + + Square + + + Free Text + + + Text callout properties + + + Line Ending + + + Text Callout + + + Highlight + + + Ink + + + Oval + + + Polygonal Line + + + Stamp + + + Sticky Note + + + Strikethrough + + + Underline + + + Locked + + + Form Name + + + Enter Form name + + + Password + + + Squiggly + + + Squiggly Properties + + + Text Markup Annotation + + \ No newline at end of file