Skip to content

Commit 110dcfe

Browse files
committed
Apply Punctuation.CreateSentence method to code
1 parent a5a73b7 commit 110dcfe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

GitAutoUpdateGUI/FormMain.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,9 +1486,9 @@ private void buttonAddGitBinaryToWinPath_Click(object sender, EventArgs e)
14861486
{
14871487
additionSuccessful = false;
14881488
Logger.Add(textBoxLog, Translate("There was a security error") +
1489-
Punctuation.Comma + Punctuation.OneSpace +
1490-
Translate("probably lack of rights") +
1491-
Punctuation.Colon + Punctuation.OneSpace +
1489+
Punctuation.CreateSentence(Punctuation.Comma, Punctuation.OneSpace,
1490+
Translate("probably lack of rights"),
1491+
Punctuation.Colon, Punctuation.OneSpace) +
14921492
securityException.Message);
14931493
}
14941494
catch (Exception exception)
@@ -1501,7 +1501,7 @@ private void buttonAddGitBinaryToWinPath_Click(object sender, EventArgs e)
15011501
if (additionSuccessful)
15021502
{
15031503
string message = Translate("The following path") + Punctuation.Colon + Punctuation.CrLf +
1504-
textBoxGitBashBinariesPath.Text.Substring(0, textBoxGitBashBinariesPath.Text.Length - 8) +
1504+
textBoxGitBashBinariesPath.Text.Substring(0, textBoxGitBashBinariesPath.Text.Length - 8) +
15051505
Punctuation.CrLf + Translate("has been added to the Windows Path variable") +
15061506
Punctuation.CrLf + Translate("YOU HAVE TO REBOOT YOUR PC FOR THE VARIABLE TO BE TAKEN INTO EFFECT");
15071507
Logger.Add(textBoxLog, message);
@@ -1510,7 +1510,7 @@ private void buttonAddGitBinaryToWinPath_Click(object sender, EventArgs e)
15101510
else
15111511
{
15121512
string message = Translate("The following path") + Punctuation.Colon + Punctuation.CrLf +
1513-
textBoxGitBashBinariesPath.Text.Substring(0, textBoxGitBashBinariesPath.Text.Length - 8) +
1513+
textBoxGitBashBinariesPath.Text.Substring(0, textBoxGitBashBinariesPath.Text.Length - 8) +
15141514
Punctuation.CrLf + Translate("has not been added to the Windows Path variable") +
15151515
Punctuation.CrLf + Translate("Check with the developer");
15161516
Logger.Add(textBoxLog, message);

0 commit comments

Comments
 (0)