Lathe and ghost role localization (#10251)

This commit is contained in:
Rinkashikachi
2022-08-02 16:40:53 +03:00
committed by GitHub
parent 78bb2ed5fc
commit ff930c33aa
8 changed files with 29 additions and 17 deletions

View File

@@ -39,7 +39,7 @@ namespace Content.Client.Lathe.UI
Owner = owner; 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 var vBox = new BoxContainer
{ {
@@ -58,21 +58,21 @@ namespace Content.Client.Lathe.UI
QueueButton = new Button() QueueButton = new Button()
{ {
Text = "Queue", Text = Loc.GetString("lathe-menu-queue"),
TextAlign = Label.AlignMode.Center, TextAlign = Label.AlignMode.Center,
SizeFlagsStretchRatio = 1, SizeFlagsStretchRatio = 1,
}; };
ServerConnectButton = new Button() ServerConnectButton = new Button()
{ {
Text = "Server list", Text = Loc.GetString("lathe-menu-server-list"),
TextAlign = Label.AlignMode.Center, TextAlign = Label.AlignMode.Center,
SizeFlagsStretchRatio = 1, SizeFlagsStretchRatio = 1,
}; };
ServerSyncButton = new Button() ServerSyncButton = new Button()
{ {
Text = "Sync", Text = Loc.GetString("lathe-menu-sync"),
TextAlign = Label.AlignMode.Center, TextAlign = Label.AlignMode.Center,
SizeFlagsStretchRatio = 1, SizeFlagsStretchRatio = 1,
}; };
@@ -93,7 +93,7 @@ namespace Content.Client.Lathe.UI
_searchBar = new LineEdit() _searchBar = new LineEdit()
{ {
PlaceHolder = "Search Designs", PlaceHolder = Loc.GetString("lathe-menu-search-designs"),
HorizontalExpand = true, HorizontalExpand = true,
SizeFlagsStretchRatio = 3 SizeFlagsStretchRatio = 3
}; };
@@ -102,7 +102,7 @@ namespace Content.Client.Lathe.UI
var filterButton = new Button() var filterButton = new Button()
{ {
Text = "Filter", Text = Loc.GetString("lathe-menu-search-filter"),
TextAlign = Label.AlignMode.Center, TextAlign = Label.AlignMode.Center,
SizeFlagsStretchRatio = 1, SizeFlagsStretchRatio = 1,
Disabled = true, Disabled = true,
@@ -127,7 +127,7 @@ namespace Content.Client.Lathe.UI
_amountLineEdit = new LineEdit() _amountLineEdit = new LineEdit()
{ {
PlaceHolder = "Amount", PlaceHolder = Loc.GetString("lathe-menu-search-amount"),
Text = "1", Text = "1",
HorizontalExpand = true, HorizontalExpand = true,
}; };

View File

@@ -23,7 +23,7 @@ namespace Content.Client.Lathe.UI
{ {
Owner = owner; Owner = owner;
SetSize = MinSize = (300, 450); SetSize = MinSize = (300, 450);
Title = Loc.GetString("lathequeue-menu-title"); Title = Loc.GetString("lathe-queue-menu-title");
var vBox = new BoxContainer var vBox = new BoxContainer
{ {
@@ -97,7 +97,7 @@ namespace Content.Client.Lathe.UI
{ {
_icon.Texture = Texture.Transparent; _icon.Texture = Texture.Transparent;
_nameLabel.Text = "-------"; _nameLabel.Text = "-------";
_description.Text = Loc.GetString("lathequeue-menu-not-producing-text"); _description.Text = Loc.GetString("lathe-queue-menu-not-producing-text");
} }
public void PopulateList() public void PopulateList()

View File

@@ -31,7 +31,7 @@ namespace Content.Server.Ghost.Roles.Components
[Access(typeof(GhostRoleSystem), Other = AccessPermissions.ReadWriteExecute)] // FIXME Friends [Access(typeof(GhostRoleSystem), Other = AccessPermissions.ReadWriteExecute)] // FIXME Friends
public string RoleName public string RoleName
{ {
get => _roleName; get => Loc.GetString(_roleName);
set set
{ {
_roleName = value; _roleName = value;
@@ -43,7 +43,7 @@ namespace Content.Server.Ghost.Roles.Components
[Access(typeof(GhostRoleSystem), Other = AccessPermissions.ReadWriteExecute)] // FIXME Friends [Access(typeof(GhostRoleSystem), Other = AccessPermissions.ReadWriteExecute)] // FIXME Friends
public string RoleDescription public string RoleDescription
{ {
get => _roleDescription; get => Loc.GetString(_roleDescription);
set set
{ {
_roleDescription = value; _roleDescription = value;

View File

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

View 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

View File

@@ -0,0 +1,2 @@
lathe-queue-menu-title = Lathe Queue
lathe-queue-menu-not-producing-text = Not producing anything.

View File

@@ -1,2 +0,0 @@
lathequeue-menu-title = Lathe Queue
lathequeue-menu-not-producing-text = Not producing anything.

View File

@@ -746,8 +746,8 @@
components: components:
- type: GhostTakeoverAvailable - type: GhostTakeoverAvailable
makeSentient: true makeSentient: true
name: mouse name: ghost-role-information-mouse-name
description: A hungry and mischievous mouse. description: ghost-role-information-mouse-description
- type: Speech - type: Speech
speechSounds: Squeak speechSounds: Squeak
- type: Sprite - type: Sprite
@@ -1326,8 +1326,8 @@
- UnarmedAttackHostiles - UnarmedAttackHostiles
- type: GhostTakeoverAvailable - type: GhostTakeoverAvailable
makeSentient: true makeSentient: true
name: giant spider name: ghost-role-information-giant-spider-name
description: Wreak havoc on the station's inhabitants! description: ghost-role-information-giant-spider-description
- type: entity - type: entity
name: possum name: possum