diff --git a/QuickLook.Common b/QuickLook.Common index 657a9d2..68a28d7 160000 --- a/QuickLook.Common +++ b/QuickLook.Common @@ -1 +1 @@ -Subproject commit 657a9d2a6edb36044f6775ce00aa27bdbc784396 +Subproject commit 68a28d7f23bcf9f90a522d608651c90cd332c80c diff --git a/QuickLook.Plugin/QuickLook.Plugin.HtmlViewer/WebpagePanel.cs b/QuickLook.Plugin/QuickLook.Plugin.HtmlViewer/WebpagePanel.cs index 67aa182..40dbeff 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.HtmlViewer/WebpagePanel.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.HtmlViewer/WebpagePanel.cs @@ -18,6 +18,7 @@ using System; using System.Diagnostics; using System.IO; +using System.Reflection; using System.Windows; using System.Windows.Controls; using Microsoft.Web.WebView2.Core; @@ -92,7 +93,8 @@ namespace QuickLook.Plugin.HtmlViewer { var button = new Button { - Content = TranslationHelper.Get("WEBVIEW2_NOT_AVAILABLE"), + Content = TranslationHelper.Get("WEBVIEW2_NOT_AVAILABLE", + domain: Assembly.GetExecutingAssembly().GetName().Name), HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center, Padding = new Thickness(20, 6, 20, 6) diff --git a/QuickLook.Plugin/QuickLook.Plugin.TextViewer/TextViewerPanel.cs b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/TextViewerPanel.cs index 94d9bb8..a7201a5 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.TextViewer/TextViewerPanel.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/TextViewerPanel.cs @@ -17,6 +17,7 @@ using System; using System.IO; +using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Windows.Controls; @@ -54,9 +55,16 @@ namespace QuickLook.Plugin.TextViewer ContextMenu = new ContextMenu(); ContextMenu.Items.Add(new MenuItem - {Header = TranslationHelper.Get("Editor_Copy"), Command = ApplicationCommands.Copy}); + { + Header = TranslationHelper.Get("Editor_Copy", domain: Assembly.GetExecutingAssembly().GetName().Name), + Command = ApplicationCommands.Copy + }); ContextMenu.Items.Add(new MenuItem - {Header = TranslationHelper.Get("Editor_SelectAll"), Command = ApplicationCommands.SelectAll}); + { + Header = TranslationHelper.Get("Editor_SelectAll", + domain: Assembly.GetExecutingAssembly().GetName().Name), + Command = ApplicationCommands.SelectAll + }); ManipulationInertiaStarting += Viewer_ManipulationInertiaStarting; ManipulationStarting += Viewer_ManipulationStarting;