mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +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>
|
||||
int FirstDay { get; }
|
||||
|
||||
/// <summary>
|
||||
/// True if right-to-left language, false if left-to-right
|
||||
/// </summary>
|
||||
bool IsRTL { get; }
|
||||
|
||||
/// <summary>
|
||||
/// True if the year select precedes month, false for month then year
|
||||
/// </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 {
|
||||
get {
|
||||
var showMonthAfterYear = false;
|
||||
|
@@ -50,7 +50,7 @@
|
||||
weekHeader: '@T("Wk")', // Column header for week of the year
|
||||
dateFormat: '@dateFormat', // See format options on parseDate
|
||||
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
|
||||
yearSuffix: '@dateTimeLocalization.YearSuffix' // Additional text to append to the year in the month headers
|
||||
};
|
||||
|
Reference in New Issue
Block a user