How to combine several language packs
From TWC Wiki
[edit] How to combine several "language packs"
Because a lot of people asked me how they can add more unit names to a language file in my Additional Units Mod (AUM), I've created here a FAQ for you all.
Here is a step-by-step guide how-to combine several language files together.
Link to the Pack File Manager. You can open all language packs with the PFM. Please create a backup before you edit the language pack.
If you use another mod or language file which replaces the localisation.loc you have to merge the language packs that all unit names and descriptions are shown.
As a base language pack I recommend the Unit Pack Compatibility Project (UPC) which is available in English + German.
In these two language packs are several mods already merged and both will be updated regularly by applelover or Swiss Halberdier.
- open the unit_pack_compatibility_project.pack
- open the “text” directory
- click on localisation.loc and on the right side you see the content in a table with three columns
- click on Export TSV to create an exported TSV file and save it in UNICODE format.
You can call it: unit_pack_compatibility_project.tsv
- open your other_language.pack which you want to merge:
- open the “text” directory
- click on localisation.loc
- click on Export TSV to create an exported TSV file and save it in UNICODE format. You can call it: name_ of_ mod.tsv
Now you should use a text editor like Notepad to open the TSV files.
- open the name_of_mod.tsv and go to the end of the file. Then scroll up and you'll see where the unit names begin. Normally they're located at the end of the file. But some modders integrate the unit names at the top of the file.
Then mark all new unit entries of your name_of_mod.tsv and copy them.
- open the unit_pack_compatibility_project.tsv and paste the copied entries under the existing rows at the end of the file. Don't overwrite the other entries and don't change the spacings in this file.
- save the call_it_like_you_want_combined.tsv.
- now copy your downloaded unit_pack_compatibility_project.pack and rename it for example to call_it_like_you_want_combined.pack. You can call this file like you want, but it is recommended that you use the prefix patch_.
- open the new call_it_like_you_want_combined.pack
- open the “text” directory
- click on localisation.loc
- click on Import TSV and add the call_it_like_you_want_combined.tsv to the pack file.
- then save and copy the new created call_it_like_you_want_combined.pack to your ETW data directory.
After this whole process you can see the unit names from both mods.
Cheers
Swiss Halberdier