Fix stack localization (#3455)

This commit is contained in:
AJCM-git
2021-02-28 20:02:03 -04:00
committed by GitHub
parent f3442845a6
commit 26378f3869
3 changed files with 13 additions and 10 deletions

View File

@@ -76,7 +76,7 @@ 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)));
}
}
}

View File

@@ -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")
)

View File

@@ -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.