Skip to content

Commit cabfa44

Browse files
committed
Indenter settings localized
1 parent 77c3d7a commit cabfa44

File tree

3 files changed

+234
-18
lines changed

3 files changed

+234
-18
lines changed

RetailCoder.VBE/UI/RubberduckUI.Designer.cs

Lines changed: 162 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RetailCoder.VBE/UI/RubberduckUI.resx

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,6 +1392,60 @@ Are you sure you want to proceed with this rename?</value>
13921392
<data name="GeneralSettings_HotkeyKeyPress" xml:space="preserve">
13931393
<value>Key Press</value>
13941394
</data>
1395+
<data name="IndenterSettings_AlignCommentsWithCode" xml:space="preserve">
1396+
<value>Align comments with code</value>
1397+
</data>
1398+
<data name="IndenterSettings_AlignContinuations" xml:space="preserve">
1399+
<value>Align continuations</value>
1400+
</data>
1401+
<data name="IndenterSettings_AlignDims" xml:space="preserve">
1402+
<value>Align dims</value>
1403+
</data>
1404+
<data name="IndenterSettings_AlignmentOptionsLabel" xml:space="preserve">
1405+
<value>Alignment Options</value>
1406+
</data>
1407+
<data name="IndenterSettings_EnableOptionsLabel" xml:space="preserve">
1408+
<value>Enable Options</value>
1409+
</data>
1410+
<data name="IndenterSettings_EnableUndo" xml:space="preserve">
1411+
<value>Enable undo</value>
1412+
</data>
1413+
<data name="IndenterSettings_EndOfLineCommentStyle" xml:space="preserve">
1414+
<value>End-of-line comment style:</value>
1415+
</data>
1416+
<data name="IndenterSettings_ForceCompilerDirectivesToColumn1" xml:space="preserve">
1417+
<value>Force compiler directives to column 1</value>
1418+
</data>
1419+
<data name="IndenterSettings_ForceDebugDirectivesToColumn1" xml:space="preserve">
1420+
<value>Force debug directives to column 1</value>
1421+
</data>
1422+
<data name="IndenterSettings_IgnoreOperators" xml:space="preserve">
1423+
<value>Ignore operators</value>
1424+
</data>
1425+
<data name="IndenterSettings_IndentCase" xml:space="preserve">
1426+
<value>Indent case</value>
1427+
</data>
1428+
<data name="IndenterSettings_IndentCompilerDirectives" xml:space="preserve">
1429+
<value>Indent compiler directives</value>
1430+
</data>
1431+
<data name="IndenterSettings_IndentEntireProcedureBody" xml:space="preserve">
1432+
<value>Indent entire procedure body</value>
1433+
</data>
1434+
<data name="IndenterSettings_IndentFirstCommentBlock" xml:space="preserve">
1435+
<value>Indent first comment block</value>
1436+
</data>
1437+
<data name="IndenterSettings_IndentFirstDeclarationBlock" xml:space="preserve">
1438+
<value>Indent first declaration block</value>
1439+
</data>
1440+
<data name="IndenterSettings_IndentOptionsLabel" xml:space="preserve">
1441+
<value>Indent Options</value>
1442+
</data>
1443+
<data name="IndenterSettings_IndentSpaces" xml:space="preserve">
1444+
<value>Indent spaces:</value>
1445+
</data>
1446+
<data name="IndenterSettings_SpecialOptionsLabel" xml:space="preserve">
1447+
<value>Special Options</value>
1448+
</data>
13951449
<data name="IndentModuleHotkey_Description" xml:space="preserve">
13961450
<value>Indent Module Hotkey</value>
13971451
</data>

RetailCoder.VBE/UI/Settings/IndenterSettings.xaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,35 +46,35 @@
4646
<ColumnDefinition />
4747
</Grid.ColumnDefinitions>
4848
<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" />
5353
<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" />
5555
<controls:NumberPicker Margin="0,-6,0,0" IsEnabled="{Binding ElementName=AlignDimColumn, Path=IsChecked}" NumValue="{Binding AlignDimColumn, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" />
5656
</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" />
6060
</StackPanel>
6161

6262
<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" />
6969
<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" />
7171
<controls:NumberPicker Margin="0,-6,0,0" NumValue="{Binding IndentSpaces, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
7272
</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" />
7575
</StackPanel>
7676
</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" />
7878
<StackPanel Orientation="Horizontal">
7979
<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}" />
8080
<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

Comments
 (0)