Skip to content

Commit

Permalink
Fix typo: Carrage -> Carriage
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 committed May 11, 2021
1 parent a2145fe commit a8cf503
Show file tree
Hide file tree
Showing 15 changed files with 90 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public IEnumSettingViewModel CreateViewModel(FormattingSetting setting)
internal enum NewLineSetting
{
Newline,
CarrageReturn,
CarrageReturnNewline,
CarriageReturn,
CarriageReturnNewline,
NotSet
}

Expand All @@ -59,10 +59,10 @@ protected override void ChangePropertyTo(NewLineSetting newValue)
case NewLineSetting.Newline:
_setting.SetValue("\n");
break;
case NewLineSetting.CarrageReturn:
case NewLineSetting.CarriageReturn:
_setting.SetValue("\r");
break;
case NewLineSetting.CarrageReturnNewline:
case NewLineSetting.CarriageReturnNewline:
_setting.SetValue("\r\n");
break;
case NewLineSetting.NotSet:
Expand All @@ -76,8 +76,8 @@ protected override NewLineSetting GetCurrentValue()
return _setting.GetValue() switch
{
"\n" => NewLineSetting.Newline,
"\r" => NewLineSetting.CarrageReturn,
"\r\n" => NewLineSetting.CarrageReturnNewline,
"\r" => NewLineSetting.CarriageReturn,
"\r\n" => NewLineSetting.CarriageReturnNewline,
_ => NewLineSetting.NotSet,
};
}
Expand All @@ -89,8 +89,8 @@ protected override IReadOnlyDictionary<string, NewLineSetting> GetValuesAndDescr
static IEnumerable<(string description, NewLineSetting value)> EnumerateOptions()
{
yield return (ServicesVSResources.Newline_n, NewLineSetting.Newline);
yield return (ServicesVSResources.Carrage_Return_r, NewLineSetting.CarrageReturn);
yield return (ServicesVSResources.Carrage_Return_Newline_rn, NewLineSetting.CarrageReturnNewline);
yield return (ServicesVSResources.Carriage_Return_r, NewLineSetting.CarriageReturn);
yield return (ServicesVSResources.Carriage_Return_Newline_rn, NewLineSetting.CarriageReturnNewline);
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/VisualStudio/Core/Def/ServicesVSResources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1662,11 +1662,11 @@ I agree to all of the foregoing:</value>
<data name="Analyzers" xml:space="preserve">
<value>Analyzers</value>
</data>
<data name="Carrage_Return_Newline_rn" xml:space="preserve">
<value>Carrage Return + Newline (\\r\\n)</value>
<data name="Carriage_Return_Newline_rn" xml:space="preserve">
<value>Carriage Return + Newline (\r\n)</value>
</data>
<data name="Carrage_Return_r" xml:space="preserve">
<value>Carrage Return (\\r)</value>
<data name="Carriage_Return_r" xml:space="preserve">
<value>Carriage Return (\r)</value>
</data>
<data name="Category" xml:space="preserve">
<value>Category</value>
Expand Down
12 changes: 6 additions & 6 deletions src/VisualStudio/Core/Def/xlf/ServicesVSResources.cs.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/VisualStudio/Core/Def/xlf/ServicesVSResources.de.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/VisualStudio/Core/Def/xlf/ServicesVSResources.es.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/VisualStudio/Core/Def/xlf/ServicesVSResources.fr.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/VisualStudio/Core/Def/xlf/ServicesVSResources.it.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/VisualStudio/Core/Def/xlf/ServicesVSResources.ja.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/VisualStudio/Core/Def/xlf/ServicesVSResources.ko.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/VisualStudio/Core/Def/xlf/ServicesVSResources.pl.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/VisualStudio/Core/Def/xlf/ServicesVSResources.pt-BR.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/VisualStudio/Core/Def/xlf/ServicesVSResources.ru.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/VisualStudio/Core/Def/xlf/ServicesVSResources.tr.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hans.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hant.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a8cf503

Please sign in to comment.