summaryrefslogtreecommitdiffstats
path: root/win/CS/ToolWindows
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-11-04 23:02:19 +0000
committersr55 <[email protected]>2011-11-04 23:02:19 +0000
commit4ec40322ea7ac15f645a6a056da99b43d6d2ac12 (patch)
treee908d1461f876d1c2ef984b3b9a30f4a344d2f0f /win/CS/ToolWindows
parented81068f87cbee3d68425e46178ec6dfae6b955e (diff)
WinGui: Several more culture issue fixes.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4340 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/ToolWindows')
-rw-r--r--win/CS/ToolWindows/AdvancedAudio.cs11
1 files changed, 4 insertions, 7 deletions
diff --git a/win/CS/ToolWindows/AdvancedAudio.cs b/win/CS/ToolWindows/AdvancedAudio.cs
index d1fb0763e..f3446797c 100644
--- a/win/CS/ToolWindows/AdvancedAudio.cs
+++ b/win/CS/ToolWindows/AdvancedAudio.cs
@@ -16,9 +16,6 @@ namespace Handbrake.ToolWindows
/// </summary>
public partial class AdvancedAudio : Form
{
- // Culture Info
- private static readonly CultureInfo Culture = new CultureInfo("en-US", false);
-
/// <summary>
/// Initializes a new instance of the <see cref="AdvancedAudio"/> class.
/// </summary>
@@ -69,9 +66,9 @@ namespace Handbrake.ToolWindows
int drcCalculated;
if (track.DRC != 0)
drcValue = ((track.DRC * 10) + 1) - 10;
- int.TryParse(drcValue.ToString(Culture), out drcCalculated);
+ int.TryParse(drcValue.ToString(CultureInfo.InvariantCulture), out drcCalculated);
tb_drc.Value = drcCalculated;
- lbl_drc.Text = track.DRC.ToString(Culture);
+ lbl_drc.Text = track.DRC.ToString(CultureInfo.InvariantCulture);
tb_drc.Enabled = track.TrackDisplay.Contains("(AC3)");
// Se the Track Name
@@ -119,7 +116,7 @@ namespace Handbrake.ToolWindows
int drcCalculated;
if (track.DRC != 0)
drcValue = ((track.DRC * 10) + 1) - 10;
- int.TryParse(drcValue.ToString(Culture), out drcCalculated);
+ int.TryParse(drcValue.ToString(CultureInfo.InvariantCulture), out drcCalculated);
tb_drc.Value = drcCalculated;
// Set the model.
@@ -142,7 +139,7 @@ namespace Handbrake.ToolWindows
else
value = ((tb_drc.Value - 1) / 10.0) + 1;
- lbl_drc.Text = value.ToString(Culture);
+ lbl_drc.Text = value.ToString(CultureInfo.InvariantCulture);
track.DRC = value;
}