From e7869d06665054b2f3ac7b75836098520f4c40d2 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Thu, 11 Oct 2007 10:33:23 +0000 Subject: * Added FormatProvider to Culture --- OpenSim/Framework/General/Culture.cs | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'OpenSim/Framework/General/Culture.cs') diff --git a/OpenSim/Framework/General/Culture.cs b/OpenSim/Framework/General/Culture.cs index 9e1c846..4d175f7 100644 --- a/OpenSim/Framework/General/Culture.cs +++ b/OpenSim/Framework/General/Culture.cs @@ -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; -- cgit v1.1