Localize wires window title (#19577)

* Localize wires window title

* Reset
This commit is contained in:
Morb
2023-08-27 13:41:43 +03:00
committed by GitHub
parent e79c39b521
commit 56a49ba999
34 changed files with 79 additions and 43 deletions

View File

@@ -9,7 +9,7 @@ public sealed partial class WiresComponent : Component
/// The name of this entity's internal board. /// The name of this entity's internal board.
/// </summary> /// </summary>
[DataField("BoardName")] [DataField("BoardName")]
public string BoardName { get; set; } = "Wires"; public string BoardName { get; set; } = "wires-board-name-default";
/// <summary> /// <summary>
/// The layout ID of this entity's wires. /// The layout ID of this entity's wires.

View File

@@ -595,7 +595,7 @@ public sealed class WiresSystem : SharedWiresSystem
_uiSystem.TrySetUiState(uid, WiresUiKey.Key, new WiresBoundUserInterfaceState( _uiSystem.TrySetUiState(uid, WiresUiKey.Key, new WiresBoundUserInterfaceState(
clientList.ToArray(), clientList.ToArray(),
statuses.Select(p => new StatusEntry(p.key, p.value)).ToArray(), statuses.Select(p => new StatusEntry(p.key, p.value)).ToArray(),
wires.BoardName, Loc.GetString(wires.BoardName),
wires.SerialNumber, wires.SerialNumber,
wires.WireSeed), ui: ui); wires.WireSeed), ui: ui);
} }

View File

@@ -1,12 +1,48 @@
# titles that get displayed in the wire hacking window
wires-board-name-default = Wires
wires-board-name-booze = BoozeDispenser
wires-board-name-soda = SodaDispenser
wires-board-name-thermomachine = Thermomachine
wires-board-name-pa = Mk2 Particle Accelerator
wires-board-name-highsec = HighSec Control
wires-board-name-vessel = Vessel
wires-board-name-smes = SMES
wires-board-name-substation = Substation
wires-board-name-apc = APC
wires-board-name-autolathe = Autolathe
wires-board-name-protolathe = Protolathe
wires-board-name-airalarm = Air Alarm
wires-board-name-firealarm = Fire Alarm
wires-board-name-arcade = Arcade
wires-board-name-ape = Ape
wires-board-name-anomalygenerator = AnomalyGenerator
wires-board-name-cloningpod = CloningPod
wires-board-name-cryopod = Cryo pod
wires-board-name-chemdispenser = ChemDispenser
wires-board-name-chemmaster = ChemMaster
wires-board-name-generator = Generator
wires-board-name-vendingmachine = Vending Machine
wires-board-name-intercom = Intercom
wires-board-name-hydroponicstray = HydroponicsTray
wires-board-name-telecomserver = TelecomServer
wires-board-name-medicalscanner = MedicalScanner
wires-board-name-reclaimer = Reclaimer
wires-board-name-minigravitygenerator = MiniGravityGenerator
wires-board-name-dawinstrument = DawInstrument
wires-board-name-airlock = Airlock Control
wires-board-name-firelock = Firelock Control
wires-board-name-windoor = Windoor Control
wires-board-name-mech = Mech
wires-board-name-fatextractor = FatExtractor
# names that get displayed in the wire hacking hud & admin logs. # names that get displayed in the wire hacking hud & admin logs.
wire-name-access = ACC wire-name-access = ACC
wire-name-arcade-overflow = LMTR wire-name-arcade-overflow = LMTR
wire-name-air-alarm-panic = PANC wire-name-air-alarm-panic = PANC
wire-name-device-net = NETW wire-name-device-net = NETW
wire-name-bolt-light = BLIT wire-name-bolt-light = BLIT
wire-name-door-bolt = BOLT wire-name-door-bolt = BOLT
wire-name-door-safety = SAFE wire-name-door-safety = SAFE
wire-name-door-timer = TIMR wire-name-door-timer = TIMR
wire-name-lock = LOCK wire-name-lock = LOCK

View File

@@ -164,7 +164,7 @@
- type: WiresVisuals - type: WiresVisuals
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "DawInstrument" BoardName: wires-board-name-dawinstrument
LayoutId: DawInstrument LayoutId: DawInstrument
- type: Machine - type: Machine
board: DawInstrumentMachineCircuitboard board: DawInstrumentMachineCircuitboard

