#4213 translation string fixes (#4217)

* #4213 some translation string fixes

* #4213 cargo localization string fixes

* #4213 more localization tweaks and fixes

* #4213 - fixed some translation string issues

* #4213 - fixed some translation string issues
This commit is contained in:
Galactic Chimp
2021-07-10 10:14:06 +02:00
committed by GitHub
parent 915a274ee0
commit 1b8fb8df1d
28 changed files with 47 additions and 43 deletions

View File

@@ -38,7 +38,7 @@ namespace Content.Client.AME.UI
{
Children =
{
new Label {Text = Loc.GetString("ame-window-engine-status-label")},
new Label {Text = Loc.GetString("ame-window-engine-status-label") + " "},
(InjectionStatus = new Label {Text = Loc.GetString("ame-window-engine-injection-status-not-injecting-label")})
}
},
@@ -53,7 +53,7 @@ namespace Content.Client.AME.UI
{
Children =
{
new Label {Text = Loc.GetString("ame-window-fuel-status-label")},
new Label {Text = Loc.GetString("ame-window-fuel-status-label") + " "},
(FuelAmount = new Label {Text = Loc.GetString("ame-window-fuel-not-inserted-text")})
}
},
@@ -68,7 +68,7 @@ namespace Content.Client.AME.UI
{
Children =
{
new Label {Text = Loc.GetString("ame-window-injection-amount-label")},
new Label {Text = Loc.GetString("ame-window-injection-amount-label") + " "},
(InjectionAmount = new Label {Text = "0"})
}
},
@@ -84,7 +84,7 @@ namespace Content.Client.AME.UI
{
Children =
{
new Label { Text = Loc.GetString("ame-window-core-count-label")},
new Label { Text = Loc.GetString("ame-window-core-count-label") + " "},
(CoreCount = new Label { Text = "0"}),
}
}
@@ -130,7 +130,7 @@ namespace Content.Client.AME.UI
EjectButton.Disabled = false;
}
if(!castState.HasFuelJar)
if (!castState.HasFuelJar)
{
EjectButton.Disabled = true;
ToggleInjection.Disabled = true;
@@ -143,18 +143,18 @@ namespace Content.Client.AME.UI
FuelAmount.Text = $"{castState.FuelAmount}";
}
if(!castState.IsMaster)
if (!castState.IsMaster)
{
ToggleInjection.Disabled = true;
}
if (!castState.Injecting)
{
InjectionStatus.Text = Loc.GetString("ame-window-engine-injection-status-not-injecting-label");
InjectionStatus.Text = Loc.GetString("ame-window-engine-injection-status-not-injecting-label") + " ";
}
else
{
InjectionStatus.Text = Loc.GetString("ame-window-engine-injection-status-injecting-label");
InjectionStatus.Text = Loc.GetString("ame-window-engine-injection-status-injecting-label") + " ";
}
CoreCount.Text = $"{castState.CoreCount}";

View File

@@ -87,7 +87,7 @@ namespace Content.Client.Actions.UI
}),
(_filterButton = new MultiselectOptionButton<string>()
{
Label = Loc.GetString("ui-actionmenu-filter-buttonr")
Label = Loc.GetString("ui-actionmenu-filter-button")
})
}
},

View File

@@ -27,12 +27,12 @@ namespace Content.Client.Cargo.UI
gridContainer.AddChild(requesterLabel);
gridContainer.AddChild(Requester);
var reasonLabel = new Label { Text = Loc.GetString("cargo-console-order-menu-reason-label:") };
var reasonLabel = new Label { Text = Loc.GetString("cargo-console-order-menu-reason-label") };
Reason = new LineEdit();
gridContainer.AddChild(reasonLabel);
gridContainer.AddChild(Reason);
var amountLabel = new Label { Text = Loc.GetString("cargo-console-order-menu-amount-label:") };
var amountLabel = new Label { Text = Loc.GetString("cargo-console-order-menu-amount-label") };
Amount = new SpinBox
{
HorizontalExpand = true,

View File

@@ -153,7 +153,7 @@ namespace Content.Client.Kitchen.UI
for (var i = 0; i < reagents.Count; i++)
{
var goodIndex = _prototypeManager.TryIndex(reagents[i].ReagentId, out ReagentPrototype? proto);
var reagentName = goodIndex ? Loc.GetString($"{reagents[i].Quantity} {proto!.Name}") : Loc.GetString("???");
var reagentName = goodIndex ? Loc.GetString($"{reagents[i].Quantity} {proto!.Name}") : "???";
var reagentAdded = _menu.BeakerContentBox.BoxContents.AddItem(reagentName);
var reagentIndex = _menu.BeakerContentBox.BoxContents.IndexOf(reagentAdded);
_beakerVisualContents.Add(reagentIndex, reagents[i]);

View File

@@ -91,7 +91,7 @@ namespace Content.Client.Lathe.UI
{
_icon.Texture = Texture.Transparent;
_nameLabel.Text = "-------";
_description.Text = "lathequeue-menu-not-producing-text";
_description.Text = Loc.GetString("lathequeue-menu-not-producing-text");
}
public void PopulateList()

View File

@@ -264,7 +264,7 @@ namespace Content.Client.Research.UI
_technologyIcon.Texture = TechnologySelected.Icon.Frame0();
_technologyName.Text = TechnologySelected.Name;
_technologyDescription.Text = TechnologySelected.Description + $"\n{TechnologySelected.RequiredPoints} " + Loc.GetString("research-console-menu-research-points-text").ToLowerInvariant();
_technologyDescription.Text = TechnologySelected.Description + $"\n{TechnologySelected.RequiredPoints} " + Loc.GetString("research-console-menu-research-points-text" ,("points", Owner.Points)).ToLowerInvariant();
_technologyRequirements.Text = Loc.GetString("research-console-tech-requirements-none");
var prototypeMan = IoCManager.Resolve<IPrototypeManager>();
@@ -286,7 +286,7 @@ namespace Content.Client.Research.UI
public void PopulatePoints()
{
_pointLabel.Text = Loc.GetString("research-console-menu-research-points-text", ("points", Owner.Points));
_pointsPerSecondLabel.Text = Loc.GetString("research-console-menu-points-per-second-text", ("pointsPerSeconds", Owner.PointsPerSecond));
_pointsPerSecondLabel.Text = Loc.GetString("research-console-menu-points-per-second-text", ("pointsPerSecond", Owner.PointsPerSecond));
}
/// <summary>