Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit ef3c597

Browse files
committed
Place messages in Resources.resx.
1 parent a3d471e commit ef3c597

File tree

4 files changed

+56
-8
lines changed

4 files changed

+56
-8
lines changed

src/GitHub.VisualStudio.UI/Resources.Designer.cs

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

src/GitHub.VisualStudio.UI/Resources.resx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,4 +315,16 @@
315315
<data name="openInBrowser" xml:space="preserve">
316316
<value>Open in Browser</value>
317317
</data>
318+
<data name="NotAGitHubRepositoryMessage" xml:space="preserve">
319+
<value>Publish this repository to GitHub and get powerful collaboration, code review, and code management for open source and private projects.</value>
320+
</data>
321+
<data name="NotAGitHubRepository" xml:space="preserve">
322+
<value>This repository is not on GitHub</value>
323+
</data>
324+
<data name="NotAGitRepository" xml:space="preserve">
325+
<value>No repository</value>
326+
</data>
327+
<data name="NotAGitRepositoryMessage" xml:space="preserve">
328+
<value>We couldn't find a git repository here. Open a git project or click "File -&gt; Add to Source Control" in a project to get started.</value>
329+
</data>
318330
</root>

src/GitHub.VisualStudio/UI/Views/NotAGitHubRepositoryView.xaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
xmlns:local="clr-namespace:GitHub.VisualStudio.UI.Views"
77
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
88
xmlns:ui="clr-namespace:GitHub.UI;assembly=GitHub.UI"
9+
xmlns:prop="clr-namespace:GitHub.VisualStudio.UI;assembly=GitHub.VisualStudio.UI"
910
DataContext="{Binding ViewModel}"
1011
d:DesignHeight="300"
1112
d:DesignWidth="300"
@@ -32,12 +33,12 @@
3233
Foreground="{DynamicResource GitHubVsWindowText}"
3334
HorizontalAlignment="Center"
3435
FontSize="16"
35-
Content="This repository is not on GitHub" />
36+
Content="{x:Static prop:Resources.NotAGitHubRepository}" />
3637
<TextBlock
3738
TextWrapping="Wrap"
3839
TextAlignment="Center"
3940
HorizontalAlignment="Center"
40-
Text="Publish this repository to GitHub and get powerful collaboration, code review, and code management for open source and private projects." />
41+
Text="{x:Static prop:Resources.NotAGitHubRepositoryMessage}" />
4142
<Button HorizontalAlignment="Center"
4243
Margin="0,15"
4344
Style="{DynamicResource GitHubVsPrimaryActionButton}"

src/GitHub.VisualStudio/UI/Views/NotAGitRepositoryView.xaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
xmlns:local="clr-namespace:GitHub.VisualStudio.UI.Views"
77
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
88
xmlns:ui="clr-namespace:GitHub.UI;assembly=GitHub.UI"
9+
xmlns:prop="clr-namespace:GitHub.VisualStudio.UI;assembly=GitHub.VisualStudio.UI"
910
DataContext="{Binding ViewModel}"
1011
d:DesignHeight="300"
1112
d:DesignWidth="300"
@@ -32,14 +33,12 @@
3233
Foreground="{DynamicResource GitHubVsWindowText}"
3334
HorizontalAlignment="Center"
3435
FontSize="16"
35-
Content="No repository" />
36+
Content="{x:Static prop:Resources.NotAGitRepository}" />
3637
<TextBlock
3738
TextWrapping="Wrap"
3839
TextAlignment="Center"
39-
HorizontalAlignment="Center">
40-
We couldn't find a git repository here. Open a git project or click "File -> Add to Source Control"
41-
in a project to get started
42-
</TextBlock>
43-
</StackPanel>
40+
HorizontalAlignment="Center"
41+
Text="{x:Static prop:Resources.NotAGitRepositoryMessage}"/>
42+
</StackPanel>
4443
</DockPanel>
4544
</local:GenericNotAGitRepositoryView>

0 commit comments

Comments
 (0)