--- a/client/src/Iri.Modernisation.Controls/View/AnnotationMaker/AnnotationMaker.xaml Wed Nov 18 17:01:49 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/AnnotationMaker/AnnotationMaker.xaml Thu Nov 19 12:12:55 2009 +0100
@@ -10,6 +10,7 @@
xmlns:Converter="clr-namespace:Iri.Modernisation.Controls.Converter"
xmlns:View="clr-namespace:Iri.Modernisation.Controls.View"
xmlns:Input="clr-namespace:SLExtensions.Input;assembly=SLExtensions"
+ xmlns:Lang="clr-namespace:Iri.Modernisation.Lang;assembly=Iri.Modernisation.Lang"
d:DesignWidth="312" Width="312" Height="320"
IsEnabled="{Binding IsControlEnable,Mode=TwoWay}"
>
@@ -21,15 +22,15 @@
<ResourceDictionary Source="/Iri.Modernisation.Styles;Component/Templates_CommonTemplate.xaml"/>
<ResourceDictionary Source="/Iri.Modernisation.Styles;Component/Templates_Binder.xaml"/>
</ResourceDictionary.MergedDictionaries>
-
-
- <Converter:TagArrayConverter x:Key="TagConvert"/>
+
+ <Lang:LangResource x:Name="LangLabels" x:Key="LangLabels"></Lang:LangResource>
+ <Converter:TagArrayConverter x:Key="TagConvert"/>
</ResourceDictionary>
</UserControl.Resources>
<Grid x:Name="AnnotationMakerPanel">
<StackPanel x:Name="HeaderAnnotationMarkerPanel" Height="33" Orientation="Horizontal" Margin="0,0,8,0" VerticalAlignment="Top">
- <TextBlock Style="{StaticResource CommonTextBlock}" x:Name="HeaderAnnotationMakerLabel" Text="Annotez ce segment" TextWrapping="Wrap" Width="166" Height="19" VerticalAlignment="Top"/>
+ <TextBlock Style="{StaticResource CommonTextBlock}" x:Name="HeaderAnnotationMakerLabel" Text="{Binding AnnotationMakerTitle, Source={StaticResource LangLabels}}" TextWrapping="Wrap" Width="166" Height="19" VerticalAlignment="Top"/>
<ListBox Style="{StaticResource HorizontalListBox}" SelectedItem="{Binding SelectedType,Mode=TwoWay}" SelectedIndex="0" x:Name="TypeAnnotationList" Margin="-27,0,0,2" Width="137" >
<Rectangle x:Name="RectPolemic" Fill="Red" Stroke="Black" Height="20" Width="22">
@@ -68,7 +69,7 @@
</Grid>
<StackPanel x:Name="AnnotationContextualLinkPanel" Height="74" Margin="0,0,8,0" VerticalAlignment="Bottom">
- <TextBlock Style="{StaticResource CommonTextBlock}" x:Name="AnnotationContextualLinkLabel" Text="Ajouter un lien contextuel" TextWrapping="Wrap"/>
+ <TextBlock Style="{StaticResource CommonTextBlock}" x:Name="AnnotationContextualLinkLabel" Text="{Binding AnnotationMakerAddLinkLabel, Source={StaticResource LangLabels}}" TextWrapping="Wrap"/>
<TextBlock Style="{StaticResource CommonTextBlock}" x:Name="AnnotationContextualBindedLabel" TextWrapping="Wrap" HorizontalAlignment="Left" Width="295" Text="{Binding PolemicRelation.ToElement.Title}" Height="26"/>
<StackPanel x:Name="ContextualBinderPanel" Orientation="Horizontal">
<View:ContextualLinkBinder PolemicType="Polemic" x:Name="Binder1" />
@@ -80,6 +81,6 @@
</StackPanel>
- <Button Input:CommandService.Command="OkClick" Input:CommandService.CommandParameter="{Binding}" x:Name="AnnotationOkButton" Content="Ok" HorizontalAlignment="Right" Width="48" d:LayoutOverrides="HorizontalAlignment" RenderTransformOrigin="0.508,-0.091" Margin="0,282,8,0" VerticalAlignment="Top" Height="30"/>
+ <Button Input:CommandService.Command="OkClick" Input:CommandService.CommandParameter="{Binding}" x:Name="AnnotationOkButton" Content="{Binding OkLabel, Converter={StaticResource TagConvert}}" HorizontalAlignment="Right" Width="48" d:LayoutOverrides="HorizontalAlignment" RenderTransformOrigin="0.508,-0.091" Margin="0,282,8,0" VerticalAlignment="Top" Height="30"/>
</Grid>
</UserControl>
\ No newline at end of file