feat(text): the race menu reads its texts from translation files

First step of moving every piece of text out of the code so modders can
translate the mod. The texts live in Translations/<Language>/*.json, one
file per kind of text, which Jotunn finds on its own and falls back to
English for. ModText reads them; values take Valheim's $1, $2 placeholders.

This step covers the race selection menu: title, buttons, every race's
name and description, in English and Italian. The race ID and the name on
screen are now separate strings. The ID is what the save and the ZDO hold,
so it must never be translated.

The files are deployed to plugins\RacesOfValheim\Translations and packed
into both release zips.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
kanym 2026-09-26 19:43:48 +02:00
commit 73b67cd6ce
5 changed files with 169 additions and 22 deletions

View file

@ -0,0 +1,38 @@
{
"rov_menu_choose_race": "Choose your Race",
"rov_menu_ok": "OK",
"rov_menu_back": "Back",
"rov_race_human_name": "Human",
"rov_race_human_desc": "The versatile founders of Midgard. Balanced stats with no specific weaknesses.",
"rov_race_fenrir_name": "Fenrir",
"rov_race_fenrir_desc": "Cursed by the blood of the wolf. Fast and deadly, but vulnerable to silver.",
"rov_race_skadi_name": "Skadi",
"rov_race_skadi_desc": "Children of the mountains. Resistant to frost, at home in the freezing cold.",
"rov_race_skeleton_name": "Skeleton",
"rov_race_skeleton_desc": "Undead warriors. Immune to poison, but brittle against blunt trauma.",
"rov_race_aswid_name": "Aswid",
"rov_race_aswid_desc": "Fierce night stalker. Strong and resilient, transforms into a bat.",
"rov_race_furling_name": "Furling",
"rov_race_furling_desc": "Cunning goblin-like creatures. Agile and resourceful.",
"rov_race_trol_name": "Trol",
"rov_race_trol_desc": "Massive brute strength. Towering over others, at peace with the Black Forest - but fire burns a Trol $1% harder than anyone else.",
"rov_race_draugh_name": "Draugh",
"rov_race_draugh_desc": "A decaying undead warrior fueled by dark magic and extreme metal.",
"rov_race_dvergar_name": "Dvergar",
"rov_race_dvergar_desc": "Small, stubborn smiths of the deep. Frail of frame, but masters of metal, mine and market.",
"rov_race_trenta_name": "Trenta",
"rov_race_trenta_desc": "Tree-born folk, kin to root and leaf. Patient and hard to fell.",
"rov_race_sverm_name": "Sverm",
"rov_race_sverm_desc": "Chitin-born swarm kin. Armoured from birth and never slowed, venomous, at peace with every crawling thing - but blunt trauma and fire find the seams."
}

View file

@ -0,0 +1,38 @@
{
"rov_menu_choose_race": "Scegli la tua razza",
"rov_menu_ok": "OK",
"rov_menu_back": "Indietro",
"rov_race_human_name": "Umano",
"rov_race_human_desc": "I versatili fondatori di Midgard. Statistiche equilibrate, senza debolezze particolari.",
"rov_race_fenrir_name": "Fenrir",
"rov_race_fenrir_desc": "Maledetti dal sangue del lupo. Veloci e letali, ma vulnerabili all'argento.",
"rov_race_skadi_name": "Skadi",
"rov_race_skadi_desc": "Figli delle montagne. Resistenti al gelo, a casa loro nel freddo più rigido.",
"rov_race_skeleton_name": "Scheletro",
"rov_race_skeleton_desc": "Guerrieri non morti. Immuni al veleno, ma fragili contro i colpi contundenti.",
"rov_race_aswid_name": "Aswid",
"rov_race_aswid_desc": "Feroce cacciatore notturno. Forte e resistente, si trasforma in pipistrello.",
"rov_race_furling_name": "Furling",
"rov_race_furling_desc": "Astute creature simili a goblin. Agili e piene di risorse.",
"rov_race_trol_name": "Trol",
"rov_race_trol_desc": "Forza bruta smisurata. Sovrasta tutti gli altri ed è in pace con la Foresta Nera, ma il fuoco brucia un Trol il $1% in più di chiunque altro.",
"rov_race_draugh_name": "Draugh",
"rov_race_draugh_desc": "Un guerriero non morto in decomposizione, alimentato da magia oscura e metallo estremo.",
"rov_race_dvergar_name": "Dvergar",
"rov_race_dvergar_desc": "Piccoli e testardi fabbri del profondo. Fragili nel fisico, ma maestri di metallo, miniera e mercato.",
"rov_race_trenta_name": "Trenta",
"rov_race_trenta_desc": "Popolo nato dagli alberi, parente di radici e foglie. Paziente e difficile da abbattere.",
"rov_race_sverm_name": "Sverm",
"rov_race_sverm_desc": "Stirpe dello sciame nata dalla chitina. Corazzata dalla nascita e mai rallentata, velenosa, in pace con ogni cosa che striscia, ma i colpi contundenti e il fuoco trovano le giunture."
}