Added preliminary support for RTL cultures (patch by Masood Ramezani).
This commit is contained in:
parent
439549707a
commit
a078529eb3
39 changed files with 189 additions and 14 deletions
|
@ -235,6 +235,21 @@ namespace ScrewTurn.Wiki {
|
|||
else return "";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current culture.
|
||||
/// </summary>
|
||||
public static string CurrentCulture {
|
||||
get { return CultureInfo.CurrentUICulture.Name; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get the direction of the current culture.
|
||||
/// </summary>
|
||||
/// <returns><c>true</c> if the current culture is RTL, <c>false</c> otherwise.</returns>
|
||||
public static bool IsRightToLeftCulture() {
|
||||
return new CultureInfo(CurrentCulture).TextInfo.IsRightToLeft;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the Hash of a Username, mixing it with other data, in order to avoid illegal Account activations.
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue