diff options
author | lbsa71 | 2007-10-11 10:33:23 +0000 |
---|---|---|
committer | lbsa71 | 2007-10-11 10:33:23 +0000 |
commit | e7869d06665054b2f3ac7b75836098520f4c40d2 (patch) | |
tree | 1b73540642305bd0a7cc27e84ffcffafeaeab43f | |
parent | fixes for nebadon"s terrain bugs; includes patched 0.9 ode.dll, libode.so (diff) | |
download | opensim-SC_OLD-e7869d06665054b2f3ac7b75836098520f4c40d2.zip opensim-SC_OLD-e7869d06665054b2f3ac7b75836098520f4c40d2.tar.gz opensim-SC_OLD-e7869d06665054b2f3ac7b75836098520f4c40d2.tar.bz2 opensim-SC_OLD-e7869d06665054b2f3ac7b75836098520f4c40d2.tar.xz |
* Added FormatProvider to Culture
-rw-r--r-- | OpenSim/Framework/General/Culture.cs | 28 |
1 files changed, 18 insertions, 10 deletions
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 | |||
8 | { | 8 | { |
9 | public class Culture | 9 | public class Culture |
10 | { | 10 | { |
11 | private static readonly CultureInfo m_cultureInfo = new System.Globalization.CultureInfo("en-US", true); | 11 | private static readonly CultureInfo m_cultureInfo = new System.Globalization.CultureInfo("en-US", true); |
12 | 12 | ||
13 | public static NumberFormatInfo NumberFormatInfo | 13 | public static NumberFormatInfo NumberFormatInfo |
14 | { | 14 | { |
15 | get | 15 | get |
16 | { | 16 | { |
17 | return m_cultureInfo.NumberFormat; | 17 | return m_cultureInfo.NumberFormat; |
18 | } | 18 | } |
19 | } | 19 | } |
20 | 20 | ||
21 | public static IFormatProvider FormatProvider | ||
22 | { | ||
23 | get | ||
24 | { | ||
25 | return m_cultureInfo; | ||
26 | } | ||
27 | } | ||
28 | |||
21 | public static void SetCurrentCulture() | 29 | public static void SetCurrentCulture() |
22 | { | 30 | { |
23 | Thread.CurrentThread.CurrentCulture = m_cultureInfo; | 31 | Thread.CurrentThread.CurrentCulture = m_cultureInfo; |