From 431165f3d86bd774a9207fc542f2feba18602a44 Mon Sep 17 00:00:00 2001 From: Alexander Eder Date: Sat, 25 Mar 2023 13:30:17 +0100 Subject: [PATCH] Add translation possibility for missing buttons (#1116) * Minor translation tweak * Add translation possibility for missing buttons pt1 * Add translation possibility for missing buttons pt2 * Update ViewerWindow.xaml.cs * Update ViewerWindow.Actions.cs * Update ViewerWindow.Actions.cs * Update ViewerWindow.Actions.cs * revert fmt change --------- Co-authored-by: Paddy Xu --- QuickLook/Translations.config | 4 ++++ QuickLook/ViewerWindow.xaml.cs | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/QuickLook/Translations.config b/QuickLook/Translations.config index 999ff04..8b53825 100644 --- a/QuickLook/Translations.config +++ b/QuickLook/Translations.config @@ -181,10 +181,14 @@ QuickLook is already running QuickLook enables quick previewing of certain type of files by pressing the spacebar while it is highlighted. Data path "{0}" is not writable. Please check if you have sufficient permission. + Stay on Top + Prevent Closing Browse {0} Open {0} Open with {0} + Open With Menu Run {0} + Share Run at &Startup QuickLook v{0} Check for &Updates... diff --git a/QuickLook/ViewerWindow.xaml.cs b/QuickLook/ViewerWindow.xaml.cs index 39d18a2..f921b54 100644 --- a/QuickLook/ViewerWindow.xaml.cs +++ b/QuickLook/ViewerWindow.xaml.cs @@ -96,6 +96,12 @@ namespace QuickLook buttonShare.Click += (sender, e) => ShareHelper.Share(_path, this); buttonOpenWith.Click += (sender, e) => ShareHelper.Share(_path, this, true); + + // Set UI translations + buttonTop.ToolTip = TranslationHelper.Get("MW_StayTop"); + buttonPin.ToolTip = TranslationHelper.Get("MW_PreventClosing"); + buttonOpenWith.ToolTip = TranslationHelper.Get("MW_OpenWithMenu"); + buttonShare.ToolTip = TranslationHelper.Get("MW_Share"); } public override void OnApplyTemplate()