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

Commit 32e4df3

Browse files
committed
Add resource text for no "origin" message
1 parent 7348ae2 commit 32e4df3

File tree

4 files changed

+30
-8
lines changed

4 files changed

+30
-8
lines changed

src/GitHub.InlineReviews/Services/PullRequestStatusBarManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ void NoRemoteOriginCallout()
113113
}
114114

115115
var calloutId = Guids.NoRemoteOriginCalloutId;
116-
var title = "Can't find GitHub URL for repository";
117-
var message = $"Repositories must have a remote called `origin` defined in order to locate their GitHub URL.";
116+
var title = Resources.CantFindGitHubUrlForRepository;
117+
var message = Resources.RepositoriesMustHaveRemoteOrigin;
118118
var isDismissable = true;
119119
var commandSet = Guids.guidGitHubCmdSet;
120120
var commandId = (uint)PkgCmdIDList.showGitHubPaneCommand;

src/GitHub.Resources/Resources.Designer.cs

Lines changed: 18 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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,4 +836,10 @@ https://git-scm.com/download/win</value>
836836
<data name="YouHaveAlreadyClonedToThisLocation" xml:space="preserve">
837837
<value>You have already cloned to this location. Click 'Open' to open the local repository.</value>
838838
</data>
839+
<data name="CantFindGitHubUrlForRepository" xml:space="preserve">
840+
<value>Can't find GitHub URL for repository</value>
841+
</data>
842+
<data name="RepositoriesMustHaveRemoteOrigin" xml:space="preserve">
843+
<value>Repositories must have a remote called "origin" defined in order to locate their GitHub URL.</value>
844+
</data>
839845
</root>

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,13 @@
3030
Foreground="{DynamicResource GitHubVsWindowText}"
3131
HorizontalAlignment="Center"
3232
FontSize="16"
33-
Content="Can't find GitHub URL for repository" />
33+
Content="{x:Static ghfvs:Resources.CantFindGitHubUrlForRepository}" />
34+
3435
<TextBlock
36+
Text="{x:Static ghfvs:Resources.RepositoriesMustHaveRemoteOrigin}"
3537
TextWrapping="Wrap"
3638
TextAlignment="Center"
37-
HorizontalAlignment="Center">
38-
<Run Text="Repositories must have a remote named "/>
39-
<Run FontStyle="Italic" Text="origin"/>
40-
<Run Text=" in order to locate their GitHub URL."/>
41-
</TextBlock>
39+
HorizontalAlignment="Center" />
4240
</StackPanel>
4341
</DockPanel>
4442
</local:GenericNoRemoteOriginView>

0 commit comments

Comments
 (0)