Skip to content

Commit

Permalink
Toast to show can't cancel "Prevent Closing" #1368
Browse files Browse the repository at this point in the history
  • Loading branch information
emako committed Dec 31, 2024
1 parent 190ab5f commit e4e0fe3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
17 changes: 17 additions & 0 deletions QuickLook/Translations.config
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
<InfoPanel_File>{0} file</InfoPanel_File>
<InfoPanel_Files>{0} files</InfoPanel_Files>
<InfoPanel_FolderAndFile>({0} and {1})</InfoPanel_FolderAndFile>
<InfoPanel_CantPreventClosing>Cancellation of "Prevent Closing" is not supported</InfoPanel_CantPreventClosing>
</en>
<es>
<UI_FontFamily>Segoe UI</UI_FontFamily>
Expand Down Expand Up @@ -318,9 +319,14 @@
<APP_START>QuickLook はバックグラウンドで動作しています</APP_START>
<APP_SECOND>QuickLook はすでにバックグラウンドで動作しています</APP_SECOND>
<MW_BrowseFolder>{0} をブラウズ</MW_BrowseFolder>
<MW_StayTop>常に最前面に表示</MW_StayTop>
<MW_PreventClosing>閉じるのを防ぐ</MW_PreventClosing>
<MW_BrowseFolder>{0} を閲覧</MW_BrowseFolder>
<MW_Open>{0} を開く</MW_Open>
<MW_OpenWith>{0} で開く</MW_OpenWith>
<MW_OpenWithMenu>メニューから選択して開く</MW_OpenWithMenu>
<MW_Run>{0} を起動</MW_Run>
<MW_Share>シェア</MW_Share>
<Icon_RunAtStartup>スタートアップ時に起動</Icon_RunAtStartup>
<Icon_ToolTip>QuickLook v{0}</Icon_ToolTip>
<Icon_CheckUpdate>更新を確認する... (&amp;U)</Icon_CheckUpdate>
Expand All @@ -338,6 +344,7 @@
<InfoPanel_File>{0} ファイル</InfoPanel_File>
<InfoPanel_Files>{0} ファイル</InfoPanel_Files>
<InfoPanel_FolderAndFile>({0}と {1})</InfoPanel_FolderAndFile>
<InfoPanel_CantPreventClosing>「閉じるのを防ぐ」はキャンセル不可</InfoPanel_CantPreventClosing>
</ja>
<nb-NO>
<UI_FontFamily>Segoe UI</UI_FontFamily>
Expand Down Expand Up @@ -595,10 +602,14 @@
<APP_SECOND>另一个 QuickLook 进程正在运行</APP_SECOND>
<APP_SECOND_TEXT>在您选中文件并按下空格键时,QuickLook 将提供多种格式的快速预览。</APP_SECOND_TEXT>
<APP_PATH_NOT_WRITABLE>数据目录 "{0}" 不可写。请检查您是否有足够的权限。</APP_PATH_NOT_WRITABLE>
<MW_StayTop>保持最前</MW_StayTop>
<MW_PreventClosing>阻止关闭</MW_PreventClosing>
<MW_BrowseFolder>浏览 {0}</MW_BrowseFolder>
<MW_Open>打开 {0}</MW_Open>
<MW_OpenWith>用 {0} 打开</MW_OpenWith>
<MW_OpenWithMenu>从菜单选择打开</MW_OpenWithMenu>
<MW_Run>运行 {0}</MW_Run>
<MW_Share>分享</MW_Share>
<Icon_RunAtStartup>启动时自动运行 (&amp;S)</Icon_RunAtStartup>
<Icon_ToolTip>QuickLook v{0}</Icon_ToolTip>
<Icon_CheckUpdate>检查更新... (&amp;U)</Icon_CheckUpdate>
Expand All @@ -616,17 +627,22 @@
<InfoPanel_File>{0} 个文件</InfoPanel_File>
<InfoPanel_Files>{0} 个文件</InfoPanel_Files>
<InfoPanel_FolderAndFile>(含 {0}和 {1})</InfoPanel_FolderAndFile>
<InfoPanel_CantPreventClosing>不可取消“阻止关闭”哟</InfoPanel_CantPreventClosing>
</zh-CN>
<zh-TW>
<UI_FontFamily>Segoe UI,Microsoft JhengHei UI,Microsoft JhengHei,MingLiU</UI_FontFamily>
<APP_START>QuickLook 正在背景執行</APP_START>
<APP_SECOND>另一個 QuickLook 處理程序正在執行。</APP_SECOND>
<APP_SECOND_TEXT>在資料夾中選取任意檔案並按下空白鍵,QuickLook 即可提供多種檔案格式的快速預覽。</APP_SECOND_TEXT>
<APP_PATH_NOT_WRITABLE>數據目錄 "{0}" 不可寫。請檢查您是否有足夠的權限。</APP_PATH_NOT_WRITABLE>
<MW_StayTop>保持最前</MW_StayTop>
<MW_PreventClosing>阻止關閉</MW_PreventClosing>
<MW_BrowseFolder>瀏覽 {0}</MW_BrowseFolder>
<MW_Open>開啟 {0}</MW_Open>
<MW_OpenWith>使用 {0} 開啟</MW_OpenWith>
<MW_OpenWithMenu>從選單選擇開啟</MW_OpenWithMenu>
<MW_Run>執行 {0}</MW_Run>
<MW_Share>分享</MW_Share>
<Icon_RunAtStartup>系統啟動時自動執行 (&amp;S)</Icon_RunAtStartup>
<Icon_ToolTip>QuickLook v{0}</Icon_ToolTip>
<Icon_CheckUpdate>檢查更新... (&amp;U)</Icon_CheckUpdate>
Expand All @@ -644,6 +660,7 @@
<InfoPanel_File>{0} 個檔案</InfoPanel_File>
<InfoPanel_Files>{0} 個檔案</InfoPanel_Files>
<InfoPanel_FolderAndFile>(包含 {0}和 {1})</InfoPanel_FolderAndFile>
<InfoPanel_CantPreventClosing>不可取消“阻止關閉”喲</InfoPanel_CantPreventClosing>
</zh-TW>
<mr>
<UI_FontFamily>Segoe UI</UI_FontFamily>
Expand Down
3 changes: 1 addition & 2 deletions QuickLook/ViewerWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ internal ViewerWindow()
{
if (Pinned)
{
TranslationHelper.Get("Icon_Quit");
Toast.Information("Cancellation of Prevent Closing is not supported");
Toast.Information(TranslationHelper.Get("InfoPanel_CantPreventClosing"));
return;
}

Expand Down

0 comments on commit e4e0fe3

Please sign in to comment.