Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mirror: CargoConsoleMenu localization #127

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Content.Client/Cargo/UI/CargoConsoleMenu.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void PopulateProducts()
if (search.Length == 0 && _category == null ||
search.Length != 0 && prototype.Name.ToLowerInvariant().Contains(search) ||
search.Length != 0 && prototype.Description.ToLowerInvariant().Contains(search) ||
search.Length == 0 && _category != null && prototype.Category.Equals(_category))
search.Length == 0 && _category != null && Loc.GetString(prototype.Category).Equals(_category))
{
var button = new CargoProductRow
{
Expand Down Expand Up @@ -122,7 +122,7 @@ public void PopulateCategories()

foreach (var prototype in ProductPrototypes)
{
if (!_categoryStrings.Contains(prototype.Category))
if (!_categoryStrings.Contains(Loc.GetString(prototype.Category)))
{
_categoryStrings.Add(Loc.GetString(prototype.Category));
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
cargoproduct-category-name-armory = Armory
cargoproduct-category-name-atmospherics = Atmospherics
cargoproduct-category-name-cargo = Cargo
cargoproduct-category-name-circuitboards = Circuitboards
cargoproduct-category-name-emergency = Emergency
cargoproduct-category-name-engineering = Engineering
cargoproduct-category-name-food = Food
cargoproduct-category-name-fun = Fun
cargoproduct-category-name-hydroponics = Hydroponics
cargoproduct-category-name-livestock = Livestock
cargoproduct-category-name-materials = Materials
cargoproduct-category-name-medical = Medical
cargoproduct-category-name-science = Science
cargoproduct-category-name-security = Security
cargoproduct-category-name-service = Service
cargoproduct-category-name-shuttle = Shuttle
12 changes: 6 additions & 6 deletions Resources/Prototypes/Catalog/Cargo/cargo_armory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
state: icon
product: CrateArmorySMG
cost: 9000
category: Armory
category: cargoproduct-category-name-armory
group: market

- type: cargoProduct
Expand All @@ -15,7 +15,7 @@
state: icon
product: CrateArmoryShotgun
cost: 7000
category: Armory
category: cargoproduct-category-name-armory
group: market

- type: cargoProduct
Expand All @@ -25,7 +25,7 @@
state: implanter0
product: CrateTrackingImplants
cost: 1000
category: Armory
category: cargoproduct-category-name-armory
group: market

- type: cargoProduct
Expand All @@ -35,7 +35,7 @@
state: training-bomb
product: CrateTrainingBombs
cost: 3000
category: Armory
category: cargoproduct-category-name-armory
group: market

- type: cargoProduct
Expand All @@ -45,7 +45,7 @@
state: icon
product: CrateArmoryLaser
cost: 4800
category: Armory
category: cargoproduct-category-name-armory
group: market

- type: cargoProduct
Expand All @@ -55,5 +55,5 @@
state: icon
product: CrateArmoryPistols
cost: 5200
category: Armory
category: cargoproduct-category-name-armory
group: market
22 changes: 11 additions & 11 deletions Resources/Prototypes/Catalog/Cargo/cargo_atmospherics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
state: grey
product: AirCanister
cost: 1100
category: Atmospherics
category: cargoproduct-category-name-atmospherics
group: market

- type: cargoProduct
Expand All @@ -15,7 +15,7 @@
state: blue
product: OxygenCanister
cost: 1100
category: Atmospherics
category: cargoproduct-category-name-atmospherics
group: market

- type: cargoProduct
Expand All @@ -25,7 +25,7 @@
state: blue
product: LiquidOxygenCanister
cost: 2500
category: Atmospherics
category: cargoproduct-category-name-atmospherics
group: market

- type: cargoProduct
Expand All @@ -35,7 +35,7 @@
state: red
product: NitrogenCanister
cost: 1100
category: Atmospherics
category: cargoproduct-category-name-atmospherics
group: market

- type: cargoProduct
Expand All @@ -45,7 +45,7 @@
state: red
product: LiquidNitrogenCanister
cost: 2500
category: Atmospherics
category: cargoproduct-category-name-atmospherics
group: market

- type: cargoProduct
Expand All @@ -55,7 +55,7 @@
state: black
product: CarbonDioxideCanister
cost: 2200 # Until someone fixes it co2 can be used to oneshot people so it's more expensive
category: Atmospherics
category: cargoproduct-category-name-atmospherics
group: market

- type: cargoProduct
Expand All @@ -65,7 +65,7 @@
state: black
product: LiquidCarbonDioxideCanister
cost: 4000
category: Atmospherics
category: cargoproduct-category-name-atmospherics
group: market

- type: cargoProduct
Expand All @@ -75,7 +75,7 @@
state: yellow
product: StorageCanister
cost: 1010 # No gases in it so it's cheaper
category: Atmospherics
category: cargoproduct-category-name-atmospherics
group: market

#- type: cargoProduct
Expand All @@ -87,7 +87,7 @@
# state: water_vapor
# product: WaterVaporCanister
# cost: 2600
# category: Atmospherics
# category: cargoproduct-category-name-atmospherics
# group: market

- type: cargoProduct
Expand All @@ -97,7 +97,7 @@
state: orange
product: PlasmaCanister
cost: 4000
category: Atmospherics
category: cargoproduct-category-name-atmospherics
group: market

#- type: cargoProduct
Expand All @@ -109,5 +109,5 @@
# state: green
# product: TritiumCanister
# cost: 15500
# category: Atmospherics
# category: cargoproduct-category-name-atmospherics
# group: market
10 changes: 5 additions & 5 deletions Resources/Prototypes/Catalog/Cargo/cargo_botany.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
state: seed
product: CrateHydroponicsSeedsExotic
cost: 1000
category: Hydroponics
category: cargoproduct-category-name-hydroponics
group: market

- type: cargoProduct
Expand All @@ -15,7 +15,7 @@
state: seed
product: CrateHydroponicsSeedsMedicinal
cost: 500
category: Hydroponics
category: cargoproduct-category-name-hydroponics
group: market

- type: cargoProduct
Expand All @@ -25,7 +25,7 @@
state: icon
product: CrateHydroponicsTools
cost: 500
category: Hydroponics
category: cargoproduct-category-name-hydroponics
group: market

- type: cargoProduct
Expand All @@ -35,7 +35,7 @@
state: seed
product: CrateHydroponicsSeeds
cost: 550
category: Hydroponics
category: cargoproduct-category-name-hydroponics
group: market

- type: cargoProduct
Expand All @@ -45,5 +45,5 @@
state: jug
product: CratePlantBGone
cost: 750
category: Hydroponics
category: cargoproduct-category-name-hydroponics
group: market
4 changes: 2 additions & 2 deletions Resources/Prototypes/Catalog/Cargo/cargo_cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
state: orebox
product: OreBox
cost: 500
category: Logistics # DeltaV - Logistics Department replacing Cargo
category: cargoproduct-category-name-cargo
group: market

- type: cargoProduct
Expand All @@ -25,5 +25,5 @@
state: icon
product: CrateCargoLuxuryHardsuit
cost: 15000
category: Logistics # DeltaV - Logistics Department replacing Cargo
category: cargoproduct-category-name-cargo
group: market
2 changes: 1 addition & 1 deletion Resources/Prototypes/Catalog/Cargo/cargo_circuitboards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
state: cpuboard
product: CrateCrewMonitoringBoards
cost: 2000
category: Circuitboards
category: cargoproduct-category-name-circuitboards
group: market
16 changes: 8 additions & 8 deletions Resources/Prototypes/Catalog/Cargo/cargo_emergency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
state: icon
product: CrateEmergencyExplosive
cost: 650
category: Emergency
category: cargoproduct-category-name-emergency
group: market

- type: cargoProduct
Expand All @@ -15,7 +15,7 @@
state: fire_extinguisher_closed
product: CrateEmergencyFire
cost: 1500
category: Emergency
category: cargoproduct-category-name-emergency
group: market

- type: cargoProduct
Expand All @@ -25,7 +25,7 @@
state: icon
product: CrateEmergencyInternals
cost: 500
category: Emergency
category: cargoproduct-category-name-emergency
group: market

- type: cargoProduct
Expand All @@ -35,7 +35,7 @@
state: icon
product: CrateEmergencyInternalsLarge
cost: 2000
category: Emergency
category: cargoproduct-category-name-emergency
group: market

- type: cargoProduct
Expand All @@ -45,7 +45,7 @@
state: radiation
product: CrateEmergencyRadiation
cost: 1000
category: Emergency
category: cargoproduct-category-name-emergency
group: market

- type: cargoProduct
Expand All @@ -55,7 +55,7 @@
state: item_wall
product: CrateEmergencyInflatablewall
cost: 500
category: Emergency
category: cargoproduct-category-name-emergency
group: market

- type: cargoProduct
Expand All @@ -65,7 +65,7 @@
state: icon
product: CrateSlimepersonLifeSupport
cost: 300
category: Emergency
category: cargoproduct-category-name-emergency
group: market

- type: cargoProduct
Expand All @@ -75,5 +75,5 @@
state: icon
product: CrateGenericBiosuit
cost: 800
category: Emergency
category: cargoproduct-category-name-emergency
group: market
Loading
Loading