fix translations and settings

This commit is contained in:
Paddy Xu
2018-01-27 16:33:06 +02:00
parent 56af2311b9
commit 57f129bda3
3 changed files with 5 additions and 33 deletions

View File

@@ -22,6 +22,7 @@ using System.Windows.Input;
using System.Windows.Media;
using ICSharpCode.AvalonEdit.Highlighting;
using QuickLook.Common;
using QuickLook.Common.Helpers;
using UtfUnknown;
namespace QuickLook.Plugin.TextViewer
@@ -41,8 +42,7 @@ namespace QuickLook.Plugin.TextViewer
viewer.PreviewMouseWheel += Viewer_MouseWheel;
viewer.FontFamily =
new FontFamily(context.GetString("Editor_FontFamily"));
viewer.FontFamily = new FontFamily(TranslationHelper.Get("Editor_FontFamily"));
LoadFile(path);
}