|
46 | 46 | <ColumnDefinition /> |
47 | 47 | </Grid.ColumnDefinitions> |
48 | 48 | <StackPanel> |
49 | | - <Label Content="Alignment Options" FontWeight="SemiBold" /> |
50 | | - <CheckBox Content="Align comments with code" IsChecked="{Binding AlignCommentsWithCode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="5,0,0,5" HorizontalAlignment="Left" /> |
51 | | - <CheckBox Name="AlignContinuationsCheckBox" Content="Align continuations" IsChecked="{Binding AlignContinuations, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="5,0,0,5" HorizontalAlignment="Left" /> |
52 | | - <CheckBox Content="Ignore operators" IsEnabled="{Binding ElementName=AlignContinuationsCheckBox, Path=IsChecked}" IsChecked="{Binding IgnoreOperatorsInContinuations, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="25,0,0,5" HorizontalAlignment="Left" /> |
| 49 | + <Label Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=IndenterSettings_AlignmentOptionsLabel}" FontWeight="SemiBold" /> |
| 50 | + <CheckBox Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=IndenterSettings_AlignCommentsWithCode}" IsChecked="{Binding AlignCommentsWithCode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="5,0,0,5" HorizontalAlignment="Left" /> |
| 51 | + <CheckBox Name="AlignContinuationsCheckBox" Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=IndenterSettings_AlignContinuations}" IsChecked="{Binding AlignContinuations, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="5,0,0,5" HorizontalAlignment="Left" /> |
| 52 | + <CheckBox Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=IndenterSettings_IgnoreOperators}" IsEnabled="{Binding ElementName=AlignContinuationsCheckBox, Path=IsChecked}" IsChecked="{Binding IgnoreOperatorsInContinuations, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="25,0,0,5" HorizontalAlignment="Left" /> |
53 | 53 | <StackPanel Orientation="Horizontal"> |
54 | | - <CheckBox Name="AlignDimColumn" Content="Align dims" Margin="5,0,0,5" IsChecked="{Binding AlignDims, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" /> |
| 54 | + <CheckBox Name="AlignDimColumn" Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=IndenterSettings_AlignDims}" Margin="5,0,0,5" IsChecked="{Binding AlignDims, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" /> |
55 | 55 | <controls:NumberPicker Margin="0,-6,0,0" IsEnabled="{Binding ElementName=AlignDimColumn, Path=IsChecked}" NumValue="{Binding AlignDimColumn, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" /> |
56 | 56 | </StackPanel> |
57 | | - <Label Content="Special Options" FontWeight="SemiBold" /> |
58 | | - <CheckBox Content="Force Debug Directives to Column 1" IsChecked="{Binding ForceDebugStatementsInColumn1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="5,0,0,5" HorizontalAlignment="Left" /> |
59 | | - <CheckBox Content="Force Compiler Directives to Column 1" IsChecked="{Binding ForceCompilerDirectivesInColumn1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="5,0,0,5" HorizontalAlignment="Left" /> |
| 57 | + <Label Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=IndenterSettings_SpecialOptionsLabel}" FontWeight="SemiBold" /> |
| 58 | + <CheckBox Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=IndenterSettings_ForceDebugDirectivesToColumn1}" IsChecked="{Binding ForceDebugStatementsInColumn1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="5,0,0,5" HorizontalAlignment="Left" /> |
| 59 | + <CheckBox Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=IndenterSettings_ForceCompilerDirectivesToColumn1}" IsChecked="{Binding ForceCompilerDirectivesInColumn1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="5,0,0,5" HorizontalAlignment="Left" /> |
60 | 60 | </StackPanel> |
61 | 61 |
|
62 | 62 | <StackPanel Grid.Column="1"> |
63 | | - <Label Content="Indent Options" FontWeight="SemiBold" /> |
64 | | - <CheckBox Name="IndentProcedureCheckBox" Content="Indent entire procedure body" IsChecked="{Binding IndentEntireProcedureBody, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="5,0,0,5" HorizontalAlignment="Left" /> |
65 | | - <CheckBox Content="Indent first comment block" IsEnabled="{Binding ElementName=IndentProcedureCheckBox, Path=IsChecked}" IsChecked="{Binding IndentFirstCommentBlock, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="25,0,0,5" HorizontalAlignment="Left" /> |
66 | | - <CheckBox Content="Indent first declaration block" IsEnabled="{Binding ElementName=IndentProcedureCheckBox, Path=IsChecked}" IsChecked="{Binding IndentFirstDeclarationBlock, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="25,0,0,5" HorizontalAlignment="Left" /> |
67 | | - <CheckBox Content="Indent case" IsChecked="{Binding IndentCase, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="5,0,0,5" HorizontalAlignment="Left" /> |
68 | | - <CheckBox Content="Indent compiler directives" IsChecked="{Binding IndentCompilerDirectives, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="5,0,0,5" HorizontalAlignment="Left" /> |
| 63 | + <Label Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=IndenterSettings_IndentOptionsLabel}" FontWeight="SemiBold" /> |
| 64 | + <CheckBox Name="IndentProcedureCheckBox" Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=IndenterSettings_IndentEntireProcedureBody}" IsChecked="{Binding IndentEntireProcedureBody, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="5,0,0,5" HorizontalAlignment="Left" /> |
| 65 | + <CheckBox Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=IndenterSettings_IndentFirstCommentBlock}" IsEnabled="{Binding ElementName=IndentProcedureCheckBox, Path=IsChecked}" IsChecked="{Binding IndentFirstCommentBlock, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="25,0,0,5" HorizontalAlignment="Left" /> |
| 66 | + <CheckBox Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=IndenterSettings_IndentFirstDeclarationBlock}" IsEnabled="{Binding ElementName=IndentProcedureCheckBox, Path=IsChecked}" IsChecked="{Binding IndentFirstDeclarationBlock, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="25,0,0,5" HorizontalAlignment="Left" /> |
| 67 | + <CheckBox Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=IndenterSettings_IndentCase}" IsChecked="{Binding IndentCase, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="5,0,0,5" HorizontalAlignment="Left" /> |
| 68 | + <CheckBox Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=IndenterSettings_IndentCompilerDirectives}" IsChecked="{Binding IndentCompilerDirectives, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="5,0,0,5" HorizontalAlignment="Left" /> |
69 | 69 | <StackPanel Orientation="Horizontal"> |
70 | | - <TextBlock Text="Indent spaces:" Margin="5,0,0,5" HorizontalAlignment="Left" /> |
| 70 | + <TextBlock Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=IndenterSettings_IndentSpaces}" Margin="5,0,0,5" HorizontalAlignment="Left" /> |
71 | 71 | <controls:NumberPicker Margin="0,-6,0,0" NumValue="{Binding IndentSpaces, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> |
72 | 72 | </StackPanel> |
73 | | - <Label Content="Enable Options" FontWeight="SemiBold" /> |
74 | | - <CheckBox Content="Enable undo" IsChecked="{Binding EnableUndo, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="5,0,0,5" HorizontalAlignment="Left" /> |
| 73 | + <Label Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=IndenterSettings_EnableOptionsLabel}" FontWeight="SemiBold" /> |
| 74 | + <CheckBox Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=IndenterSettings_EnableUndo}" IsChecked="{Binding EnableUndo, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="5,0,0,5" HorizontalAlignment="Left" /> |
75 | 75 | </StackPanel> |
76 | 76 | </Grid> |
77 | | - <Label Content="End-of-Line Comment Style:" FontWeight="SemiBold" Margin="0,-18,0,0" HorizontalAlignment="Left" /> |
| 77 | + <Label Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=IndenterSettings_EndOfLineCommentStyle}" FontWeight="SemiBold" Margin="0,-18,0,0" HorizontalAlignment="Left" /> |
78 | 78 | <StackPanel Orientation="Horizontal"> |
79 | 79 | <ComboBox Margin="5,0,0,5" Width="210" HorizontalAlignment="Left" ItemsSource="{Binding Source={StaticResource CommentStyles}, Converter={StaticResource LocalizedEndOfLineCommentStyles}, UpdateSourceTrigger=PropertyChanged}" SelectedItem="{Binding EndOfLineCommentStyle, Mode=TwoWay, Converter={StaticResource EndOfLineCommentStyleTextToEnumValue}, UpdateSourceTrigger=PropertyChanged}" /> |
80 | 80 | <controls:NumberPicker Margin="0,-4,0,0" NumValue="{Binding EndOfLineCommentColumnSpaceAlignment, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Visibility="{Binding EndOfLineCommentStyle, Converter={StaticResource EndOfLineCommentStyleToVisibility}}" HorizontalAlignment="Left" /> |
|
0 commit comments