From 777687db76ec59b1a024aa1958edbfb23ec86b31 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 7 Jun 2015 19:52:52 +0000 Subject: WinGui: Moving more of the view strings into resources. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7277 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/HandBrakeWPF.csproj | 10 + .../HandBrakeWPF/Properties/ResourcesTooltips.resx | 129 ++++++++ win/CS/HandBrakeWPF/Properties/ResourcesUI.resx | 351 +++++++++++++++++++++ win/CS/HandBrakeWPF/Views/AboutView.xaml | 2 +- win/CS/HandBrakeWPF/Views/AudioDefaultsView.xaml | 163 ---------- win/CS/HandBrakeWPF/Views/AudioView.xaml | 71 +++-- win/CS/HandBrakeWPF/Views/CountdownAlertView.xaml | 7 +- win/CS/HandBrakeWPF/Views/ErrorView.xaml | 7 +- win/CS/HandBrakeWPF/Views/FiltersView.xaml | 21 +- win/CS/HandBrakeWPF/Views/PictureSettingsView.xaml | 45 ++- win/CS/HandBrakeWPF/Views/QueueSelectionView.xaml | 8 +- win/CS/HandBrakeWPF/Views/QueueView.xaml | 67 ++-- win/CS/HandBrakeWPF/Views/StaticPreviewView.xaml | 8 +- win/CS/HandBrakeWPF/Views/SubtitlesView.xaml | 46 +-- win/CS/HandBrakeWPF/Views/VideoView.xaml | 38 +-- 15 files changed, 650 insertions(+), 323 deletions(-) create mode 100644 win/CS/HandBrakeWPF/Properties/ResourcesTooltips.resx delete mode 100644 win/CS/HandBrakeWPF/Views/AudioDefaultsView.xaml (limited to 'win/CS') diff --git a/win/CS/HandBrakeWPF/HandBrakeWPF.csproj b/win/CS/HandBrakeWPF/HandBrakeWPF.csproj index 10bddbeb6..6304e107d 100644 --- a/win/CS/HandBrakeWPF/HandBrakeWPF.csproj +++ b/win/CS/HandBrakeWPF/HandBrakeWPF.csproj @@ -159,6 +159,11 @@ + + ResourcesTooltips.resx + True + True + ResourcesUI.resx True @@ -359,6 +364,11 @@ True Resources.resx + + PublicResXFileCodeGenerator + ResourcesTooltips.Designer.cs + Designer + PublicResXFileCodeGenerator ResourcesUI.Designer.cs diff --git a/win/CS/HandBrakeWPF/Properties/ResourcesTooltips.resx b/win/CS/HandBrakeWPF/Properties/ResourcesTooltips.resx new file mode 100644 index 000000000..a97cb693e --- /dev/null +++ b/win/CS/HandBrakeWPF/Properties/ResourcesTooltips.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Delete the job from the queue. + + + Reset job status to Waiting. + + + Send the job back to the main window for editing. + + \ No newline at end of file diff --git a/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx b/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx index b780ecbb5..11b8d5ea5 100644 --- a/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx +++ b/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx @@ -297,4 +297,355 @@ Update Selected Preset + + Add All Remaining Selected Languages + + + Add All Remaining Tracks + + + Add New Track + + + Add Track + + + Allow passthru of: + + + 'Auto Passthru' Behaviour: + + + Available Languages: + + + Bitrate + + + Choose Languages: + + + Chosen Languages: + + + Codec + + + Configure Default Behaviours + + + DRC + + + Gain + + + Hide + + + Mixdown + + + Move Left + + + Move Right + + + Otherwise use fallback encoder: + + + Reload Defaults + + + Samplerate + + + Show + + + Track Name: + + + Track Selection Behaviour: + + + Track Setting Default Behaviour: + + + When 'Auto Passthru' is selected as the audio codec. + + + Cancel Action + + + Proceed + + + When Done Action + + + Error Details: + + + Custom: + + + Deblock + + + Decomb + + + Deinterlace + + + Denoise: + + + Detelecine: + + + Filters + + + Grayscale + + + Preset: + + + Tune: + + + Clear + + + Close + + + Copy to Clipboard + + + Anamorphic: + + + Automatic + + + Bottom + + + Cropping + + + Custom + + + Display Width: + + + Height: + + + Keep Aspect Ratio + + + Left + + + Modulus: + + + Output + + + PAR Height: + + + PAR Width: + + + Right + + + Size + + + Source: + + + Top + + + Width: + + + Choose titles: + + + Add to Queue + + + Advanced: + + + Audio: + + + Clear All + + + Clear Completed + + + Clear Queue + + + Clear Selected + + + Destination: + + + Do nothing + + + Export Queue + + + Hibernate + + + Import Queue + + + Lock System + + + Log off + + + Options + + + Pause + + + Picture Settings: + + + Quit HandBrake + + + Shutdown + + + Source: + + + Start + + + Subtitles: + + + Suspend + + + Video: + + + When Done:: + + + Duration: + + + Live Preview + + + Use system default player + + + Add Closed Captions when available + + + Add 'Foreign Audio Scan' + + + Burn-In Behaviour: + + + Track Selection Behaviour: + + + Reload Defaults + + + Import SRT + + + Add All Remaining Closed Captions + + + 2-Pass Encoding + + + Avg Bitrate (kbps): + + + Video Codec: + + + Constant Framerate + + + Constant Quality: + + + Encoder Level + + + Encoder Preset: + + + Encoder Profile: + + + Encoder Tune: + + + Extra Options: + + + Fast Decode + + + Framerate (FPS): + + + Optimise Video: + + + Peak Framerate + + + Quality + + + Same as source + + + Turbo first pass + + + Use Advanced Tab instead + + + Variable Framerate + + + Video + \ No newline at end of file diff --git a/win/CS/HandBrakeWPF/Views/AboutView.xaml b/win/CS/HandBrakeWPF/Views/AboutView.xaml index 01fc3f2d0..0b0358251 100644 --- a/win/CS/HandBrakeWPF/Views/AboutView.xaml +++ b/win/CS/HandBrakeWPF/Views/AboutView.xaml @@ -34,7 +34,7 @@ - + diff --git a/win/CS/HandBrakeWPF/Views/AudioDefaultsView.xaml b/win/CS/HandBrakeWPF/Views/AudioDefaultsView.xaml deleted file mode 100644 index 876485d26..000000000 --- a/win/CS/HandBrakeWPF/Views/AudioDefaultsView.xaml +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -91,7 +92,7 @@ Source="Images/Pause.png" /> @@ -102,7 +103,7 @@ + Text="{x:Static Properties:ResourcesUI.QueueView_WhenDone}" /> @@ -326,12 +327,12 @@ - + - + @@ -358,7 +359,7 @@ + ToolTip="{x:Static Properties:ResourcesTooltips.QueueView_ResetJobStatus}"> @@ -377,7 +378,7 @@ + ToolTip="{x:Static Properties:ResourcesTooltips.QueueView_SendJobBack}"> @@ -396,7 +397,7 @@ + ToolTip="{x:Static Properties:ResourcesTooltips.QueueView_DeleteJob}"> diff --git a/win/CS/HandBrakeWPF/Views/StaticPreviewView.xaml b/win/CS/HandBrakeWPF/Views/StaticPreviewView.xaml index 64783a087..517ae13f9 100644 --- a/win/CS/HandBrakeWPF/Views/StaticPreviewView.xaml +++ b/win/CS/HandBrakeWPF/Views/StaticPreviewView.xaml @@ -5,6 +5,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:cal="http://www.caliburnproject.org" xmlns:converters="clr-namespace:HandBrakeWPF.Converters" + xmlns:Properties="clr-namespace:HandBrakeWPF.Properties" mc:Ignorable="d" SizeToContent="WidthAndHeight" TextOptions.TextFormattingMode="Display" WindowStartupLocation="CenterScreen" @@ -31,7 +32,6 @@ - -