i think, most of modders, especially who made localization, must to know.
shortly: when you produce final file, need to rename it to TRANSLATION.DAT and place to directory as in main game.
if you unpack main game PAK file by GUTS, it will be inside MEDIA direcotory..
Ummm...
for me, it
G:\Games\Torchlight 2\MEDIA\TRANSLATIONS\RUSSIAN\RATRANSLATION.DAT
before, i made empty mod, named dummy.
so, all i did, just created directories and file inside:
G:\Games\Torchlight 2\mods\dummy\media\TRANSLATIONS\RUSSIAN\TRANSLATION.DAT
then build mod and added to mod list at first position.
of course, if need to add unimplemented language, you will need to make additional file like
G:\Games\Torchlight 2\MEDIA\TRANSLATIONS\RUSSIAN.DAT
with content
[LANGUAGE]
<STRING>DISPLAYNAME:Pусский
<STRING>NAME:RUSSIAN
<INTEGER>AUDIO_TRACK:3
<STRING>TRANSLATIONFILE:MEDIA/TRANSLATIONS/RUSSIAN/TRANSLATION.dat
<INTEGER>ID:2
[FOLDERPAIR]
<STRING>ORIGINAL:MEDIA/UI/
<STRING>TRANSLATED:MEDIA/TRANSLATIONS/RUSSIAN/UI/
[/FOLDERPAIR]
[FOLDERPAIR]
<STRING>ORIGINAL:MEDIA/
<STRING>TRANSLATED:MEDIA/TRANSLATIONS/RUSSIAN/RANDOMNAMES/
[/FOLDERPAIR]
[/LANGUAGE]
THAT JUST EXISTING GAME EXAMPLE
sorry, i not too PRO in documentation writing. I hope, Kva3imoda can describe it better.
PS. almost implemented separated code for different internet translation services, not yandex only, will add to program soon.