View File

@@ -38,7 +38,7 @@
- type: Clickable - type: Clickable
- type: WiresPanel - type: WiresPanel
- type: Wires #we just want the panel - type: Wires #we just want the panel
BoardName: Mech BoardName: wires-board-name-mech
LayoutId: Mech LayoutId: Mech
- type: Fixtures - type: Fixtures
fixtures: fixtures:

View File

@@ -17,7 +17,7 @@
- type: Machine - type: Machine
board: BoozeDispenserMachineCircuitboard board: BoozeDispenserMachineCircuitboard
- type: Wires - type: Wires
BoardName: "BoozeDispenser" BoardName: wires-board-name-booze
LayoutId: BoozeDispenser LayoutId: BoozeDispenser
- type: GuideHelp - type: GuideHelp
guides: guides:

View File

@@ -26,7 +26,7 @@
- type: Machine - type: Machine
board: ChemDispenserMachineCircuitboard board: ChemDispenserMachineCircuitboard
- type: Wires - type: Wires
BoardName: "ChemDispenser" BoardName: wires-board-name-chemdispenser
LayoutId: ChemDispenser LayoutId: ChemDispenser
- type: UpgradePowerDraw - type: UpgradePowerDraw
powerDrawMultiplier: 0.75 powerDrawMultiplier: 0.75

View File

@@ -17,7 +17,7 @@
- type: Machine - type: Machine
board: SodaDispenserMachineCircuitboard board: SodaDispenserMachineCircuitboard
- type: Wires - type: Wires
BoardName: "SodaDispenser" BoardName: wires-board-name-soda
LayoutId: SodaDispenser LayoutId: SodaDispenser
- type: GuideHelp - type: GuideHelp
guides: guides:

View File

@@ -75,7 +75,7 @@
usesApcPower: true usesApcPower: true
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "Airlock Control" BoardName: wires-board-name-airlock
LayoutId: Airlock LayoutId: Airlock
- type: DoorSignalControl - type: DoorSignalControl
- type: DeviceNetwork - type: DeviceNetwork

View File

@@ -68,7 +68,7 @@
usesApcPower: true usesApcPower: true
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "HighSec Control" BoardName: wires-board-name-highsec
LayoutId: HighSec LayoutId: HighSec
alwaysRandomize: true alwaysRandomize: true
- type: UserInterface - type: UserInterface

View File

@@ -84,7 +84,7 @@
- type: WiresVisuals - type: WiresVisuals
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "Firelock Control" BoardName: wires-board-name-firelock
LayoutId: Firelock LayoutId: Firelock
- type: UserInterface - type: UserInterface
interfaces: interfaces:

View File

@@ -118,7 +118,7 @@
usesApcPower: true usesApcPower: true
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "Windoor Control" BoardName: wires-board-name-windoor
LayoutId: Airlock LayoutId: Airlock
- type: UserInterface - type: UserInterface
interfaces: interfaces:

View File

@@ -86,7 +86,7 @@
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
LayoutId: Arcade LayoutId: Arcade
BoardName: "Arcade" BoardName: wires-board-name-arcade
- type: ActivatableUI - type: ActivatableUI
key: enum.SpaceVillainArcadeUiKey.Key key: enum.SpaceVillainArcadeUiKey.Key
- type: ActivatableUIRequiresPower - type: ActivatableUIRequiresPower
@@ -107,7 +107,7 @@
- type: SpaceVillainArcade - type: SpaceVillainArcade
rewardMinAmount: 5 rewardMinAmount: 5
rewardMaxAmount: 8 rewardMaxAmount: 8
- type: entity - type: entity
id: BlockGameArcade id: BlockGameArcade
description: An arcade cabinet with a strangely familiar game. description: An arcade cabinet with a strangely familiar game.
@@ -128,7 +128,7 @@
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
LayoutId: Arcade LayoutId: Arcade
BoardName: "Arcade" BoardName: wires-board-name-arcade
- type: UserInterface - type: UserInterface
interfaces: interfaces:
- key: enum.BlockGameUiKey.Key - key: enum.BlockGameUiKey.Key

