Skip to content

Commit 5cc97ea

Browse files
authored
Merge pull request #3577 from IvenBach/AboutDialogCurrentYearFix
Minor tweaks on About window
2 parents a4d6173 + a525043 commit 5cc97ea

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

RetailCoder.VBE/UI/About/AboutControl.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ Stephen Bullen (Smart Indenter)
182182
</StackPanel>
183183
</Border>
184184
<TextBlock Grid.Row="2" Grid.Column="1"
185-
Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=AboutWindow_Copyright}"
186-
FontSize="8" Margin="10"
187-
VerticalAlignment="Bottom" HorizontalAlignment="Center" Height="11" Width="237" />
185+
Text="{Binding AboutCopyright}"
186+
FontSize="8" Margin="10"
187+
VerticalAlignment="Bottom" HorizontalAlignment="Center" Height="11" Width="237" />
188188
</Grid>
189189
</UserControl>

RetailCoder.VBE/UI/About/AboutControlViewModel.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Diagnostics;
3-
using System.Reflection;
43
using NLog;
54
using Rubberduck.UI.Command;
65
using Rubberduck.VersionCheck;
@@ -33,5 +32,8 @@ public CommandBase UriCommand
3332
});
3433
}
3534
}
35+
36+
public string AboutCopyright =>
37+
string.Format(RubberduckUI.AboutWindow_Copyright, DateTime.Now.Year);
3638
}
3739
}

RetailCoder.VBE/UI/RubberduckUI.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.

RetailCoder.VBE/UI/RubberduckUI.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ Are you sure you want to proceed with this rename?</value>
710710
<value>About Rubberduck</value>
711711
</data>
712712
<data name="AboutWindow_Copyright" xml:space="preserve">
713-
<value>© Copyright 2014-2017 Mathieu Guindon &amp; Christopher McClellan</value>
713+
<value>© Copyright 2014-{0} Mathieu Guindon &amp; Christopher McClellan</value>
714714
</data>
715715
<data name="AboutWindow_SpecialThanksLabel" xml:space="preserve">
716716
<value>Special Thanks</value>

0 commit comments

Comments
 (0)