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

@@ -78,9 +78,9 @@ _data = {
[node name="Compost" type="Area2D"]
script = ExtResource("1_ux0j5")
default_interact_text = "Place Seed"
default_info_title = "Compost"
default_info_desc = "This research station can provide some bonus if filled with seeds."
default_interact_text = "PLACE_SEED"
default_info_title = "COMPOST"
default_info_desc = "COMPOST_DESC_TEXT"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -3)

View File

@@ -49,7 +49,7 @@ func card_info() -> CardInfo:
if default_info_desc != "":
var desc_section = CardSectionInfo.new(
"Description",
tr("DESCRIPTION"),
default_info_desc
)
desc_section.title_icon = DESC_ICON
@@ -58,7 +58,7 @@ func card_info() -> CardInfo:
)
var reward_section = CardSectionInfo.new(
"When filled",
tr("WHEN_FILLED"),
reward.desc()
)
reward_section.title_icon = FILLED_ICON

View File

@@ -14,7 +14,7 @@ func reward(p: Player):
p.pick_item(item)
func desc() -> String:
return "Give the following item : [b]%s[/b]. %s" % [item.name, item.description]
return tr("GIVE_THE_FOLLOWING_ITEM_%s") % item.name + ". " + item.description
func icon() -> Texture:
return item.icon

View File

@@ -4,7 +4,7 @@ func reward(p: Player):
p.upgrade_max_energy(1)
func desc() -> String:
return "Upgrade max energy"
return tr("UPGRADE_MAX_ENERGY")
func icon() -> Texture:
return preload("res://common/icons/bolt.svg")

View File

@@ -5,7 +5,7 @@ func reward(p: Player):
p.upgrade_inventory_size()
func desc() -> String:
return "Upgrade max inventory size"
return tr("UPGRADE_MAX_INVENTORY_SIZE")
func icon() -> Texture:
return preload("res://common/icons/backpack.svg")