Expose mod.yaml content to localisation.

Mod metadata, load screens and mod content is all now sourced from ftl files, allowing these items to be translated.

Translations are now initialized as part of ModData creation, as currently they are made available too late for the usage we need here.

The "modcontent" mod learns a new parameter for "Content.TranslationFile" - this allows a mod to provide the path of a translation file to the mod which it can load. This allows mods such as ra, cnc, d2k, ts to own the translations for their ModContent, yet still make them accessible to the modcontent mod.

CheckFluentReference learns to validate all these new fields to ensure translations have been set.
This commit is contained in:
RoosterDragon
2024-09-23 19:58:33 +01:00
committed by Gustas
parent d1583e8587
commit bb17cfa179
36 changed files with 292 additions and 144 deletions

View File

@@ -0,0 +1,12 @@
modcontent-installprompt =
Dune 2000 requires artwork and audio from the original game.
Quick Install will automatically download this content (without music or videos) from an online mirror of the game files.
Advanced Install includes options for copying the music, videos, and other content from an original game disc.
modcontent-header =
The original game content may be copied from an original game disc, or downloaded from an online mirror of the game files.
modcontent-package-basefiles = Base Game Files
modcontent-package-106patch = 1.06 Patch Content
modcontent-package-music = Game Music
modcontent-package-briefings = Campaign Briefings