View File

@@ -51,7 +51,7 @@
- type: WiresVisuals - type: WiresVisuals
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "Cryo pod" BoardName: wires-board-name-cryopod
LayoutId: CryoPod LayoutId: CryoPod
- type: Damageable - type: Damageable
damageContainer: Inorganic damageContainer: Inorganic

View File

@@ -38,7 +38,7 @@
- type: Appearance - type: Appearance
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "Vessel" BoardName: wires-board-name-vessel
LayoutId: Vessel LayoutId: Vessel
- type: AmbientSound - type: AmbientSound
enabled: false enabled: false
@@ -175,7 +175,7 @@
- type: WiresPanel - type: WiresPanel
- type: WiresVisuals - type: WiresVisuals
- type: Wires - type: Wires
BoardName: "Ape" BoardName: wires-board-name-ape
LayoutId: Ape LayoutId: Ape
- type: GenericVisualizer - type: GenericVisualizer
visuals: visuals:
@@ -264,7 +264,7 @@
doAfterDelay: 5 doAfterDelay: 5
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "AnomalyGenerator" BoardName: wires-board-name-anomalygenerator
LayoutId: AnomalyGenerator LayoutId: AnomalyGenerator
- type: Destructible - type: Destructible
thresholds: thresholds:

View File

@@ -61,7 +61,7 @@
# Machine / Construction stuff # Machine / Construction stuff
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "chem_master" BoardName: wires-board-name-chemmaster
LayoutId: chem_master LayoutId: chem_master
- type: Machine - type: Machine
board: ChemMasterMachineCircuitboard board: ChemMasterMachineCircuitboard

View File

@@ -61,7 +61,7 @@
- Biomass - Biomass
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "CloningPod" BoardName: wires-board-name-cloningpod
LayoutId: CloningPod LayoutId: CloningPod
- type: ApcPowerReceiver - type: ApcPowerReceiver
powerLoad: 200 #Receives most of its power from the console powerLoad: 200 #Receives most of its power from the console

View File

@@ -96,7 +96,7 @@
board: FatExtractorMachineCircuitboard board: FatExtractorMachineCircuitboard
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: FatExtractor BoardName: wires-board-name-fatextractor
LayoutId: FatExtractor LayoutId: FatExtractor
- type: Appearance - type: Appearance
- type: Speech - type: Speech

View File

@@ -118,11 +118,11 @@
spawn: spawn:
MachineFrameDestroyed: MachineFrameDestroyed:
min: 1 min: 1
max: 1 max: 1
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "MiniGravityGenerator" BoardName: wires-board-name-minigravitygenerator
LayoutId: MiniGravityGenerator LayoutId: MiniGravityGenerator
- type: Machine - type: Machine
board: MiniGravityGeneratorCircuitboard board: MiniGravityGeneratorCircuitboard
- type: ApcPowerReceiver - type: ApcPowerReceiver

View File

@@ -31,7 +31,7 @@
acts: ["Destruction"] acts: ["Destruction"]
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "Autolathe" BoardName: wires-board-name-autolathe
LayoutId: Autolathe LayoutId: Autolathe
- type: ActivatableUI - type: ActivatableUI
key: enum.LatheUiKey.Key key: enum.LatheUiKey.Key
@@ -185,7 +185,7 @@
- type: Machine - type: Machine
board: ProtolatheMachineCircuitboard board: ProtolatheMachineCircuitboard
- type: Wires - type: Wires
BoardName: "Protolathe" BoardName: wires-board-name-protolathe
LayoutId: Protolathe LayoutId: Protolathe
- type: MaterialStorage - type: MaterialStorage
whitelist: whitelist:

View File

@@ -59,7 +59,7 @@
board: MaterialReclaimerMachineCircuitboard board: MaterialReclaimerMachineCircuitboard
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "reclaimer" BoardName: wires-board-name-reclaimer
LayoutId: Reclaimer LayoutId: Reclaimer
- type: MaterialReclaimer - type: MaterialReclaimer
whitelist: whitelist:

View File

