ajout de la traduction #70

* Fix de l'inspection de l'inventaire
* Suppression des assets d'objectifs
This commit is contained in:
2025-11-07 17:36:18 +01:00
parent ed675ed532
commit a8bb09407e
91 changed files with 485 additions and 872 deletions

View File

@@ -51,7 +51,7 @@ func card_info() -> CardInfo:
info.stats.append(
CardStatInfo.new(
"Cost %d energy" % energy_usage,
tr("COST_%d_ENERGY") % energy_usage,
ENERGY_ICON
)
)
@@ -59,13 +59,13 @@ func card_info() -> CardInfo:
if is_one_time_use():
info.stats.append(
CardStatInfo.new(
"One time use",
tr("ONE_TIME_USE"),
ONE_TIME_ICON
)
)
var effect_section = CardSectionInfo.new(
"Effect",
tr("EFFECT"),
get_description()
)
effect_section.title_icon = ACTION_ICON

View File

@@ -23,7 +23,7 @@ func get_icon() -> Texture2D:
func use_text() -> String:
if machine_type:
return "Build " + machine_type.name
return tr("BUILD_%s") % machine_type.name
return ""
func is_one_time_use():

View File

@@ -4,10 +4,10 @@ class_name Fork
const USE_INTERVAL = 0.15
func get_item_name() -> String:
return "Fork"
return tr("FORK")
func get_description() -> String:
return "Use it to harvest mature plants."
return tr("FORK_DESC_TEXT")
func get_icon() -> Texture2D:
return preload("res://common/icons/fork.svg")
@@ -22,7 +22,7 @@ func get_usage_object_affected(i : InspectableEntity) -> bool:
return i is Plant
func use_text() -> String:
return "Harvest"
return tr("HARVEST")
func can_use(_player : Player, zone : Player.ActionZone) -> bool:
var areas = zone.get_affected_areas()

View File

@@ -4,11 +4,10 @@ class_name Knife
const KNIFE_ZONE_RADIUS = 10
func get_item_name() -> String:
return "Knife"
return tr("KNIFE")
func get_description() -> String:
return "Use it to harvest mature plants. Do not cost energy."
return tr("KNIFE_DESC_TEXT")
func get_energy_used() -> int:
return 0

View File

@@ -19,7 +19,7 @@ func get_icon() -> Texture2D:
return preload("res://common/icons/package.svg")
func use_text() -> String:
return "Open"
return tr("OPEN")
func is_one_time_use():
return true

View File

@@ -11,10 +11,10 @@ const SCORE_ICON = preload("res://common/icons/growth.svg")
@export var plant_mutations: Array[PlantMutation]
func get_item_name() -> String:
return "%s Seed" % plant_type.name
return tr("%s_SEED") % plant_type.name
func get_description() -> String:
return "Plant [b]%s[/b]. Must be used in decontamined zone." % plant_type.name
return tr("PLANT_%s_MUST_BE_USED_IN_DECONTAMINATED_ZONE") % plant_type.name
func get_icon() -> Texture2D:
return plant_type.seed_texture
@@ -23,7 +23,7 @@ func get_energy_used() -> int:
return 1
func get_usage_zone_radius() -> int:
return 40
return 35
func get_usage_object_affected(i : InspectableEntity) -> bool:
return i is Plant
@@ -36,7 +36,7 @@ func _init(
plant_mutations = Seed.mutate(_parent_mutation)
func use_text() -> String:
return "Plant " + plant_type.name
return tr("PLANT_%s") % plant_type.name
func is_one_time_use():
return true
@@ -80,7 +80,7 @@ func card_info() -> CardInfo:
info.stats.append(
CardStatInfo.new(
"Cost %d energy" % energy_usage,
tr("COST_%d_ENERGY") % energy_usage,
ENERGY_ICON
)
)
@@ -88,13 +88,13 @@ func card_info() -> CardInfo:
if is_one_time_use():
info.stats.append(
CardStatInfo.new(
"One time use",
tr("ONE_TIME_USE"),
ONE_TIME_ICON
)
)
var effect_section = CardSectionInfo.new(
"Effect",
tr("EFFECT"),
get_description()
)
effect_section.title_icon = ACTION_ICON

View File

@@ -4,10 +4,10 @@ class_name Shovel
const SHOVEL_ZONE_RADIUS = 50
func get_item_name() -> String:
return "Shovel"
return tr("SHOVEL")
func get_description() -> String:
return "Can dig up buried seeds and can be used to harvest mature plants."
return tr("SHOVEL_DESC_TEXT")
func get_icon() -> Texture2D:
return preload("res://common/icons/shovel.svg")
@@ -19,7 +19,7 @@ func get_usage_object_affected(i : InspectableEntity) -> bool:
return i is Plant or i is UndergroundLoot
func use_text() -> String:
return "Dig"
return tr("DIG")
func can_use(_player : Player, zone : Player.ActionZone) -> bool:
var areas = zone.get_affected_areas()

View File

@@ -4,10 +4,10 @@ class_name Trowel
const TROWEL_ZONE_RADIUS = 50
func get_item_name() -> String:
return "Trowel"
return tr("TROWEL")
func get_description() -> String:
return "Use it to harvest mature plants, can get a [b]bonus seed[/b] from each plant."
return tr("TROWEL_DESC_TEXT")
func get_icon() -> Texture2D:
return preload("res://common/icons/trowel.svg")