From 61378038914b63ecfee2d3ec4f5276479560e189 Mon Sep 17 00:00:00 2001
From: Rinkashikachi <15rinkashikachi15@gmail.com>
Date: Sat, 23 Jul 2022 21:44:45 +0300
Subject: [PATCH] Various localization fixes (#9860)
---
.../Administration/UI/AdminAnnounceWindow.xaml | 8 ++++----
.../UI/AdminAnnounceWindow.xaml.cs | 4 ++--
.../UI/Tabs/AdminTab/AdminTab.xaml | 16 ++++++++--------
.../UI/CommunicationsConsoleMenu.cs | 2 +-
.../UI/SignalPortSelectorMenu.xaml | 6 +++---
.../administration/ui/admin-announce-window.ftl | 10 ++++++----
.../ui/tabs/admin-tab/player-actions-window.ftl | 8 ++++++++
.../communications-console-component.ftl | 1 +
.../en-US/machine-linking/port-selector.ftl | 3 +++
Resources/Prototypes/Access/cargo.yml | 3 +++
Resources/Prototypes/Access/command.yml | 2 ++
Resources/Prototypes/Access/engineering.yml | 4 +++-
Resources/Prototypes/Access/external.yml | 3 ++-
Resources/Prototypes/Access/maintenance.yml | 1 +
Resources/Prototypes/Access/medical.yml | 2 ++
Resources/Prototypes/Access/research.yml | 1 +
Resources/Prototypes/Access/security.yml | 3 +++
Resources/Prototypes/Access/service.yml | 7 +++++++
Resources/Prototypes/Recipes/Lathes/tools.yml | 3 ---
19 files changed, 60 insertions(+), 27 deletions(-)
create mode 100644 Resources/Locale/en-US/machine-linking/port-selector.ftl
diff --git a/Content.Client/Administration/UI/AdminAnnounceWindow.xaml b/Content.Client/Administration/UI/AdminAnnounceWindow.xaml
index bb5c29bc78..a703a7f5e6 100644
--- a/Content.Client/Administration/UI/AdminAnnounceWindow.xaml
+++ b/Content.Client/Administration/UI/AdminAnnounceWindow.xaml
@@ -1,15 +1,15 @@
-
+
-
+
-
+
diff --git a/Content.Client/Administration/UI/AdminAnnounceWindow.xaml.cs b/Content.Client/Administration/UI/AdminAnnounceWindow.xaml.cs
index 0cc0a8f61b..653a9c2a98 100644
--- a/Content.Client/Administration/UI/AdminAnnounceWindow.xaml.cs
+++ b/Content.Client/Administration/UI/AdminAnnounceWindow.xaml.cs
@@ -19,9 +19,9 @@ namespace Content.Client.Administration.UI
RobustXamlLoader.Load(this);
IoCManager.InjectDependencies(this);
- AnnounceMethod.AddItem(_localization.GetString("announce-type-station"));
+ AnnounceMethod.AddItem(_localization.GetString("admin-announce-type-station"));
AnnounceMethod.SetItemMetadata(0, AdminAnnounceType.Station);
- AnnounceMethod.AddItem(_localization.GetString("announce-type-server"));
+ AnnounceMethod.AddItem(_localization.GetString("admin-announce-type-server"));
AnnounceMethod.SetItemMetadata(1, AdminAnnounceType.Server);
AnnounceMethod.OnItemSelected += AnnounceMethodOnOnItemSelected;
Announcement.OnTextChanged += AnnouncementOnOnTextChanged;
diff --git a/Content.Client/Administration/UI/Tabs/AdminTab/AdminTab.xaml b/Content.Client/Administration/UI/Tabs/AdminTab/AdminTab.xaml
index 21acf47204..2d643c9f7c 100644
--- a/Content.Client/Administration/UI/Tabs/AdminTab/AdminTab.xaml
+++ b/Content.Client/Administration/UI/Tabs/AdminTab/AdminTab.xaml
@@ -8,14 +8,14 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/Content.Client/Communications/UI/CommunicationsConsoleMenu.cs b/Content.Client/Communications/UI/CommunicationsConsoleMenu.cs
index c0781f2fd8..293ab3ba5e 100644
--- a/Content.Client/Communications/UI/CommunicationsConsoleMenu.cs
+++ b/Content.Client/Communications/UI/CommunicationsConsoleMenu.cs
@@ -35,7 +35,7 @@ namespace Content.Client.Communications.UI
SizeFlagsStretchRatio = 1
};
AnnounceButton = new Button();
- AnnounceButton.Text = "Announce";
+ AnnounceButton.Text = Loc.GetString("comms-console-menu-announcement-button");
AnnounceButton.OnPressed += (_) => Owner.AnnounceButtonPressed(_messageInput.Text.Trim());
AnnounceButton.Disabled = !owner.CanAnnounce;
diff --git a/Content.Client/MachineLinking/UI/SignalPortSelectorMenu.xaml b/Content.Client/MachineLinking/UI/SignalPortSelectorMenu.xaml
index 125f360cbb..d01a01cadf 100644
--- a/Content.Client/MachineLinking/UI/SignalPortSelectorMenu.xaml
+++ b/Content.Client/MachineLinking/UI/SignalPortSelectorMenu.xaml
@@ -1,4 +1,4 @@
-
+
@@ -12,8 +12,8 @@
-
-
+
+
diff --git a/Resources/Locale/en-US/administration/ui/admin-announce-window.ftl b/Resources/Locale/en-US/administration/ui/admin-announce-window.ftl
index 3f386a966a..4656fbd2d4 100644
--- a/Resources/Locale/en-US/administration/ui/admin-announce-window.ftl
+++ b/Resources/Locale/en-US/administration/ui/admin-announce-window.ftl
@@ -1,5 +1,7 @@
admin-announce-title = Make Announcement
-announcer-placeholder = Announcer
-announcement-placeholder = Announcement text
-announce-type-station = Station
-announce-type-server = Server
+admin-announce-announcement-placeholder = Announcement text
+admin-announce-announcer-placeholder = Announcer
+admin-announce-announcer-default = Central Command
+admin-announce-button = Announce
+admin-announce-type-station = Station
+admin-announce-type-server = Server
diff --git a/Resources/Locale/en-US/administration/ui/tabs/admin-tab/player-actions-window.ftl b/Resources/Locale/en-US/administration/ui/tabs/admin-tab/player-actions-window.ftl
index 1a0c310b40..a03677a4b0 100644
--- a/Resources/Locale/en-US/administration/ui/tabs/admin-tab/player-actions-window.ftl
+++ b/Resources/Locale/en-US/administration/ui/tabs/admin-tab/player-actions-window.ftl
@@ -1 +1,9 @@
admin-player-actions-window-title = Player Actions Panel
+admin-player-actions-window-ban = Ban
+admin-player-actions-window-admin-ghost = Admin Ghost
+admin-player-actions-window-teleport = Teleport
+admin-player-actions-window-permissions = Permissions Panel
+admin-player-actions-window-announce = Announce
+admin-player-actions-window-shuttle = (Re)call Shuttle
+admin-player-actions-window-admin-logs = Admin Logs
+admin-player-actions-window-admin-notes = Admin Notes
diff --git a/Resources/Locale/en-US/communications/communications-console-component.ftl b/Resources/Locale/en-US/communications/communications-console-component.ftl
index 71867bc3de..1ff0a9a891 100644
--- a/Resources/Locale/en-US/communications/communications-console-component.ftl
+++ b/Resources/Locale/en-US/communications/communications-console-component.ftl
@@ -1,6 +1,7 @@
# User interface
comms-console-menu-title = Communications Console
comms-console-menu-announcement-placeholder = Announcement
+comms-console-menu-announcement-button = Announce
comms-console-menu-call-shuttle = Call emergency shuttle
comms-console-menu-recall-shuttle = Recall emergency shuttle
diff --git a/Resources/Locale/en-US/machine-linking/port-selector.ftl b/Resources/Locale/en-US/machine-linking/port-selector.ftl
new file mode 100644
index 0000000000..606ba33220
--- /dev/null
+++ b/Resources/Locale/en-US/machine-linking/port-selector.ftl
@@ -0,0 +1,3 @@
+signal-port-selector-menu-title = Port Selector
+signal-port-selector-menu-clear = Clear
+signal-port-selector-menu-link-defaults = Link defaults
diff --git a/Resources/Prototypes/Access/cargo.yml b/Resources/Prototypes/Access/cargo.yml
index 7820f705f5..f99e61d36b 100644
--- a/Resources/Prototypes/Access/cargo.yml
+++ b/Resources/Prototypes/Access/cargo.yml
@@ -1,11 +1,14 @@
- type: accessLevel
id: Quartermaster
+ name: Quartermaster
- type: accessLevel
id: Cargo
+ name: Cargo
- type: accessLevel
id: Salvage
+ name: Salvage
- type: accessGroup
id: Cargo
diff --git a/Resources/Prototypes/Access/command.yml b/Resources/Prototypes/Access/command.yml
index 016801e03f..d7f98b2b44 100644
--- a/Resources/Prototypes/Access/command.yml
+++ b/Resources/Prototypes/Access/command.yml
@@ -1,8 +1,10 @@
- type: accessLevel
id: Command
+ name: Command
- type: accessLevel
id: Captain
+ name: Captain
- type: accessLevel
id: HeadOfPersonnel
diff --git a/Resources/Prototypes/Access/engineering.yml b/Resources/Prototypes/Access/engineering.yml
index dc9e68e8a1..2c5ba5b318 100644
--- a/Resources/Prototypes/Access/engineering.yml
+++ b/Resources/Prototypes/Access/engineering.yml
@@ -4,9 +4,11 @@
- type: accessLevel
id: Engineering
-
+ name: Engineering
+
- type: accessLevel
id: Atmospherics
+ name: Atmospherics
- type: accessGroup
id: Engineering
diff --git a/Resources/Prototypes/Access/external.yml b/Resources/Prototypes/Access/external.yml
index b42f7f6dd1..e480751f6c 100644
--- a/Resources/Prototypes/Access/external.yml
+++ b/Resources/Prototypes/Access/external.yml
@@ -1,2 +1,3 @@
- type: accessLevel
- id: External
\ No newline at end of file
+ id: External
+ name: External
diff --git a/Resources/Prototypes/Access/maintenance.yml b/Resources/Prototypes/Access/maintenance.yml
index be8de9b201..712132a0bc 100644
--- a/Resources/Prototypes/Access/maintenance.yml
+++ b/Resources/Prototypes/Access/maintenance.yml
@@ -1,2 +1,3 @@
- type: accessLevel
id: Maintenance
+ name: Maintenance
diff --git a/Resources/Prototypes/Access/medical.yml b/Resources/Prototypes/Access/medical.yml
index f4ee93e98c..419ac3d292 100644
--- a/Resources/Prototypes/Access/medical.yml
+++ b/Resources/Prototypes/Access/medical.yml
@@ -4,9 +4,11 @@
- type: accessLevel
id: Medical
+ name: Medical
- type: accessLevel
id: Chemistry
+ name: Chemistry
- type: accessGroup
id: Medical
diff --git a/Resources/Prototypes/Access/research.yml b/Resources/Prototypes/Access/research.yml
index d265d568b3..0953693241 100644
--- a/Resources/Prototypes/Access/research.yml
+++ b/Resources/Prototypes/Access/research.yml
@@ -4,6 +4,7 @@
- type: accessLevel
id: Research
+ name: Research
- type: accessGroup
id: Research
diff --git a/Resources/Prototypes/Access/security.yml b/Resources/Prototypes/Access/security.yml
index 0e89b62193..d15451a9b6 100644
--- a/Resources/Prototypes/Access/security.yml
+++ b/Resources/Prototypes/Access/security.yml
@@ -4,12 +4,15 @@
- type: accessLevel
id: Security
+ name: Security
- type: accessLevel
id: Armory
+ name: Armory
- type: accessLevel
id: Brig
+ name: Brig
#- type: accessLevel
# id: Detective
diff --git a/Resources/Prototypes/Access/service.yml b/Resources/Prototypes/Access/service.yml
index 47e7be2045..408ce70b69 100644
--- a/Resources/Prototypes/Access/service.yml
+++ b/Resources/Prototypes/Access/service.yml
@@ -1,23 +1,30 @@
- type: accessLevel
id: Bar
+ name: Bar
- type: accessLevel
id: Kitchen
+ name: Kitchen
- type: accessLevel
id: Hydroponics
+ name: Hydroponics
- type: accessLevel
id: Service
+ name: Service
- type: accessLevel
id: Janitor
+ name: Janitor
- type: accessLevel
id: Theatre
+ name: Theatre
- type: accessLevel
id: Chapel
+ name: Chapel
- type: accessGroup
id: Service
diff --git a/Resources/Prototypes/Recipes/Lathes/tools.yml b/Resources/Prototypes/Recipes/Lathes/tools.yml
index 736b371735..05cf2401de 100644
--- a/Resources/Prototypes/Recipes/Lathes/tools.yml
+++ b/Resources/Prototypes/Recipes/Lathes/tools.yml
@@ -38,7 +38,6 @@
- type: latheRecipe
id: CableStack
- name: LV cable
icon: /Textures/Objects/Tools/cable-coils.rsi/coillv-30.png
result: CableApcStack1
completetime: 2
@@ -47,7 +46,6 @@
- type: latheRecipe
id: CableMVStack
- name: MV cable coil
icon: /Textures/Objects/Tools/cable-coils.rsi/coilmv-30.png
result: CableMVStack1
completetime: 2
@@ -56,7 +54,6 @@
- type: latheRecipe
id: CableHVStack
- name: HV cable coil
icon: /Textures/Objects/Tools/cable-coils.rsi/coilhv-30.png
result: CableHVStack1
completetime: 2