@@ -78,7 +78,7 @@
board: MedicalScannerMachineCircuitboard board: MedicalScannerMachineCircuitboard
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "MedicalScanner" BoardName: wires-board-name-medicalscanner
LayoutId: MedicalScanner LayoutId: MedicalScanner
- type: Appearance - type: Appearance
- type: Climbable - type: Climbable

View File

@@ -49,7 +49,7 @@
board: TelecomServerCircuitboard board: TelecomServerCircuitboard
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "TelecomServer" BoardName: wires-board-name-telecomserver
LayoutId: TelecomServer LayoutId: TelecomServer
- type: Transform - type: Transform
anchored: true anchored: true

View File

@@ -64,7 +64,7 @@
type: WiresBoundUserInterface type: WiresBoundUserInterface
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "Vending Machine" BoardName: wires-board-name-vendingmachine
LayoutId: Vending LayoutId: Vending
- type: Anchorable - type: Anchorable
- type: TypingIndicator - type: TypingIndicator

View File

@@ -239,7 +239,7 @@
key: enum.ThermomachineUiKey.Key key: enum.ThermomachineUiKey.Key
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "Thermomachine" BoardName: wires-board-name-thermomachine
LayoutId: Thermomachine LayoutId: Thermomachine
- type: WiresVisuals - type: WiresVisuals
- type: NodeContainer - type: NodeContainer

View File

@@ -23,7 +23,7 @@
type: WiresBoundUserInterface type: WiresBoundUserInterface
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "Mk2 Particle Accelerator" BoardName: wires-board-name-pa
LayoutId: ParticleAccelerator LayoutId: ParticleAccelerator
# Unfinished # Unfinished

View File

@@ -42,7 +42,7 @@
# Construction, interaction # Construction, interaction
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "Generator" BoardName: wires-board-name-generator
LayoutId: Generator LayoutId: Generator
- type: UserInterface - type: UserInterface
interfaces: interfaces:

View File

@@ -91,7 +91,7 @@
- type: WallMount - type: WallMount
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "APC" BoardName: wires-board-name-apc
LayoutId: APC LayoutId: APC
- type: WiresVisuals - type: WiresVisuals
- type: Damageable - type: Damageable

View File

@@ -63,7 +63,7 @@
castShadows: false castShadows: false
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "SMES" BoardName: wires-board-name-smes
LayoutId: SMES LayoutId: SMES
- type: Machine - type: Machine
board: SMESMachineCircuitboard board: SMESMachineCircuitboard

View File

@@ -87,7 +87,7 @@
totalIntensity: 200 totalIntensity: 200
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "Substation" BoardName: wires-board-name-substation
LayoutId: Substation LayoutId: Substation
- type: Machine - type: Machine
board: SubstationMachineCircuitboard board: SubstationMachineCircuitboard

View File

@@ -59,7 +59,7 @@
type: WiresBoundUserInterface type: WiresBoundUserInterface
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "Air Alarm" BoardName: wires-board-name-airalarm
LayoutId: AirAlarm LayoutId: AirAlarm
- type: AccessReader - type: AccessReader
access: [["Atmospherics"]] access: [["Atmospherics"]]

View File

@@ -66,7 +66,7 @@
type: WiresBoundUserInterface type: WiresBoundUserInterface
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "Fire Alarm" BoardName: wires-board-name-firealarm
LayoutId: FireAlarm LayoutId: FireAlarm
- type: Sprite - type: Sprite
sprite: Structures/Wallmounts/air_monitors.rsi sprite: Structures/Wallmounts/air_monitors.rsi

View File

@@ -50,7 +50,7 @@
anchored: true anchored: true
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "Intercom" BoardName: wires-board-name-intercom
LayoutId: Intercom LayoutId: Intercom
- type: ActivatableUIRequiresPower - type: ActivatableUIRequiresPower
- type: ActivatableUI - type: ActivatableUI

View File

@@ -79,7 +79,7 @@
board: HydroponicsTrayMachineCircuitboard board: HydroponicsTrayMachineCircuitboard
- type: WiresPanel - type: WiresPanel
- type: Wires - type: Wires
BoardName: "HydroponicsTray" BoardName: wires-board-name-hydroponicstray
LayoutId: HydroponicsTray LayoutId: HydroponicsTray
- type: AmbientSound - type: AmbientSound
volume: -9 volume: -9