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

Commit f755319

Browse files
committed
Move must have origin text to resource
Add RepositoriesMustHaveRemoteOriginHowToFix resource string. Add Margin="4" to TextBlocks to make them appear as paragraphs.
1 parent 9f328eb commit f755319

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

src/GitHub.Resources/Resources.Designer.cs

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

src/GitHub.Resources/Resources.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,4 +842,7 @@ https://git-scm.com/download/win</value>
842842
<data name="RepositoriesMustHaveRemoteOrigin" xml:space="preserve">
843843
<value>Repositories must have a remote called "origin" defined in order to locate their GitHub URL.</value>
844844
</data>
845+
<data name="RepositoriesMustHaveRemoteOriginHowToFix" xml:space="preserve">
846+
<value>Please rename one of your existing remotes to 'origin' or add a new remote named 'origin' and fetch. This can be done from the command line or by clicking the button below.</value>
847+
</data>
845848
</root>

src/GitHub.VisualStudio.UI/Views/GitHubPane/NoRemoteOriginView.xaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@
3636
Text="{x:Static ghfvs:Resources.RepositoriesMustHaveRemoteOrigin}"
3737
TextWrapping="Wrap"
3838
TextAlignment="Center"
39-
HorizontalAlignment="Center" />
39+
HorizontalAlignment="Center"
40+
Margin="4" />
4041

41-
<TextBlock
42-
Text="Please rename one of your existing remotes to 'origin' or add a new remote named 'origin' and fetch. This can be done from the command line or by clicking the button below."
42+
<TextBlock
43+
Text="{x:Static ghfvs:Resources.RepositoriesMustHaveRemoteOriginHowToFix}"
4344
TextWrapping="Wrap"
4445
TextAlignment="Center"
45-
HorizontalAlignment="Center" />
46+
HorizontalAlignment="Center"
47+
Margin="4" />
4648

4749
<Button HorizontalAlignment="Center"
4850
Margin="0,15"

0 commit comments

Comments
 (0)