From 4ec40322ea7ac15f645a6a056da99b43d6d2ac12 Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 4 Nov 2011 23:02:19 +0000 Subject: WinGui: Several more culture issue fixes. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4340 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/ToolWindows/AdvancedAudio.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'win/CS/ToolWindows') 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 /// public partial class AdvancedAudio : Form { - // Culture Info - private static readonly CultureInfo Culture = new CultureInfo("en-US", false); - /// /// Initializes a new instance of the class. /// @@ -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; } -- cgit v1.2.3