Lathe and ghost role localization (#10251)
This commit is contained in:
@@ -39,7 +39,7 @@ namespace Content.Client.Lathe.UI
|
||||
|
||||
Owner = owner;
|
||||
|
||||
Title = "Lathe Menu"; // TODO Replace this with the name of the lathe itself
|
||||
Title = Loc.GetString("lathe-menu-title"); // TODO Replace this with the name of the lathe itself
|
||||
|
||||
var vBox = new BoxContainer
|
||||
{
|
||||
@@ -58,21 +58,21 @@ namespace Content.Client.Lathe.UI
|
||||
|
||||
QueueButton = new Button()
|
||||
{
|
||||
Text = "Queue",
|
||||
Text = Loc.GetString("lathe-menu-queue"),
|
||||
TextAlign = Label.AlignMode.Center,
|
||||
SizeFlagsStretchRatio = 1,
|
||||
};
|
||||
|
||||
ServerConnectButton = new Button()
|
||||
{
|
||||
Text = "Server list",
|
||||
Text = Loc.GetString("lathe-menu-server-list"),
|
||||
TextAlign = Label.AlignMode.Center,
|
||||
SizeFlagsStretchRatio = 1,
|
||||
};
|
||||
|
||||
ServerSyncButton = new Button()
|
||||
{
|
||||
Text = "Sync",
|
||||
Text = Loc.GetString("lathe-menu-sync"),
|
||||
TextAlign = Label.AlignMode.Center,
|
||||
SizeFlagsStretchRatio = 1,
|
||||
};
|
||||
@@ -93,7 +93,7 @@ namespace Content.Client.Lathe.UI
|
||||
|
||||
_searchBar = new LineEdit()
|
||||
{
|
||||
PlaceHolder = "Search Designs",
|
||||
PlaceHolder = Loc.GetString("lathe-menu-search-designs"),
|
||||
HorizontalExpand = true,
|
||||
SizeFlagsStretchRatio = 3
|
||||
};
|
||||
@@ -102,7 +102,7 @@ namespace Content.Client.Lathe.UI
|
||||
|
||||
var filterButton = new Button()
|
||||
{
|
||||
Text = "Filter",
|
||||
Text = Loc.GetString("lathe-menu-search-filter"),
|
||||
TextAlign = Label.AlignMode.Center,
|
||||
SizeFlagsStretchRatio = 1,
|
||||
Disabled = true,
|
||||
@@ -127,7 +127,7 @@ namespace Content.Client.Lathe.UI
|
||||
|
||||
_amountLineEdit = new LineEdit()
|
||||
{
|
||||
PlaceHolder = "Amount",
|
||||
PlaceHolder = Loc.GetString("lathe-menu-search-amount"),
|
||||
Text = "1",
|
||||
HorizontalExpand = true,
|
||||
};
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace Content.Client.Lathe.UI
|
||||
{
|
||||
Owner = owner;
|
||||
SetSize = MinSize = (300, 450);
|
||||
Title = Loc.GetString("lathequeue-menu-title");
|
||||
Title = Loc.GetString("lathe-queue-menu-title");
|
||||
|
||||
var vBox = new BoxContainer
|
||||
{
|
||||
@@ -97,7 +97,7 @@ namespace Content.Client.Lathe.UI
|
||||
{
|
||||
_icon.Texture = Texture.Transparent;
|
||||
_nameLabel.Text = "-------";
|
||||
_description.Text = Loc.GetString("lathequeue-menu-not-producing-text");
|
||||
_description.Text = Loc.GetString("lathe-queue-menu-not-producing-text");
|
||||
}
|
||||
|
||||
public void PopulateList()
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Content.Server.Ghost.Roles.Components
|
||||
[Access(typeof(GhostRoleSystem), Other = AccessPermissions.ReadWriteExecute)] // FIXME Friends
|
||||
public string RoleName
|
||||
{
|
||||
get => _roleName;
|
||||
get => Loc.GetString(_roleName);
|
||||
set
|
||||
{
|
||||
_roleName = value;
|
||||
@@ -43,7 +43,7 @@ namespace Content.Server.Ghost.Roles.Components
|
||||
[Access(typeof(GhostRoleSystem), Other = AccessPermissions.ReadWriteExecute)] // FIXME Friends
|
||||
public string RoleDescription
|
||||
{
|
||||
get => _roleDescription;
|
||||
get => Loc.GetString(_roleDescription);
|
||||
set
|
||||
{
|
||||
_roleDescription = value;
|
||||
|
||||
@@ -3,3 +3,8 @@ ghost-role-component-default-rules = You don't remember any of your previous lif
|
||||
You are allowed to remember knowledge about the game in general, such as how to cook, how to use objects, etc.
|
||||
You are absolutely [color=red]NOT[/color] allowed to remember, say, the name, appearance, etc. of your previous character.
|
||||
|
||||
ghost-role-information-mouse-name = Mouse
|
||||
ghost-role-information-mouse-description = A hungry and mischievous mouse.
|
||||
|
||||
ghost-role-information-giant-spider-name = Giant spider
|
||||
ghost-role-information-giant-spider-description = Wreak havoc on the station's inhabitants!
|
||||
|
||||
7
Resources/Locale/en-US/lathe/ui/lathe-menu.ftl
Normal file
7
Resources/Locale/en-US/lathe/ui/lathe-menu.ftl
Normal file
@@ -0,0 +1,7 @@
|
||||
lathe-menu-title = Lathe Menu
|
||||
lathe-menu-queue = Queue
|
||||
lathe-menu-server-list = Server list
|
||||
lathe-menu-sync = Sync
|
||||
lathe-menu-search-designs = Search designs
|
||||
lathe-menu-search-filter = Filter
|
||||
lathe-menu-search-amount = Amount
|
||||
2
Resources/Locale/en-US/lathe/ui/lathe-queue-menu.ftl
Normal file
2
Resources/Locale/en-US/lathe/ui/lathe-queue-menu.ftl
Normal file
@@ -0,0 +1,2 @@
|
||||
lathe-queue-menu-title = Lathe Queue
|
||||
lathe-queue-menu-not-producing-text = Not producing anything.
|
||||
@@ -1,2 +0,0 @@
|
||||
lathequeue-menu-title = Lathe Queue
|
||||
lathequeue-menu-not-producing-text = Not producing anything.
|
||||
@@ -746,8 +746,8 @@
|
||||
components:
|
||||
- type: GhostTakeoverAvailable
|
||||
makeSentient: true
|
||||
name: mouse
|
||||
description: A hungry and mischievous mouse.
|
||||
name: ghost-role-information-mouse-name
|
||||
description: ghost-role-information-mouse-description
|
||||
- type: Speech
|
||||
speechSounds: Squeak
|
||||
- type: Sprite
|
||||
@@ -1326,8 +1326,8 @@
|
||||
- UnarmedAttackHostiles
|
||||
- type: GhostTakeoverAvailable
|
||||
makeSentient: true
|
||||
name: giant spider
|
||||
description: Wreak havoc on the station's inhabitants!
|
||||
name: ghost-role-information-giant-spider-name
|
||||
description: ghost-role-information-giant-spider-description
|
||||
|
||||
- type: entity
|
||||
name: possum
|
||||
|
||||
Reference in New Issue
Block a user