Technology localization (#10252)

This commit is contained in:
Rinkashikachi
2022-08-08 11:40:20 +03:00
committed by GitHub
parent 3e4fd416ab
commit df681f98aa
3 changed files with 113 additions and 42 deletions

View File

@@ -20,7 +20,13 @@ namespace Content.Shared.Research.Prototypes
/// </summary> /// </summary>
[ViewVariables] [ViewVariables]
[DataField("name")] [DataField("name")]
public string Name { get; } = string.Empty; public string Name
{
get => (_name is not null) ? _name : ID;
private set => _name = Loc.GetString(value);
}
private string? _name;
/// <summary> /// <summary>
/// An icon that represent this technology. /// An icon that represent this technology.
@@ -33,7 +39,13 @@ namespace Content.Shared.Research.Prototypes
/// </summary> /// </summary>
[ViewVariables] [ViewVariables]
[DataField("description")] [DataField("description")]
public string Description { get; } = string.Empty; public string Description
{
get => (_description is not null) ? _description : "";
private set => _description = Loc.GetString(value);
}
private string? _description;
/// <summary> /// <summary>
/// The required research points to unlock this technology. /// The required research points to unlock this technology.

View File

@@ -0,0 +1,59 @@
technologies-basic-research-technology = Basic research technology
technologies-basic-research-technology-description = Nanotrasen basic research technologies.
technologies-cleaning-technology = Cleaning technology
technologies-cleaning-technology-description = Start to a shiny clean station.
technologies-biological-technology = Biological technology
technologies-biological-technology-description = Investigations into the natural world.
technologies-advanced-botany = Advanced botany
technologies-advanced-botany-description = A better understanding of botany.
technologies-advanced-surgery = Advanced surgery
technologies-advanced-surgery-description = Research new surgical procedures.
technologies-chemistry-technology = Chemistry technology
technologies-chemistry-technology-description = A crash course in chemistry.
technologies-medical-machinery = Medical machinery
technologies-medical-machinery-description = Machines any self-respecting medbay would need.
technologies-advanced-life-support = Advanced life support systems
technologies-advanced-life-support-description = The cutting edge of life and death.
technologies-industrial-engineering = Industrial engineering
technologies-industrial-engineering-description = A refresher course on modern engineering technology.
technologies-material-sheet-printing = Material sheet printing
technologies-material-sheet-printing-description = Print those sheets!
technologies-advanced-atmospherics-technology = Advanced atmospherics technology
technologies-advanced-atmospherics-technology-description = As if it can get more advanced.
technologies-avionics-systems = Avionics systems
technologies-avionics-systems-description = The latest in fly-by-LV-wire technology
technologies-electromagnetic-theory = Electromagnetic theory
technologies-electromagnetic-theory-description = Try not to fry yourself.
technologies-compact-power-technology = Compact power technology
technologies-compact-power-technology-description = Power, but smaller.
technologies-applied-musicology = Applied musicology
technologies-applied-musicology-description = Bringing you the latest in audio-audio technology.
technologies-basic-powercell-printing = Basic powercell printing
technologies-basic-powercell-printing-description = Print standard powercells.
technologies-advanced-powercell-printing = Advanced powercell printing
technologies-advanced-powercell-printing-description = Print advanced powercells.
technologies-super-powercell-printing = Super powercell printing
technologies-super-powercell-printing-description = Print super powercells.
technologies-basic-parts-technology = Basic parts technology
technologies-basic-parts-technology-description = They aren't great, but at least they're something.
technologies-robotics-technology = Robotics technology
technologies-robotics-technology-description = Robot parts.

View File

@@ -4,9 +4,9 @@
# Base Technology # Base Technology
- type: technology - type: technology
name: "basic research technology" name: technologies-basic-research-technology
id: BasicResearch id: BasicResearch
description: Nanotrasen basic research technologies. description: technologies-basic-research-technology-description
icon: icon:
sprite: Structures/Machines/server.rsi sprite: Structures/Machines/server.rsi
state: server-on state: server-on
@@ -15,9 +15,9 @@
# Cleaning Technology Tree # Cleaning Technology Tree
- type: technology - type: technology
name: "cleaning technology" name: technologies-cleaning-technology
id: MopBucket id: MopBucket
description: Start to a shiny clean station description: technologies-cleaning-technology-description
icon: icon:
sprite: Objects/Specific/Janitorial/janitorial.rsi sprite: Objects/Specific/Janitorial/janitorial.rsi
state: mopbucket state: mopbucket
@@ -33,9 +33,9 @@
# Biological Technology Tree # Biological Technology Tree
- type: technology - type: technology
name: "biological technology" name: technologies-biological-technology
id: BiologicalTechnology id: BiologicalTechnology
description: Investigations into the natural world. description: technologies-biological-technology-description
icon: icon:
sprite: Structures/Furniture/potted_plants.rsi sprite: Structures/Furniture/potted_plants.rsi
state: applebush state: applebush
@@ -53,9 +53,9 @@
- DiseaseSwab - DiseaseSwab
- type: technology - type: technology
name: "advanced botany" name: technologies-advanced-botany
id: AdvancedBotany id: AdvancedBotany
description: A better understanding of botany. description: technologies-advanced-botany-description
icon: icon:
sprite: Objects/Specific/Hydroponics/potato.rsi sprite: Objects/Specific/Hydroponics/potato.rsi
state: seed state: seed
@@ -68,9 +68,9 @@
- MicrowaveMachineCircuitboard - MicrowaveMachineCircuitboard
- type: technology - type: technology
name: "advanced surgery" name: technologies-advanced-surgery
id: AdvancedSugery id: AdvancedSugery
description: Research new surgical procedures. description: technologies-advanced-surgery-description
icon: icon:
sprite: Objects/Specific/Medical/Surgery/saw.rsi sprite: Objects/Specific/Medical/Surgery/saw.rsi
state: saw state: saw
@@ -88,9 +88,9 @@
# Chemistry Technology Tree # Chemistry Technology Tree
- type: technology - type: technology
name: "chemistry technology" name: technologies-chemistry-technology
id: ChemistryTechnology id: ChemistryTechnology
description: A crash course in chemistry. description: technologies-chemistry-technology-description
icon: icon:
sprite: Objects/Specific/Chemistry/beaker_large.rsi sprite: Objects/Specific/Chemistry/beaker_large.rsi
state: beakerlarge state: beakerlarge
@@ -109,9 +109,9 @@
- ChemicalPayload - ChemicalPayload
- type: technology - type: technology
name: "medical machinery" name: technologies-medical-machinery
id: MedicalMachinery id: MedicalMachinery
description: Machines any self-respecting medbay would need. description: technologies-medical-machinery-description
icon: icon:
sprite: Structures/dispensers.rsi sprite: Structures/dispensers.rsi
state: industrial-working state: industrial-working
@@ -129,9 +129,9 @@
- CloningConsoleComputerCircuitboard - CloningConsoleComputerCircuitboard
- type: technology - type: technology
name: "advanced life support systems" name: technologies-advanced-life-support
id: AdvancedLifeSupport id: AdvancedLifeSupport
description: The cutting edge of life and death. description: technologies-advanced-life-support-description
icon: icon:
sprite: Structures/Machines/cloning.rsi sprite: Structures/Machines/cloning.rsi
state: pod_0 state: pod_0
@@ -209,9 +209,9 @@
# Industrial Engineering Technology Tree # Industrial Engineering Technology Tree
- type: technology - type: technology
name: "industrial engineering" name: technologies-industrial-engineering
id: IndustrialEngineering id: IndustrialEngineering
description: A refresher course on modern engineering technology. description: technologies-industrial-engineering-description
icon: icon:
sprite: Structures/Machines/protolathe.rsi sprite: Structures/Machines/protolathe.rsi
state: icon state: icon
@@ -241,9 +241,9 @@
- FireAlarmElectronics - FireAlarmElectronics
- type: technology - type: technology
name: material sheet printing name: technologies-material-sheet-printing
id: Sheets id: Sheets
description: Print those sheets! description: technologies-material-sheet-printing-description
icon: Objects/Materials/Sheets/researchicon.png icon: Objects/Materials/Sheets/researchicon.png
requiredPoints: 2500 requiredPoints: 2500
requiredTechnologies: requiredTechnologies:
@@ -255,9 +255,9 @@
- SheetGlass1 - SheetGlass1
- type: technology - type: technology
name: advanced atmospherics technology name: technologies-advanced-atmospherics-technology
id: AdvancedAtmosTechnology id: AdvancedAtmosTechnology
description: As if it can get more advanced. description: technologies-advanced-atmospherics-technology-description
icon: icon:
sprite: Structures/Piping/Atmospherics/thermomachine.rsi sprite: Structures/Piping/Atmospherics/thermomachine.rsi
state: freezer_off state: freezer_off
@@ -271,9 +271,9 @@
# Avionics Circuitry Technology Tree # Avionics Circuitry Technology Tree
- type: technology - type: technology
name: "avionics systems" name: technologies-avionics-systems
id: AvionicsSystems id: AvionicsSystems
description: The latest in fly-by-LV-wire technology description: technologies-avionics-systems-description
icon: icon:
sprite: Structures/Machines/computers.rsi sprite: Structures/Machines/computers.rsi
state: avionics-systems state: avionics-systems
@@ -288,9 +288,9 @@
# Electromagnetic Theory Technology Tree # Electromagnetic Theory Technology Tree
- type: technology - type: technology
name: "electromagnetic theory" name: technologies-electromagnetic-theory
id: ElectromagneticTheory id: ElectromagneticTheory
description: Try not to fry yourself. description: technologies-electromagnetic-theory-description
icon: icon:
sprite: Structures/Power/apc.rsi sprite: Structures/Power/apc.rsi
state: apc0 state: apc0
@@ -319,9 +319,9 @@
- SignalTrigger - SignalTrigger
- type: technology - type: technology
name: "compact power technology" name: technologies-compact-power-technology
id: CompactPowerTechnology id: CompactPowerTechnology
description: Power, but smaller. description: technologies-compact-power-technology-description
icon: icon:
sprite: Structures/Power/apc.rsi sprite: Structures/Power/apc.rsi
state: apc0 state: apc0
@@ -336,9 +336,9 @@
- GeneratorUraniumMachineCircuitboard - GeneratorUraniumMachineCircuitboard
- type: technology - type: technology
name: "applied musicology" name: technologies-applied-musicology
id: AppliedMusicology id: AppliedMusicology
description: Bringing you the latest in audio-audio technology. description: technologies-applied-musicology-description
icon: icon:
sprite: Objects/Fun/Instruments/guitar.rsi sprite: Objects/Fun/Instruments/guitar.rsi
state: icon state: icon
@@ -350,9 +350,9 @@
- DawInstrumentMachineCircuitboard - DawInstrumentMachineCircuitboard
- type: technology - type: technology
name: "basic powercell printing" name: technologies-basic-powercell-printing
id: PowerCellBasic id: PowerCellBasic
description: Print standard powercells. description: technologies-basic-powercell-printing-description
icon: icon:
sprite: Objects/Power/power_cells.rsi sprite: Objects/Power/power_cells.rsi
state: small state: small
@@ -363,9 +363,9 @@
- PowerCellSmall - PowerCellSmall
- type: technology - type: technology
name: "advanced powercell printing" name: technologies-advanced-powercell-printing
id: PowerCellAdvanced id: PowerCellAdvanced
description: Print advanced powercells. description: technologies-advanced-powercell-printing-description
icon: icon:
sprite: Objects/Power/power_cells.rsi sprite: Objects/Power/power_cells.rsi
state: medium state: medium
@@ -376,9 +376,9 @@
- PowerCellMedium - PowerCellMedium
- type: technology - type: technology
name: "super powercell printing" name: technologies-super-powercell-printing
id: PowerCellSuper id: PowerCellSuper
description: Print super powercells. description: technologies-super-powercell-printing-description
icon: icon:
sprite: Objects/Power/power_cells.rsi sprite: Objects/Power/power_cells.rsi
state: high state: high
@@ -390,9 +390,9 @@
# Basic Parts Technology Tree # Basic Parts Technology Tree
- type: technology - type: technology
name: "basic parts technology" name: technologies-basic-parts-technology
id: BasicPartsTechnology id: BasicPartsTechnology
description: They aren't great, but at least they're something. description: technologies-basic-parts-technology-description
icon: icon:
sprite: Objects/Misc/stock_parts.rsi sprite: Objects/Misc/stock_parts.rsi
state: micro_mani state: micro_mani
@@ -407,9 +407,9 @@
- ScanningModuleStockPart - ScanningModuleStockPart
- type: technology - type: technology
name: "robotics technology" name: technologies-robotics-technology
id: RoboticsTechnology id: RoboticsTechnology
description: Robot parts. description: technologies-robotics-technology-description
icon: icon:
sprite: Mobs/Silicon/Bots/honkbot.rsi sprite: Mobs/Silicon/Bots/honkbot.rsi
state: honkbot state: honkbot