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,16 @@
modcontent-installprompt =
Red Alert requires artwork and audio from the original game.
Quick Install will automatically download this content (without music or videos) from a mirror of the 2008 Red Alert freeware release.
Advanced Install includes options for copying the music, videos, and other content from an original game disc or digital installation.
modcontent-header =
Game content may be extracted from the original game discs or an existing digital install. OpenRA can also download the base game files from an online mirror of the 2008 freeware release of RA.
modcontent-package-basefiles = Base Game Files
modcontent-package-aftermathfiles = Aftermath Expansion Files
modcontent-package-deserttileset = C&C Desert Tileset
modcontent-package-basemusic = Base Game Music
modcontent-package-allied = Allied Campaign Briefings
modcontent-package-soviet = Soviet Campaign Briefings
modcontent-package-counterstrikemusic = Counterstrike Music
modcontent-package-aftermathmusic = Aftermath Music