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 <xupaddy@gmail.com>
This commit is contained in:
Alexander Eder
2023-03-25 13:30:17 +01:00
committed by GitHub
parent f090a96aad
commit 431165f3d8
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -181,10 +181,14 @@
<APP_SECOND>QuickLook is already running</APP_SECOND>
<APP_SECOND_TEXT>QuickLook enables quick previewing of certain type of files by pressing the spacebar while it is highlighted.</APP_SECOND_TEXT>
<APP_PATH_NOT_WRITABLE>Data path "{0}" is not writable. Please check if you have sufficient permission.</APP_PATH_NOT_WRITABLE>
<MW_StayTop>Stay on Top</MW_StayTop>
<MW_PreventClosing>Prevent Closing</MW_PreventClosing>
<MW_BrowseFolder>Browse {0}</MW_BrowseFolder>
<MW_Open>Open {0}</MW_Open>
<MW_OpenWith>Open with {0}</MW_OpenWith>
<MW_OpenWithMenu>Open With Menu</MW_OpenWithMenu>
<MW_Run>Run {0}</MW_Run>
<MW_Share>Share</MW_Share>
<Icon_RunAtStartup>Run at &amp;Startup</Icon_RunAtStartup>
<Icon_ToolTip>QuickLook v{0}</Icon_ToolTip>
<Icon_CheckUpdate>Check for &amp;Updates...</Icon_CheckUpdate>
+6
View File
@@ -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()