Fix stack localization (#3455)
This commit is contained in:
@@ -76,7 +76,7 @@ namespace Content.Client.GameObjects.Components
|
|||||||
|
|
||||||
_parent._uiUpdateNeeded = false;
|
_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,
|
300,
|
||||||
() => popupPos.PopupMessage(
|
() => popupPos.PopupMessage(
|
||||||
eventArgs.User,
|
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(
|
popupPos.PopupMessage(
|
||||||
eventArgs.User,
|
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(
|
message.AddMarkup(
|
||||||
Loc.GetString(
|
Loc.GetString(
|
||||||
"stack-component-examine-detail-count",
|
"comp-stack-examine-detail-count",
|
||||||
("count", Count),
|
("count", Count),
|
||||||
("markupCountColor", "lightgray")
|
("markupCountColor", "lightgray")
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -2,15 +2,18 @@
|
|||||||
### UI
|
### UI
|
||||||
|
|
||||||
# Shown when a stack is examined in details range
|
# 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
|
[one] There is [color={$markupCountColor}]{$count}[/color] thing
|
||||||
*[other] There are [color={$markupCountColor}]{$count}[/color] things
|
*[other] There are [color={$markupCountColor}]{$count}[/color] things
|
||||||
} in the stack.
|
} in the stack.
|
||||||
|
|
||||||
|
# Stack status control
|
||||||
|
comp-stack-status = Count: [color=white]{$count}[/color]
|
||||||
|
|
||||||
### Interaction Messages
|
### Interaction Messages
|
||||||
|
|
||||||
# Shown when attempting to add to a stack that is full
|
# 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
|
# Shown when a stack becomes full
|
||||||
stack-component-becomes-full = Stack is now full.
|
comp-stack-becomes-full = Stack is now full.
|
||||||
|
|||||||
Reference in New Issue
Block a user