Skip to content

Commit 3ab9cb7

Browse files
committed
I'm a shiitty speller. Its language NOT langauge!!
1 parent 3828d2b commit 3ab9cb7

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

src/WinPrint.Console/OutWinPrint.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ await Task.Run(() => ServiceLocator.Current.UpdateService.GetLatestVersionAsync(
478478
return;
479479
}
480480

481-
// If Langauge is provided, use it instead of CTE.
481+
// If Language is provided, use it instead of CTE.
482482
if (!MyInvocation.BoundParameters.TryGetValue("Language", out var contentType)) {
483483
if (!MyInvocation.BoundParameters.TryGetValue("ContentTypeEngine", out contentType)) {
484484
// If neither were specified, smartly pick CTE
@@ -530,7 +530,7 @@ await Task.Run(() => ServiceLocator.Current.UpdateService.GetLatestVersionAsync(
530530
Log.Information("FileName: {FileName}", FileName ?? "");
531531
Log.Information("Title: {title}", Title ?? "");
532532
Log.Information("Content Type: {contentType}", _print.SheetViewModel.ContentType);
533-
Log.Information("Langauge: {langauge}", _print.SheetViewModel.Language);
533+
Log.Information("Language: {Language}", _print.SheetViewModel.Language);
534534
Log.Information("Content Type Engine: {cte}", _print.SheetViewModel.ContentEngine.GetType().Name);
535535
Log.Information("Printer: {printer}", _print.PrintDocument.PrinterSettings.PrinterName);
536536
Log.Information("Paper Size: {size}", _print.PrintDocument.DefaultPageSettings.PaperSize.PaperName);

src/WinPrint.Console/WinPrint.Console.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<AssemblyName>winprint</AssemblyName>
1010
<StartupObject></StartupObject>
1111

12-
<Version>2.0.5.100</Version>
12+
<Version>2.0.5.102</Version>
1313
<Company>Kindel Systems</Company>
1414
<Product>winprint</Product>
1515
<Authors>Charlie Kindel</Authors>

src/WinPrint.Core/ContentTypeEngines/ContentTypeEngineBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public virtual async Task<int> RenderAsync(System.Drawing.Printing.PrinterResolu
135135
/// </summary>
136136
/// <param name="contentType"></param>
137137
/// <returns>ContentEngine, ContentType, Language</returns>
138-
public static (ContentTypeEngineBase cte, string languageId, string langauge) CreateContentTypeEngine(string contentType) {
138+
public static (ContentTypeEngineBase cte, string languageId, string Language) CreateContentTypeEngine(string contentType) {
139139
Debug.Assert(!string.IsNullOrEmpty(contentType));
140140
Debug.Assert(ModelLocator.Current.FileTypeMapping != null);
141141
Debug.Assert(ModelLocator.Current.FileTypeMapping.ContentTypes != null);
@@ -194,7 +194,7 @@ public static (ContentTypeEngineBase cte, string languageId, string langauge) Cr
194194
language = lang.Title;
195195
}
196196

197-
// Is it a language name found in a langauge alias? (ansi)
197+
// Is it a language name found in a Language alias? (ansi)
198198
lang = ModelLocator.Current.FileTypeMapping.ContentTypes
199199
.FirstOrDefault(l => l.Aliases
200200
.Where(i => CultureInfo.CurrentCulture.CompareInfo.Compare(i, contentType, CompareOptions.IgnoreCase) == 0).Count() > 0);
@@ -295,7 +295,7 @@ public static string GetContentType(string filePath) {
295295
// If not text or html, is it a language?
296296
//if (!contentType.Equals("text/plain") && !contentType.Equals("text/html")) {
297297
// // Technically, because we got the assocation from FilesAssocation, this should always work
298-
// if (!((List<Langauge>)ModelLocator.Current.Associations.Languages).Exists(lang => lang.Id == contentType))
298+
// if (!((List<Language>)ModelLocator.Current.Associations.Languages).Exists(lang => lang.Id == contentType))
299299
// contentType = "text/plain";
300300
//}
301301
return contentType;

src/WinPrint.Core/Models/Settings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public static Settings CreateDefaultSettings() {
223223
var defaultHFFontSize = 10F;
224224
var defaultHFFontStyle = FontStyle.Bold;
225225

226-
var defaultHeaderText = "{DateRevised:D}|{FileName}|Langauge: {Language}";
226+
var defaultHeaderText = "{DateRevised:D}|{FileName}|Language: {Language}";
227227
var defualtFooterText = "Printed with love by WinPrint||Page {Page} of {NumPages}";
228228

229229
var settings = new Settings {

src/WinPrint.Core/Services/FileTypeMappingService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public FileTypeMapping Load() {
4444
// Merge in any language defintions set in settings file
4545
var langs = new List<ContentType>(associations.ContentTypes);
4646
var langsSettings = new List<ContentType>(ModelLocator.Current.Settings.FileTypeMapping.ContentTypes);
47-
// TODO: overide Equals and GetHashCode for Langauge
47+
// TODO: overide Equals and GetHashCode for Language
4848
var result = langsSettings.Union(langs).ToList();
4949

5050
associations.ContentTypes = result;

src/WinPrint.Core/ViewModels/SheetViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public string Title {
7575
private string _title;
7676

7777
/// <summary>
78-
/// Content type (e.g. text/x-csharp). Langauge.Id
78+
/// Content type (e.g. text/x-csharp). Language.Id
7979
/// </summary>
8080
public string ContentType {
8181
get => _contentType;
@@ -84,7 +84,7 @@ public string ContentType {
8484
private string _contentType;
8585

8686
/// <summary>
87-
/// The langauge (Language.Title or Alias)
87+
/// The Language (Language.Title or Alias)
8888
/// </summary>
8989
public string Language {
9090
get => _language;

src/WinPrint.Core/WinPrint.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<PropertyGroup>
55
<TargetFramework>netcoreapp3.1</TargetFramework>
66
<Platforms>AnyCPU;x64;x86</Platforms>
7-
<Version>2.0.5.100</Version>
7+
<Version>2.0.5.102</Version>
88
<Company>Kindel Systems</Company>
99
<Product>winprint</Product>
1010
<Authors>Charlie Kindel</Authors>

src/WinPrint.WinForms/WinPrint.WinForms.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<AssemblyTitle>winprint GUI</AssemblyTitle>
1313
<AssemblyName>winprintgui</AssemblyName>
1414

15-
<Version>2.0.5.100</Version>
15+
<Version>2.0.5.102</Version>
1616
<Company>Kindel Systems</Company>
1717
<Product>winprint</Product>
1818
<Authors>Charlie Kindel</Authors>

tests/WinPrint.Core.UnitTests/Services/FileTypeMappingServiceTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void TestDefaultConfigFiletypeMappkng()
4545
}
4646

4747
[Fact]
48-
public void TestDefaultConfigLangauges()
48+
public void TestDefaultConfigLanguages()
4949
{
5050
ServiceLocator.Current.SettingsService.SettingsFileName = $"WinPrint.{GetType().Name}.json";
5151
File.Delete(ServiceLocator.Current.SettingsService.SettingsFileName);
@@ -82,7 +82,7 @@ public void TestDefaultConfigLangauges()
8282
}
8383

8484
[Fact]
85-
public void TestLangauges()
85+
public void TestLanguages()
8686
{
8787
ServiceLocator.Current.SettingsService.SettingsFileName = $"WinPrint.{GetType().Name}.json";
8888
File.Delete(ServiceLocator.Current.SettingsService.SettingsFileName);

0 commit comments

Comments
 (0)