* Added FormatProvider to Culture
parent
23eeeaae03
commit
e7869d0666
|
@ -8,16 +8,24 @@ namespace OpenSim.Framework
|
|||
{
|
||||
public class Culture
|
||||
{
|
||||
private static readonly CultureInfo m_cultureInfo = new System.Globalization.CultureInfo("en-US", true);
|
||||
|
||||
public static NumberFormatInfo NumberFormatInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_cultureInfo.NumberFormat;
|
||||
}
|
||||
}
|
||||
|
||||
private static readonly CultureInfo m_cultureInfo = new System.Globalization.CultureInfo("en-US", true);
|
||||
|
||||
public static NumberFormatInfo NumberFormatInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_cultureInfo.NumberFormat;
|
||||
}
|
||||
}
|
||||
|
||||
public static IFormatProvider FormatProvider
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_cultureInfo;
|
||||
}
|
||||
}
|
||||
|
||||
public static void SetCurrentCulture()
|
||||
{
|
||||
Thread.CurrentThread.CurrentCulture = m_cultureInfo;
|
||||
|
|
Loading…
Reference in New Issue