Skip to content

Commit ffddbae

Browse files
authored
Merge pull request #5257 from IvenBach/UpdateGeneralSettingsLabel
Update GeneralSettings header instructions
2 parents ac05e74 + 383eac4 commit ffddbae

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using Rubberduck.Resources;
2+
3+
namespace Rubberduck.UI.Settings
4+
{
5+
class GeneralSettingsView : SettingsView
6+
{
7+
public override string Instructions => string.Format(base.Instructions,
8+
RubberduckUI.SaveAndClose,
9+
RubberduckUI.CancelButtonText);
10+
}
11+
}

Rubberduck.Core/UI/Settings/SettingsForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public SettingsForm(IConfigurationService<Configuration> configService,
3737

3838
ViewModel = new SettingsControlViewModel(messageBox, configService,
3939
config,
40-
new SettingsView
40+
new GeneralSettingsView
4141
{
4242
Control = new GeneralSettings(viewModelFactory.Create<Rubberduck.Settings.GeneralSettings>(config)),
4343
View = SettingsViews.GeneralSettings

Rubberduck.Core/UI/Settings/SettingsView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Rubberduck.UI.Settings
66
public class SettingsView
77
{
88
public string Label => SettingsUI.ResourceManager.GetString("PageHeader_" + View);
9-
public string Instructions => SettingsUI.ResourceManager.GetString("PageInstructions_" + View, CultureInfo.CurrentUICulture);
9+
public virtual string Instructions => SettingsUI.ResourceManager.GetString("PageInstructions_" + View, CultureInfo.CurrentUICulture);
1010
public ISettingsView Control { get; set; }
1111
public SettingsViews View { get; set; }
1212
}

Rubberduck.Resources/Settings/SettingsUI.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Rubberduck.Resources/Settings/SettingsUI.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
<value>Configure which autocompletions are enabled.</value>
200200
</data>
201201
<data name="PageInstructions_GeneralSettings" xml:space="preserve">
202-
<value>Click [Ok] to close the window and apply changes, or [Cancel] to discard them.</value>
202+
<value>Click [{0}] to close the window and apply changes, or [{1}] to discard them.</value>
203203
</data>
204204
<data name="PageInstructions_IndenterSettings" xml:space="preserve">
205205
<value>Configure indenter settings.</value>

0 commit comments

Comments
 (0)