mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-12 18:39:45 +00:00
Show deb architecture
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="* " />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Grid.Row="1"
|
||||
@@ -102,15 +103,31 @@
|
||||
Text="Searching..."
|
||||
TextTrimming="CharacterEllipsis"
|
||||
TextWrapping="Wrap" />
|
||||
<!-- Architecture -->
|
||||
<TextBlock x:Name="architectureTitle"
|
||||
Grid.Row="5"
|
||||
Grid.Column="1"
|
||||
Padding="3"
|
||||
Foreground="{DynamicResource WindowTextForegroundAlternative}"
|
||||
Text="Architecture" />
|
||||
<TextBlock x:Name="architecture"
|
||||
Grid.Row="5"
|
||||
Grid.Column="2"
|
||||
Margin="8,0,0,0"
|
||||
Padding="3"
|
||||
Foreground="{DynamicResource WindowTextForegroundAlternative}"
|
||||
Text="Searching..."
|
||||
TextTrimming="CharacterEllipsis"
|
||||
TextWrapping="Wrap" />
|
||||
<!-- Maintainer -->
|
||||
<TextBlock x:Name="maintainerTitle"
|
||||
Grid.Row="5"
|
||||
Grid.Row="6"
|
||||
Grid.Column="1"
|
||||
Padding="3"
|
||||
Foreground="{DynamicResource WindowTextForegroundAlternative}"
|
||||
Text="Maintainer" />
|
||||
<TextBlock x:Name="maintainer"
|
||||
Grid.Row="5"
|
||||
Grid.Row="6"
|
||||
Grid.Column="2"
|
||||
Margin="8,0,0,0"
|
||||
Padding="3"
|
||||
@@ -120,13 +137,13 @@
|
||||
TextWrapping="Wrap" />
|
||||
<!-- Total Size -->
|
||||
<TextBlock x:Name="totalSizeTitle"
|
||||
Grid.Row="6"
|
||||
Grid.Row="7"
|
||||
Grid.Column="1"
|
||||
Padding="3"
|
||||
Foreground="{DynamicResource WindowTextForegroundAlternative}"
|
||||
Text="Total Size" />
|
||||
<TextBlock x:Name="totalSize"
|
||||
Grid.Row="6"
|
||||
Grid.Row="7"
|
||||
Grid.Column="2"
|
||||
Margin="8,0,0,0"
|
||||
Padding="3"
|
||||
@@ -134,13 +151,13 @@
|
||||
Text="Calculating size..." />
|
||||
<!-- Last Modified -->
|
||||
<TextBlock x:Name="modDateTitle"
|
||||
Grid.Row="7"
|
||||
Grid.Row="8"
|
||||
Grid.Column="1"
|
||||
Padding="3"
|
||||
Foreground="{DynamicResource WindowTextForegroundAlternative}"
|
||||
Text="Last Modified" />
|
||||
<TextBlock x:Name="modDate"
|
||||
Grid.Row="7"
|
||||
Grid.Row="8"
|
||||
Grid.Column="2"
|
||||
Margin="8,0,0,0"
|
||||
Padding="3"
|
||||
@@ -149,7 +166,7 @@
|
||||
TextTrimming="CharacterEllipsis" />
|
||||
<!-- Description -->
|
||||
<GroupBox x:Name="descriptionGroupBox"
|
||||
Grid.Row="8"
|
||||
Grid.Row="9"
|
||||
Grid.Column="1"
|
||||
Grid.ColumnSpan="2"
|
||||
Margin="3,3,16,16"
|
||||
|
@@ -19,7 +19,6 @@ using QuickLook.Common.ExtensionMethods;
|
||||
using QuickLook.Common.Helpers;
|
||||
using QuickLook.Common.Plugin;
|
||||
using QuickLook.Plugin.AppViewer.PackageParsers.Deb;
|
||||
using QuickLook.Plugin.AppViewer.PackageParsers.Wgt;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
@@ -42,6 +41,7 @@ public partial class DebInfoPanel : UserControl, IAppInfoPanel
|
||||
string translationFile = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Translations.config");
|
||||
packageNameTitle.Text = TranslationHelper.Get("PACKAGE_NAME", translationFile);
|
||||
versionNameTitle.Text = TranslationHelper.Get("APP_VERSION_NAME", translationFile);
|
||||
architectureTitle.Text = TranslationHelper.Get("ARCHITECTURE", translationFile);
|
||||
maintainerTitle.Text = TranslationHelper.Get("MAINTAINER", translationFile);
|
||||
totalSizeTitle.Text = TranslationHelper.Get("TOTAL_SIZE", translationFile);
|
||||
modDateTitle.Text = TranslationHelper.Get("LAST_MODIFIED", translationFile);
|
||||
@@ -65,6 +65,7 @@ public partial class DebInfoPanel : UserControl, IAppInfoPanel
|
||||
{
|
||||
packageName.Text = debInfo.Package;
|
||||
versionName.Text = debInfo.Version;
|
||||
architecture.Text = debInfo.Architecture;
|
||||
maintainer.Text = debInfo.Maintainer;
|
||||
totalSize.Text = size.ToPrettySize(2);
|
||||
modDate.Text = last.ToString(CultureInfo.CurrentCulture);
|
||||
|
@@ -24,6 +24,7 @@
|
||||
<APP_MIN_API_VERSION>Minimum API Version</APP_MIN_API_VERSION>
|
||||
<APP_TARGET_API_VERSION>Target API Version</APP_TARGET_API_VERSION>
|
||||
<COMPILE_SDK_VERSION>Compile SDK Version</COMPILE_SDK_VERSION>
|
||||
<ARCHITECTURE>Architecture</ARCHITECTURE>
|
||||
<MAINTAINER>Maintainer</MAINTAINER>
|
||||
<DESCRIPTION>Description</DESCRIPTION>
|
||||
</en>
|
||||
@@ -50,6 +51,7 @@
|
||||
<APP_MIN_API_VERSION>Versão mínima do API</APP_MIN_API_VERSION>
|
||||
<APP_TARGET_API_VERSION>Versão mínima do API</APP_TARGET_API_VERSION>
|
||||
<COMPILE_SDK_VERSION>Versão do SDK de compilação</COMPILE_SDK_VERSION>
|
||||
<ARCHITECTURE>Arquitetura</ARCHITECTURE>
|
||||
<MAINTAINER>Mantenedor</MAINTAINER>
|
||||
<DESCRIPTION>Descrição</DESCRIPTION>
|
||||
</pt-BR>
|
||||
@@ -76,6 +78,7 @@
|
||||
<APP_MIN_API_VERSION>最低支持 API 版本</APP_MIN_API_VERSION>
|
||||
<APP_TARGET_API_VERSION>目标 API 版本</APP_TARGET_API_VERSION>
|
||||
<COMPILE_SDK_VERSION>编译 SDK 版本</COMPILE_SDK_VERSION>
|
||||
<ARCHITECTURE>架构</ARCHITECTURE>
|
||||
<MAINTAINER>维护者</MAINTAINER>
|
||||
<DESCRIPTION>描述</DESCRIPTION>
|
||||
</zh-CN>
|
||||
@@ -102,6 +105,7 @@
|
||||
<APP_MIN_API_VERSION>最低支援 API 版本</APP_MIN_API_VERSION>
|
||||
<APP_TARGET_API_VERSION>目標 API 版本</APP_TARGET_API_VERSION>
|
||||
<COMPILE_SDK_VERSION>編譯 SDK 版本</COMPILE_SDK_VERSION>
|
||||
<ARCHITECTURE>架構</ARCHITECTURE>
|
||||
<MAINTAINER>維護者</MAINTAINER>
|
||||
<DESCRIPTION>描述</DESCRIPTION>
|
||||
</zh-TW>
|
||||
@@ -128,6 +132,7 @@
|
||||
<APP_MIN_API_VERSION>最小APIバージョン</APP_MIN_API_VERSION>
|
||||
<APP_TARGET_API_VERSION>ターゲットAPIバージョン</APP_TARGET_API_VERSION>
|
||||
<COMPILE_SDK_VERSION>コンパイルSDKバージョン</COMPILE_SDK_VERSION>
|
||||
<ARCHITECTURE>アーキテクチャ</ARCHITECTURE>
|
||||
<MAINTAINER>メンテナー</MAINTAINER>
|
||||
<DESCRIPTION>説明</DESCRIPTION>
|
||||
</ja>
|
||||
|
Reference in New Issue
Block a user