Removing isRTL from po files, using CultureInfo value instead

--HG--
branch : 1.4.x
This commit is contained in:
Sebastien Ros
2012-05-09 13:49:21 -07:00
parent 7972fe9358
commit df1f3b6071
2 changed files with 1 additions and 19 deletions

View File

@@ -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;

View File

@@ -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
};