mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-12 18:39:45 +00:00
Add option IsSupportRTL
to control the RTL #1612
This commit is contained in:
@@ -208,9 +208,15 @@ public partial class TextViewerPanel : TextEditor, IDisposable
|
|||||||
|
|
||||||
if (extension.Equals(".txt", StringComparison.OrdinalIgnoreCase))
|
if (extension.Equals(".txt", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
FlowDirection = CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft
|
if (CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft)
|
||||||
? System.Windows.FlowDirection.RightToLeft
|
{
|
||||||
: System.Windows.FlowDirection.LeftToRight;
|
string isSupportRTL = TranslationHelper.Get("IsSupportRTL",
|
||||||
|
failsafe: bool.TrueString,
|
||||||
|
domain: Assembly.GetExecutingAssembly().GetName().Name);
|
||||||
|
|
||||||
|
if (bool.TrueString.Equals(isSupportRTL, StringComparison.OrdinalIgnoreCase))
|
||||||
|
FlowDirection = System.Windows.FlowDirection.RightToLeft;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
context.IsBusy = false;
|
context.IsBusy = false;
|
||||||
|
Reference in New Issue
Block a user