diff options
author | lbsa71 | 2007-09-25 01:20:30 +0000 |
---|---|---|
committer | lbsa71 | 2007-09-25 01:20:30 +0000 |
commit | 2219ccc5b053d5c8885de113488dfb6718903435 (patch) | |
tree | 06bde077b98c0e8df228bec23aef8aa9b2eba39d /OpenSim/Framework/General/Culture.cs | |
parent | More reorganizing of new SE. Added debug print of application exception. (diff) | |
download | opensim-SC_OLD-2219ccc5b053d5c8885de113488dfb6718903435.zip opensim-SC_OLD-2219ccc5b053d5c8885de113488dfb6718903435.tar.gz opensim-SC_OLD-2219ccc5b053d5c8885de113488dfb6718903435.tar.bz2 opensim-SC_OLD-2219ccc5b053d5c8885de113488dfb6718903435.tar.xz |
* Fixed Culture-variant parsing of config options
Diffstat (limited to 'OpenSim/Framework/General/Culture.cs')
-rw-r--r-- | OpenSim/Framework/General/Culture.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/OpenSim/Framework/General/Culture.cs b/OpenSim/Framework/General/Culture.cs new file mode 100644 index 0000000..8f8561b --- /dev/null +++ b/OpenSim/Framework/General/Culture.cs | |||
@@ -0,0 +1,26 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Globalization; | ||
4 | using System.Text; | ||
5 | using System.Threading; | ||
6 | |||
7 | namespace OpenSim.Framework | ||
8 | { | ||
9 | public class Culture | ||
10 | { | ||
11 | private static readonly CultureInfo m_cultureInfo = new System.Globalization.CultureInfo("en-US", true); | ||
12 | |||
13 | public static NumberFormatInfo NumberFormatInfo | ||
14 | { | ||
15 | get | ||
16 | { | ||
17 | return m_cultureInfo.NumberFormat; | ||
18 | } | ||
19 | } | ||
20 | |||
21 | public static void SetCurrentCulture() | ||
22 | { | ||
23 | Thread.CurrentThread.CurrentCulture = m_cultureInfo; | ||
24 | } | ||
25 | } | ||
26 | } | ||