mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Fix stack localization (#3455)
This commit is contained in:
parent
f3442845a6
commit
26378f3869
3 changed files with 13 additions and 10 deletions
|
|
@ -29,11 +29,11 @@ namespace Content.Client.GameObjects.Components
|
|||
{
|
||||
var valueChanged = value != Count;
|
||||
base.Count = value;
|
||||
|
||||
|
||||
if (valueChanged)
|
||||
{
|
||||
_appearanceComponent?.SetData(StackVisuals.Actual, Count);
|
||||
|
||||
|
||||
}
|
||||
|
||||
_uiUpdateNeeded = true;
|
||||
|
|
@ -76,8 +76,8 @@ namespace Content.Client.GameObjects.Components
|
|||
|
||||
_parent._uiUpdateNeeded = false;
|
||||
|
||||
_label.SetMarkup(Loc.GetString("Count: [color=white]{0}[/color]", _parent.Count));
|
||||
_label.SetMarkup(Loc.GetString("comp-stack-status", ("count", _parent.Count)));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ namespace Content.Server.GameObjects.Components.Stack
|
|||
300,
|
||||
() => popupPos.PopupMessage(
|
||||
eventArgs.User,
|
||||
Loc.GetString("stack-component-becomes-full")
|
||||
Loc.GetString("comp-stack-becomes-full")
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
@ -119,7 +119,7 @@ namespace Content.Server.GameObjects.Components.Stack
|
|||
{
|
||||
popupPos.PopupMessage(
|
||||
eventArgs.User,
|
||||
Loc.GetString("stack-component-already-full")
|
||||
Loc.GetString("comp-stack-already-full")
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -132,7 +132,7 @@ namespace Content.Server.GameObjects.Components.Stack
|
|||
{
|
||||
message.AddMarkup(
|
||||
Loc.GetString(
|
||||
"stack-component-examine-detail-count",
|
||||
"comp-stack-examine-detail-count",
|
||||
("count", Count),
|
||||
("markupCountColor", "lightgray")
|
||||
)
|
||||
|
|
|
|||
|
|
@ -2,15 +2,18 @@
|
|||
### UI
|
||||
|
||||
# Shown when a stack is examined in details range
|
||||
stack-component-examine-detail-count = {$count ->
|
||||
comp-stack-examine-detail-count = {$count ->
|
||||
[one] There is [color={$markupCountColor}]{$count}[/color] thing
|
||||
*[other] There are [color={$markupCountColor}]{$count}[/color] things
|
||||
} in the stack.
|
||||
|
||||
# Stack status control
|
||||
comp-stack-status = Count: [color=white]{$count}[/color]
|
||||
|
||||
### Interaction Messages
|
||||
|
||||
# Shown when attempting to add to a stack that is full
|
||||
stack-component-already-full = Stack is already full.
|
||||
comp-stack-already-full = Stack is already full.
|
||||
|
||||
# Shown when a stack becomes full
|
||||
stack-component-becomes-full = Stack is now full.
|
||||
comp-stack-becomes-full = Stack is now full.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue