diff options
author | sr55 <[email protected]> | 2015-06-07 19:52:52 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2015-06-07 19:52:52 +0000 |
commit | 777687db76ec59b1a024aa1958edbfb23ec86b31 (patch) | |
tree | 32a290671230a98deda7d477549b0c0072f4e5f8 /win/CS/HandBrakeWPF/Views/QueueView.xaml | |
parent | ffb84dc9de2d85776c172f48afebd1c773b322e6 (diff) |
WinGui: Moving more of the view strings into resources.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7277 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/QueueView.xaml')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/QueueView.xaml | 67 |
1 files changed, 34 insertions, 33 deletions
diff --git a/win/CS/HandBrakeWPF/Views/QueueView.xaml b/win/CS/HandBrakeWPF/Views/QueueView.xaml index b5efe838c..9a7460015 100644 --- a/win/CS/HandBrakeWPF/Views/QueueView.xaml +++ b/win/CS/HandBrakeWPF/Views/QueueView.xaml @@ -13,6 +13,7 @@ xmlns:video="clr-namespace:HandBrakeWPF.Converters.Video"
xmlns:commands="clr-namespace:HandBrakeWPF.Commands"
xmlns:helpers="clr-namespace:HandBrakeWPF.Helpers"
+ xmlns:Properties="clr-namespace:HandBrakeWPF.Properties"
Title="{Binding Title}"
Width="700"
Height="500"
@@ -76,7 +77,7 @@ Source="Images/Play.png" />
<Label Margin="8,0,0,0"
VerticalAlignment="Center"
- Content="Start" />
+ Content="{x:Static Properties:ResourcesUI.QueueView_Start}" />
</StackPanel>
</Button>
@@ -91,7 +92,7 @@ Source="Images/Pause.png" />
<Label Margin="8,0,0,0"
VerticalAlignment="Center"
- Content="Pause" />
+ Content="{x:Static Properties:ResourcesUI.QueueView_Pause}" />
</StackPanel>
</Button>
@@ -102,7 +103,7 @@ <StackPanel Height="32" Orientation="Horizontal">
<TextBlock VerticalAlignment="Center"
FontWeight="Bold"
- Text="When Done: " />
+ Text="{x:Static Properties:ResourcesUI.QueueView_WhenDone}" />
<Label Margin="8,0,0,0"
VerticalAlignment="Center"
Content="{Binding WhenDoneAction}" />
@@ -115,37 +116,37 @@ <MenuItem x:Name="doNothing"
cal:Message.Attach="[Event Click] = [Action WhenDone(doNothing.Header)]"
- Header="Do nothing"
+ Header="{x:Static Properties:ResourcesUI.QueueView_DoNothing}"
IsCheckable="True"
AttachedProperties:MenuItemExtensions.GroupName="whenDone" />
<MenuItem x:Name="shutdown"
cal:Message.Attach="[Event Click] = [Action WhenDone(shutdown.Header)]"
- Header="Shutdown"
+ Header="{x:Static Properties:ResourcesUI.QueueView_Shutdown}"
IsCheckable="True"
AttachedProperties:MenuItemExtensions.GroupName="whenDone" />
<MenuItem x:Name="suspend"
cal:Message.Attach="[Event Click] = [Action WhenDone(suspend.Header)]"
- Header="Suspend"
+ Header="{x:Static Properties:ResourcesUI.QueueView_Suspend}"
IsCheckable="True"
AttachedProperties:MenuItemExtensions.GroupName="whenDone" />
<MenuItem x:Name="hibernate"
cal:Message.Attach="[Event Click] = [Action WhenDone(hibernate.Header)]"
- Header="Hibernate"
+ Header="{x:Static Properties:ResourcesUI.QueueView_Hibernate}"
IsCheckable="True"
AttachedProperties:MenuItemExtensions.GroupName="whenDone" />
<MenuItem x:Name="lock"
cal:Message.Attach="[Event Click] = [Action WhenDone(lock.Header)]"
- Header="Lock System"
+ Header="{x:Static Properties:ResourcesUI.QueueView_LockSystem}"
IsCheckable="True"
AttachedProperties:MenuItemExtensions.GroupName="whenDone" />
<MenuItem x:Name="logoff"
cal:Message.Attach="[Event Click] = [Action WhenDone(logoff.Header)]"
- Header="Log off"
+ Header="{x:Static Properties:ResourcesUI.QueueView_Logoff}"
IsCheckable="True"
AttachedProperties:MenuItemExtensions.GroupName="whenDone" />
<MenuItem x:Name="quit"
cal:Message.Attach="[Event Click] = [Action WhenDone(quit.Header)]"
- Header="Quit HandBrake"
+ Header="{x:Static Properties:ResourcesUI.QueueView_QuitHandBrake}"
IsCheckable="True"
AttachedProperties:MenuItemExtensions.GroupName="whenDone" />
</MenuItem>
@@ -157,7 +158,7 @@ <StackPanel Height="32" Orientation="Horizontal">
<Image Source="Images\Advanced.png" Width="20" Height="20" VerticalAlignment="Center" />
<TextBlock VerticalAlignment="Center"
- Text="Options " Margin="5,0,0,0" />
+ Text="{x:Static Properties:ResourcesUI.QueueView_Options}" Margin="5,0,0,0" />
<Path Height="5"
Margin="2,2,2,0"
Data="M 0 0 L 4 4 L 8 0 Z"
@@ -165,11 +166,11 @@ </StackPanel>
</MenuItem.Header>
- <MenuItem cal:Message.Attach="[Event Click] = [Action ClearCompleted]" Header="Clear Completed" />
- <MenuItem cal:Message.Attach="[Event Click] = [Action Clear]" Header="Clear Queue" />
+ <MenuItem cal:Message.Attach="[Event Click] = [Action ClearCompleted]" Header="{x:Static Properties:ResourcesUI.QueueView_ClearCompleted}" />
+ <MenuItem cal:Message.Attach="[Event Click] = [Action Clear]" Header="{x:Static Properties:ResourcesUI.QueueView_ClearQueue}" />
<Separator />
- <MenuItem cal:Message.Attach="[Event Click] = [Action Import]" Header="Import Queue" />
- <MenuItem cal:Message.Attach="[Event Click] = [Action Export]" Header="Export Queue" />
+ <MenuItem cal:Message.Attach="[Event Click] = [Action Import]" Header="{x:Static Properties:ResourcesUI.QueueView_Import}" />
+ <MenuItem cal:Message.Attach="[Event Click] = [Action Export]" Header="{x:Static Properties:ResourcesUI.QueueView_Export}" />
</MenuItem>
</Menu>
@@ -205,12 +206,12 @@ <ListBox.ContextMenu>
<ContextMenu>
- <MenuItem cal:Message.Attach="[Event Click] = [Action ClearCompleted]" Header="Clear Completed" />
- <MenuItem cal:Message.Attach="[Event Click] = [Action Clear]" Header="Clear All" />
- <MenuItem cal:Message.Attach="[Event Click] = [Action RemoveSelectedJobs]" Header="Clear Selected" />
+ <MenuItem cal:Message.Attach="[Event Click] = [Action ClearCompleted]" Header="{x:Static Properties:ResourcesUI.QueueView_ClearCompleted}" />
+ <MenuItem cal:Message.Attach="[Event Click] = [Action Clear]" Header="{x:Static Properties:ResourcesUI.QueueView_ClearAll}" />
+ <MenuItem cal:Message.Attach="[Event Click] = [Action RemoveSelectedJobs]" Header="{x:Static Properties:ResourcesUI.QueueView_ClearSelected}" />
<Separator />
- <MenuItem cal:Message.Attach="[Event Click] = [Action Import]" Header="Import Queue" />
- <MenuItem cal:Message.Attach="[Event Click] = [Action Export]" Header="Export Queue" />
+ <MenuItem cal:Message.Attach="[Event Click] = [Action Import]" Header="{x:Static Properties:ResourcesUI.QueueView_Import}" />
+ <MenuItem cal:Message.Attach="[Event Click] = [Action Export]" Header="{x:Static Properties:ResourcesUI.QueueView_Export}" />
</ContextMenu>
</ListBox.ContextMenu>
@@ -242,27 +243,27 @@ <ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
- <TextBlock FontWeight="Bold" Text="Source:" VerticalAlignment="Top" Grid.Row="0" Grid.Column="0" />
+ <TextBlock FontWeight="Bold" Text="{x:Static Properties:ResourcesUI.QueueView_Source}" VerticalAlignment="Top" Grid.Row="0" Grid.Column="0" />
<TextBlock Text="{Binding Task.Source}" TextWrapping="Wrap" Grid.Row="0" Grid.Column="1" />
- <TextBlock FontWeight="Bold" Text="Destination:" VerticalAlignment="Top" Grid.Row="1" Grid.Column="0" />
+ <TextBlock FontWeight="Bold" Text="{x:Static Properties:ResourcesUI.QueueView_Destination}" VerticalAlignment="Top" Grid.Row="1" Grid.Column="0" />
<TextBlock Text="{Binding Task.Destination}" TextWrapping="Wrap" Grid.Row="1" Grid.Column="1" />
- <TextBlock FontWeight="Bold" Text="Picture Settings:" VerticalAlignment="Top" Grid.Row="2" Grid.Column="0" />
+ <TextBlock FontWeight="Bold" Text="{x:Static Properties:ResourcesUI.QueueView_PictureSettings}" VerticalAlignment="Top" Grid.Row="2" Grid.Column="0" />
<TextBlock Text="{Binding Task.PictureSettingsDesc}" TextWrapping="Wrap" Grid.Row="2" Grid.Column="1" />
-
- <TextBlock FontWeight="Bold" Text="Video:" Grid.Row="3" Grid.Column="0" />
+
+ <TextBlock FontWeight="Bold" Text="{x:Static Properties:ResourcesUI.QueueView_Video}" Grid.Row="3" Grid.Column="0" />
<TextBlock Text="{Binding Task, Converter={StaticResource videoOptionsTooltipConverter}}" Grid.Row="3" Grid.Column="1" TextWrapping="Wrap" />
- <TextBlock FontWeight="Bold" Text="Audio: " Grid.Row="4" Grid.Column="0"/>
+ <TextBlock FontWeight="Bold" Text="{x:Static Properties:ResourcesUI.QueueView_Audio}" Grid.Row="4" Grid.Column="0"/>
<TextBlock Text="{Binding Task.AudioTracks, Converter={StaticResource audioTrackDisplayConverter}}"
Grid.Row="4" Grid.Column="1"/>
- <TextBlock FontWeight="Bold" VerticalAlignment="Top" Text="Subtitles: " Grid.Row="5" Grid.Column="0" />
+ <TextBlock FontWeight="Bold" VerticalAlignment="Top" Text="{x:Static Properties:ResourcesUI.QueueView_Subtitles}" Grid.Row="5" Grid.Column="0" />
<TextBlock Text="{Binding Task.SubtitleTracks, Converter={StaticResource subtitleTrackDisplayConverter}}"
Grid.Row="5" Grid.Column="1" />
- <TextBlock FontWeight="Bold" VerticalAlignment="Top" Grid.Row="6" Grid.Column="0" Text="Advanced: " />
+ <TextBlock FontWeight="Bold" VerticalAlignment="Top" Grid.Row="6" Grid.Column="0" Text="{x:Static Properties:ResourcesUI.QueueView_Advanced}" />
<TextBlock Text="{Binding Task, Converter={StaticResource encoderOptionsTooltipConverter}}" Grid.Row="6" Grid.Column="1" TextWrapping="Wrap" />
</Grid>
@@ -326,12 +327,12 @@ <!-- TODO Support Drive Label Name -->
<StackPanel Orientation="Horizontal">
- <TextBlock FontWeight="Bold" Text="Source: " />
+ <TextBlock FontWeight="Bold" Text="{x:Static Properties:ResourcesUI.QueueView_Source}" />
<TextBlock Text="{Binding Task.Source, Converter={StaticResource filePathToFilenameConverter}}" />
</StackPanel>
<StackPanel Orientation="Horizontal">
- <TextBlock FontWeight="Bold" Text="Destination: " />
+ <TextBlock FontWeight="Bold" Text="{x:Static Properties:ResourcesUI.QueueView_Destination}" />
<TextBlock Text="{Binding Task.Destination, Converter={StaticResource filePathToFilenameConverter}}" />
</StackPanel>
</StackPanel>
@@ -358,7 +359,7 @@ <Image Width="20"
Height="20" VerticalAlignment="Center"
Source="Images/Refresh.ico"
- ToolTip="Reset job status to Waiting.">
+ ToolTip="{x:Static Properties:ResourcesTooltips.QueueView_ResetJobStatus}">
</Image>
</ControlTemplate>
</Button.Template>
@@ -377,7 +378,7 @@ <Image Width="20"
Height="20" VerticalAlignment="Center"
Source="Images/Options24.png"
- ToolTip="Send the job back to the main window for editing.">
+ ToolTip="{x:Static Properties:ResourcesTooltips.QueueView_SendJobBack}">
</Image>
</ControlTemplate>
</Button.Template>
@@ -396,7 +397,7 @@ <Image Width="20"
Height="20" VerticalAlignment="Center"
Source="Images/delete.png"
- ToolTip="Delete the job from the queue.">
+ ToolTip="{x:Static Properties:ResourcesTooltips.QueueView_DeleteJob}">
</Image>
</ControlTemplate>
</Button.Template>
|