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

@@ -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")