mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-02-28 01:00:17 +08:00
Fix #55: singular form for InfoPanel; add zh-TW translation
This commit is contained in:
@@ -99,21 +99,28 @@ namespace QuickLook.Plugin.InfoPanel
|
||||
Dispatcher.Invoke(() =>
|
||||
{
|
||||
string t;
|
||||
var d = totalDirsL != 0
|
||||
? string.Format(
|
||||
TranslationHelper.GetString("InfoPanel_Folders"), totalDirsL)
|
||||
: string.Empty;
|
||||
var f = totalFilesL != 0
|
||||
? string.Format(
|
||||
TranslationHelper.GetString("InfoPanel_Files"), totalFilesL)
|
||||
: string.Empty;
|
||||
if (!string.IsNullOrEmpty(d) && !string.IsNullOrEmpty(f))
|
||||
var folders = totalDirsL == 0
|
||||
? string.Empty
|
||||
: totalDirsL == 1
|
||||
? string.Format(
|
||||
TranslationHelper.GetString("InfoPanel_Folder"), totalDirsL)
|
||||
: string.Format(
|
||||
TranslationHelper.GetString("InfoPanel_Folders"), totalDirsL);
|
||||
var files = totalFilesL == 0
|
||||
? string.Empty
|
||||
: totalFilesL == 1
|
||||
? string.Format(
|
||||
TranslationHelper.GetString("InfoPanel_File"), totalFilesL)
|
||||
: string.Format(
|
||||
TranslationHelper.GetString("InfoPanel_Files"), totalFilesL);
|
||||
|
||||
if (!string.IsNullOrEmpty(folders) && !string.IsNullOrEmpty(files))
|
||||
t = string.Format(
|
||||
TranslationHelper.GetString("InfoPanel_FolderAndFile"), d, f);
|
||||
else if (string.IsNullOrEmpty(d) && string.IsNullOrEmpty(f))
|
||||
TranslationHelper.GetString("InfoPanel_FolderAndFile"), folders, files);
|
||||
else if (string.IsNullOrEmpty(folders) && string.IsNullOrEmpty(files))
|
||||
t = string.Empty;
|
||||
else
|
||||
t = $"({d}{f})";
|
||||
t = $"({folders}{files})";
|
||||
|
||||
totalSize.Text =
|
||||
$"{totalSizeL.ToPrettySize(2)} {t}";
|
||||
|
||||
@@ -18,7 +18,9 @@
|
||||
<Update_Error>Error occured when checking for updates: {0}</Update_Error>
|
||||
<InfoPanel_LastModified>Last modified at {0}</InfoPanel_LastModified>
|
||||
<InfoPanel_DriveSize>Capacity {0}, {1} available</InfoPanel_DriveSize>
|
||||
<InfoPanel_Folder>{0} folder</InfoPanel_Folder>
|
||||
<InfoPanel_Folders>{0} folders</InfoPanel_Folders>
|
||||
<InfoPanel_File>{0} file</InfoPanel_File>
|
||||
<InfoPanel_Files>{0} files</InfoPanel_Files>
|
||||
<InfoPanel_FolderAndFile>({0} and {1})</InfoPanel_FolderAndFile>
|
||||
</en>
|
||||
@@ -39,10 +41,35 @@
|
||||
<Update_Error>检查更新时发生错误:{0}</Update_Error>
|
||||
<InfoPanel_LastModified>最后修改于 {0}</InfoPanel_LastModified>
|
||||
<InfoPanel_DriveSize>总容量 {0},可用 {1}</InfoPanel_DriveSize>
|
||||
<InfoPanel_Folder>{0} 个目录</InfoPanel_Folder>
|
||||
<InfoPanel_Folders>{0} 个目录</InfoPanel_Folders>
|
||||
<InfoPanel_File>{0} 个文件</InfoPanel_File>
|
||||
<InfoPanel_Files>{0} 个文件</InfoPanel_Files>
|
||||
<InfoPanel_FolderAndFile>(含 {0}和 {1})</InfoPanel_FolderAndFile>
|
||||
</zh-CN>
|
||||
<zh-TW>
|
||||
<UI_FontFamily>Segoe UI,Microsoft JhengHei UI,Microsoft JhengHei,SimSun</UI_FontFamily>
|
||||
<APP_START>QuickLook 正在背景執行。</APP_START>
|
||||
<APP_SECOND>另一個 QuickLook 處理程序正在執行。</APP_SECOND>
|
||||
<MW_BrowseFolder>瀏覽 “{0}”</MW_BrowseFolder>
|
||||
<MW_Open>開啟 “{0}”</MW_Open>
|
||||
<MW_OpenWith>用 “{0}” 開啟</MW_OpenWith>
|
||||
<MW_Run>執行 “{0}”</MW_Run>
|
||||
<Icon_RunAtStartup>系統啟動時自動執行 (&S)</Icon_RunAtStartup>
|
||||
<Icon_ToolTip>QuickLook v{0}</Icon_ToolTip>
|
||||
<Icon_CheckUpdate>檢查更新... (&U)</Icon_CheckUpdate>
|
||||
<Icon_Quit>結束程式 (&Q)</Icon_Quit>
|
||||
<Update_NoUpdate>您已使用了最新版本。</Update_NoUpdate>
|
||||
<Update_Found>QuickLook {0} 已發佈。點選這裡開啟下載頁面。</Update_Found>
|
||||
<Update_Error>檢查更新時發生錯誤:{0}</Update_Error>
|
||||
<InfoPanel_LastModified>最後變更於 {0}</InfoPanel_LastModified>
|
||||
<InfoPanel_DriveSize>總容量 {0},可用 {1}</InfoPanel_DriveSize>
|
||||
<InfoPanel_Folder>{0} 個目錄</InfoPanel_Folder>
|
||||
<InfoPanel_Folders>{0} 個目錄</InfoPanel_Folders>
|
||||
<InfoPanel_File>{0} 個檔案</InfoPanel_File>
|
||||
<InfoPanel_Files>{0} 個檔案</InfoPanel_Files>
|
||||
<InfoPanel_FolderAndFile>(含 {0}和 {1})</InfoPanel_FolderAndFile>
|
||||
</zh-TW>
|
||||
<es-ES>
|
||||
<UI_FontFamily>Segoe UI</UI_FontFamily>
|
||||
<APP_START>QuickLook está funcionando en segundo plano.</APP_START>
|
||||
@@ -60,7 +87,9 @@
|
||||
<Update_Error>Ocurrió un error al buscar actualizaciones: {0}</Update_Error>
|
||||
<InfoPanel_LastModified>Última modificación a las {0}</InfoPanel_LastModified>
|
||||
<InfoPanel_DriveSize>Capacidad {0}, {1} disponible</InfoPanel_DriveSize>
|
||||
<InfoPanel_Folder>{0} carpeta</InfoPanel_Folder>
|
||||
<InfoPanel_Folders>{0} carpetas</InfoPanel_Folders>
|
||||
<InfoPanel_File>{0} archivo</InfoPanel_File>
|
||||
<InfoPanel_Files>{0} archivos</InfoPanel_Files>
|
||||
<InfoPanel_FolderAndFile>({0} y {1})</InfoPanel_FolderAndFile>
|
||||
</es-ES>
|
||||
|
||||
Reference in New Issue
Block a user