Frodo45127 / rpfm

Rusted PackFile Manager (RPFM) is a... reimplementation in Rust and Qt5 of PackFile Manager (PFM), one of the best modding tools for Total War Games.
MIT License
357 stars 57 forks source link

Is concatenating localisation files supported? #281

Open ilia-sharafutdinov opened 8 months ago

ilia-sharafutdinov commented 8 months ago

Hello!

Let's imagine, I'd like to create several packs, each of which should add specific lines to localisation.loc.

For instance, I have a pack called sikh_temple, adding a Sikh religious building and localisations specific to that building.

Then I have a pack called shia_islam, adding Shia Islam aside "just" Islam - and all localisations specific to that topic and nothing else.

Then, I'd like RPFM to be able to read both packs and append the localisation strings appearing there to vanilla localisation.loc.

Is that possible with RPFM? Is such a feature planned? Currently, I either concatenate such files with scripts or simply keep one big localisation.loc with everything I need.

Frodo45127 commented 8 months ago

In RPFM, you can merge tables and locs by selecting them, right-clicking them and clicking on "Merge". You can use that with all your locs + the localisation.loc file to make a loc file with all of them combined.

That's on RPFM's side. An alternative is using Runcher (a launcher for all games from empire to pharaoh). In it, under the launch options, select your language in "enable translations". One of the things that option does is exactly what you're asking for (merging all locs in your load order into the localisation.loc, fixing the "missing text when the game is not in english" bug in the process), though it only does it in games that only load loc entries from that file. And as it's done when launching the game, the user has to use that launcher for it to work.

ilia-sharafutdinov commented 8 months ago

I see. Thanks for the answer! And is concatenation possible using CLI?