diff --git a/QuickLook.Plugin/QuickLook.Plugin.AppViewer/Translations.config b/QuickLook.Plugin/QuickLook.Plugin.AppViewer/Translations.config index afb57ce..cbd7be4 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.AppViewer/Translations.config +++ b/QuickLook.Plugin/QuickLook.Plugin.AppViewer/Translations.config @@ -1,39 +1,39 @@ - - Product Version - Product Name - Manufacturer - Total Size - Last Modified - - - Versão do produto - Nome do produto - Fabricante - Tamanho total - Modificado em - - - 产品版本 - 产品名称 - 制造商 - 总大小 - 修改时间 - - - 產品版本 - 產品名稱 - 製造商 - 縂大小 - 修改時間 - - - 製品バージョン - 製品名 - 製造元 - 合計サイズ - 更新日時 - + + Product Version + Product Name + Manufacturer + Total Size + Last Modified + + + Versão do produto + Nome do produto + Fabricante + Tamanho total + Modificado em + + + 产品版本 + 产品名称 + 制造商 + 总大小 + 修改时间 + + + 產品版本 + 產品名稱 + 製造商 + 縂大小 + 修改時間 + + + 製品バージョン + 製品名 + 製造元 + 合計サイズ + 更新日時 + diff --git a/QuickLook.Plugin/QuickLook.Plugin.FontViewer/Plugin.cs b/QuickLook.Plugin/QuickLook.Plugin.FontViewer/Plugin.cs index 4304b72..4be000c 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.FontViewer/Plugin.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.FontViewer/Plugin.cs @@ -132,9 +132,14 @@ public class Plugin : IViewer } } + // https://en.wikipedia.org/wiki/Pangram + string translationFile = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Translations.config"); + string pangram = TranslationHelper.Get("SAMPLE_TEXT", translationFile); + html = html.Replace("--font-family;", $"font-family: '{fontFamilyName}';") .Replace("--font-url;", cssUrl) - .Replace("{{h1}}", fontFamilyName ?? fileName); + .Replace("{{h1}}", fontFamilyName ?? fileName) + .Replace("{{pangram}}", pangram ?? "The quick brown fox jumps over the lazy dog. 0123456789"); return html; } diff --git a/QuickLook.Plugin/QuickLook.Plugin.FontViewer/Resources/font2html.html b/QuickLook.Plugin/QuickLook.Plugin.FontViewer/Resources/font2html.html index d8149d8..d56444c 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.FontViewer/Resources/font2html.html +++ b/QuickLook.Plugin/QuickLook.Plugin.FontViewer/Resources/font2html.html @@ -149,17 +149,17 @@ abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789.:,;()*!?'@#<>$%&^+-=~

-

The quick brown fox jumps over the lazy dog. 0123456789

-

The quick brown fox jumps over the lazy dog. 0123456789

-

The quick brown fox jumps over the lazy dog. 0123456789

-

The quick brown fox jumps over the lazy dog. 0123456789

-

The quick brown fox jumps over the lazy dog. 0123456789

-

The quick brown fox jumps over the lazy dog. 0123456789

-

The quick brown fox jumps over the lazy dog. 0123456789

-

The quick brown fox jumps over the lazy dog. 0123456789

-

The quick brown fox jumps over the lazy dog. 0123456789

-

The quick brown fox jumps over the lazy dog. 0123456789

-

The quick brown fox jumps over the lazy dog. 0123456789

+

{{pangram}}

+

{{pangram}}

+

{{pangram}}

+

{{pangram}}

+

{{pangram}}

+

{{pangram}}

+

{{pangram}}

+

{{pangram}}

+

{{pangram}}

+

{{pangram}}

+

{{pangram}}

diff --git a/QuickLook.Plugin/QuickLook.Plugin.FontViewer/Translations.config b/QuickLook.Plugin/QuickLook.Plugin.FontViewer/Translations.config index c4cbbd9..3c53745 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.FontViewer/Translations.config +++ b/QuickLook.Plugin/QuickLook.Plugin.FontViewer/Translations.config @@ -1,7 +1,13 @@  - - The quick brown fox jumped over the lazy dog. 1234567890 - + + The quick brown fox jumped over the lazy dog. 1234567890 + + + Innovation in China 中国智造,惠及全球 0123456789 + + + Innovation in China 中國智造,惠及全球 0123456789 +