mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Removing isRTL from po files, using CultureInfo value instead
--HG-- branch : 1.4.x
This commit is contained in:
@@ -19,11 +19,6 @@ namespace Orchard.Core.Shapes.Localization {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
int FirstDay { get; }
|
int FirstDay { get; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// True if right-to-left language, false if left-to-right
|
|
||||||
/// </summary>
|
|
||||||
bool IsRTL { get; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// True if the year select precedes month, false for month then year
|
/// True if the year select precedes month, false for month then year
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -88,19 +83,6 @@ namespace Orchard.Core.Shapes.Localization {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsRTL {
|
|
||||||
get {
|
|
||||||
var isRTL = false;
|
|
||||||
var t = T("isRTL: false").Text;
|
|
||||||
var parts = t.Split(':');
|
|
||||||
if (parts.Length == 2) {
|
|
||||||
Boolean.TryParse(parts[1], out isRTL);
|
|
||||||
}
|
|
||||||
|
|
||||||
return isRTL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool ShowMonthAfterYear {
|
public bool ShowMonthAfterYear {
|
||||||
get {
|
get {
|
||||||
var showMonthAfterYear = false;
|
var showMonthAfterYear = false;
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
weekHeader: '@T("Wk")', // Column header for week of the year
|
weekHeader: '@T("Wk")', // Column header for week of the year
|
||||||
dateFormat: '@dateFormat', // See format options on parseDate
|
dateFormat: '@dateFormat', // See format options on parseDate
|
||||||
firstDay: @dateTimeLocalization.FirstDay, // The first day of the week, Sun = 0, Mon = 1, ...
|
firstDay: @dateTimeLocalization.FirstDay, // The first day of the week, Sun = 0, Mon = 1, ...
|
||||||
isRTL: @(dateTimeLocalization.IsRTL ? "true" : "false"), // True if right-to-left language, false if left-to-right
|
isRTL: @(cultureInfo.TextInfo.IsRightToLeft ? "true" : "false"), // True if right-to-left language, false if left-to-right
|
||||||
showMonthAfterYear: @(dateTimeLocalization.ShowMonthAfterYear ? "true" : "false"), // True if the year select precedes month, false for month then year
|
showMonthAfterYear: @(dateTimeLocalization.ShowMonthAfterYear ? "true" : "false"), // True if the year select precedes month, false for month then year
|
||||||
yearSuffix: '@dateTimeLocalization.YearSuffix' // Additional text to append to the year in the month headers
|
yearSuffix: '@dateTimeLocalization.YearSuffix' // Additional text to append to the year in the month headers
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user