From 53e9f4497218095880f4c9e79d6510ac1514ba3a Mon Sep 17 00:00:00 2001 From: RoosterDragon Date: Thu, 2 Mar 2023 17:06:48 +0000 Subject: [PATCH] Spelling fixes --- OpenRA.Game/Map/MapCache.cs | 2 +- OpenRA.Game/Scripting/ScriptMemberWrapper.cs | 2 +- OpenRA.Game/Settings.cs | 2 +- OpenRA.Game/WRot.cs | 2 +- OpenRA.Mods.Common/Scripting/Properties/CaptureProperties.cs | 2 +- OpenRA.Mods.Common/Traits/Air/Aircraft.cs | 2 +- OpenRA.Mods.Common/Traits/Harvester.cs | 2 +- OpenRA.Mods.Common/Traits/World/LegacyBridgeLayer.cs | 2 +- OpenRA.Mods.Common/Traits/World/ShroudRenderer.cs | 4 ++-- .../UpdateRules/Rules/20210321/RenameContrailProperties.cs | 2 +- OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs | 2 +- mods/common/languages/en.ftl | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/OpenRA.Game/Map/MapCache.cs b/OpenRA.Game/Map/MapCache.cs index 984afa5c4b..0f04e4dfae 100644 --- a/OpenRA.Game/Map/MapCache.cs +++ b/OpenRA.Game/Map/MapCache.cs @@ -43,7 +43,7 @@ namespace OpenRA readonly List mapDirectoryTrackers = new List(); /// - /// The most recenly modified or loaded map at runtime + /// The most recently modified or loaded map at runtime /// public string LastModifiedMap { get; private set; } = null; readonly Dictionary mapUpdates = new Dictionary(); diff --git a/OpenRA.Game/Scripting/ScriptMemberWrapper.cs b/OpenRA.Game/Scripting/ScriptMemberWrapper.cs index 5ed04ea0df..b8ffb652a1 100644 --- a/OpenRA.Game/Scripting/ScriptMemberWrapper.cs +++ b/OpenRA.Game/Scripting/ScriptMemberWrapper.cs @@ -114,7 +114,7 @@ namespace OpenRA.Scripting { var pi = (PropertyInfo)Member; if (!value.TryGetClrValue(pi.PropertyType, out var clrValue)) - throw new LuaException($"Unable to convert '{value.WrappedClrType().Name}' to Clr type '{pi.PropertyType}'"); + throw new LuaException($"Unable to convert '{value.WrappedClrType().Name}' to CLR type '{pi.PropertyType}'"); pi.SetValue(Target, clrValue, null); } diff --git a/OpenRA.Game/Settings.cs b/OpenRA.Game/Settings.cs index 933fc259bd..008a00a677 100644 --- a/OpenRA.Game/Settings.cs +++ b/OpenRA.Game/Settings.cs @@ -105,7 +105,7 @@ namespace OpenRA [Desc("Delay in milliseconds before newly joined players can send chat messages.")] public int FloodLimitJoinCooldown = 5000; - [Desc("Amount of miliseconds player chat messages are tracked for.")] + [Desc("Amount of milliseconds player chat messages are tracked for.")] public int FloodLimitInterval = 5000; [Desc("Amount of chat messages per FloodLimitInterval a players can send before flood is detected.")] diff --git a/OpenRA.Game/WRot.cs b/OpenRA.Game/WRot.cs index c0aae12777..656067cf32 100644 --- a/OpenRA.Game/WRot.cs +++ b/OpenRA.Game/WRot.cs @@ -25,7 +25,7 @@ namespace OpenRA readonly int x, y, z, w; /// - /// Construct a rotation from euler angles. + /// Construct a rotation from Euler angles. /// public WRot(WAngle roll, WAngle pitch, WAngle yaw) { diff --git a/OpenRA.Mods.Common/Scripting/Properties/CaptureProperties.cs b/OpenRA.Mods.Common/Scripting/Properties/CaptureProperties.cs index fc6c09262e..f8b3f40f60 100644 --- a/OpenRA.Mods.Common/Scripting/Properties/CaptureProperties.cs +++ b/OpenRA.Mods.Common/Scripting/Properties/CaptureProperties.cs @@ -37,7 +37,7 @@ namespace OpenRA.Mods.Common.Scripting Self.QueueActivity(new CaptureActor(Self, Target.FromActor(target), null)); } - [Desc("Checks if the target actor can be catured.")] + [Desc("Checks if the target actor can be captured.")] public bool CanCapture(Actor target) { var targetManager = target.TraitOrDefault(); diff --git a/OpenRA.Mods.Common/Traits/Air/Aircraft.cs b/OpenRA.Mods.Common/Traits/Air/Aircraft.cs index 2ae17ae0ed..3a71e3b4c5 100644 --- a/OpenRA.Mods.Common/Traits/Air/Aircraft.cs +++ b/OpenRA.Mods.Common/Traits/Air/Aircraft.cs @@ -804,7 +804,7 @@ namespace OpenRA.Mods.Common.Traits var altitude = self.World.Map.DistanceAboveTerrain(CenterPosition); // LandingCells define OccupiedCells, so we need to keep current position with LandindCells in sync. - // Though we don't want to update LandingCells when the unit is airborn, as when non-VTOL units reserve + // Though we don't want to update LandingCells when the unit is airborne, as when non-VTOL units reserve // their landing position it is expected for their landing cell to not match their current position. if (HasInfluence() && altitude.Length <= Info.MinAirborneAltitude) { diff --git a/OpenRA.Mods.Common/Traits/Harvester.cs b/OpenRA.Mods.Common/Traits/Harvester.cs index d4b3f9cf1f..2ce17433b4 100644 --- a/OpenRA.Mods.Common/Traits/Harvester.cs +++ b/OpenRA.Mods.Common/Traits/Harvester.cs @@ -35,7 +35,7 @@ namespace OpenRA.Mods.Common.Traits public readonly int BaleLoadDelay = 4; - [Desc("How fast it can dump it's carryage.")] + [Desc("How fast it can dump its bales.")] public readonly int BaleUnloadDelay = 4; [Desc("How many bales can it dump at once.")] diff --git a/OpenRA.Mods.Common/Traits/World/LegacyBridgeLayer.cs b/OpenRA.Mods.Common/Traits/World/LegacyBridgeLayer.cs index c32c3f7861..164aa8cf25 100644 --- a/OpenRA.Mods.Common/Traits/World/LegacyBridgeLayer.cs +++ b/OpenRA.Mods.Common/Traits/World/LegacyBridgeLayer.cs @@ -48,7 +48,7 @@ namespace OpenRA.Mods.Common.Traits { bridges = new CellLayer(w.Map); - // Build a list of templates that should be overlayed with bridges + // Build a list of templates that should be overlaid with bridges foreach (var bridge in info.Bridges) { var bi = w.Map.Rules.Actors[bridge].TraitInfo(); diff --git a/OpenRA.Mods.Common/Traits/World/ShroudRenderer.cs b/OpenRA.Mods.Common/Traits/World/ShroudRenderer.cs index 8bd5751b69..3da9454e90 100644 --- a/OpenRA.Mods.Common/Traits/World/ShroudRenderer.cs +++ b/OpenRA.Mods.Common/Traits/World/ShroudRenderer.cs @@ -279,13 +279,13 @@ namespace OpenRA.Mods.Common.Traits { var cv = cellVisibility(puv); - // If a cell is covered by shroud, then all neigbhors are covered by shroud and fog. + // If a cell is covered by shroud, then all neighbors are covered by shroud and fog. if (!cv.HasFlag(Shroud.CellVisibility.Explored)) return notVisibleEdgesPair; var ncv = GetNeighborsVisbility(puv); - // If a cell is covered by fog, then all neigbhors are as well. + // If a cell is covered by fog, then all neighbors are as well. var edgesFog = cv.HasFlag(Shroud.CellVisibility.Visible) ? GetEdges(ncv, Shroud.CellVisibility.Visible) : notVisibleEdgesPair.Item2; var edgesShroud = GetEdges(ncv, Shroud.CellVisibility.Explored); diff --git a/OpenRA.Mods.Common/UpdateRules/Rules/20210321/RenameContrailProperties.cs b/OpenRA.Mods.Common/UpdateRules/Rules/20210321/RenameContrailProperties.cs index a50bdbc597..91c2e90883 100644 --- a/OpenRA.Mods.Common/UpdateRules/Rules/20210321/RenameContrailProperties.cs +++ b/OpenRA.Mods.Common/UpdateRules/Rules/20210321/RenameContrailProperties.cs @@ -18,7 +18,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules { public override string Name => "Rename contrail color properties"; - public override string Description => "Rename contrail color properties `Color` to `StartColor` and `UsePlayerColor` to `StartColorUsePlayerColor` in traits and weapons to acount for added `EndColor` functionality"; + public override string Description => "Rename contrail color properties `Color` to `StartColor` and `UsePlayerColor` to `StartColorUsePlayerColor` in traits and weapons to account for added `EndColor` functionality"; public override IEnumerable UpdateActorNode(ModData modData, MiniYamlNode actorNode) { diff --git a/OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs index f8c8b5bf87..bfb40e2ff0 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs @@ -26,7 +26,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic const string LoadingNews = "label-loading-news"; [TranslationReference("message")] - const string NewsRetrivalFailed = "label-news-retrival-failed"; + const string NewsRetrivalFailed = "label-news-retrieval-failed"; [TranslationReference("message")] const string NewsParsingFailed = "label-news-parsing-failed"; diff --git a/mods/common/languages/en.ftl b/mods/common/languages/en.ftl index 978a699666..6032da6c23 100644 --- a/mods/common/languages/en.ftl +++ b/mods/common/languages/en.ftl @@ -431,7 +431,7 @@ dialog-overwrite-save = ## MainMenuLogic label-loading-news = Loading news -label-news-retrival-failed = Failed to retrieve news: { $message } +label-news-retrieval-failed = Failed to retrieve news: { $message } label-news-parsing-failed = Failed to parse news: { $message } ## MapChooserLogic