mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-05-02 02:13:27 +08:00
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:
@@ -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 &Startup</Icon_RunAtStartup>
|
||||
<Icon_ToolTip>QuickLook v{0}</Icon_ToolTip>
|
||||
<Icon_CheckUpdate>Check for &Updates...</Icon_CheckUpdate>
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user