1. But weidu already has all the information about which files were loaded by LANGUAGE, and if they have been converted, right? In that case, I don't see the purpose of having reload_array variable in the first place, it only opens a human error possibility.
2. I see. So if I need to skip convert for a file, I should keep in mind that it will be skipped in all languages.
3. What's the best practice for handling TRA currently, then? Supposing that I have multiple languages, multiple scripts and dialogs, and custom weidu prompts?
Should TRA be split per dialog and loaded on COMPILE with AUTO_TRA? Setup and weidu prompts into no-convert separate files? And the rest of in-game text put into common "text.tra"?
AUTO_TRA ~%MOD_FOLDER%/tra/%s~
ALWAYS
ACTION_IF ENGINE_IS ~bgee bg2ee iwdee eet~ BEGIN
ACTION_DEFINE_ARRAY charsetsNoConvertArray BEGIN setup weidu END
ACTION_DEFINE_ARRAY charsetsReloadArray BEGIN text END
LAF ~HANDLE_CHARSETS~
INT_VAR
infer_charsets = 1
STR_VAR
tra_path = ~%MOD_FOLDER%/tra~
iconv_path = ~%MOD_FOLDER%/tools/iconv~
noconvert_array = charsetsNoConvertArray
reload_array = charsetsReloadArray
END
END
END
LANGUAGE ~English~ ~english~ ~%MOD_FOLDER%/tra/english/text.tra~ ~%MOD_FOLDER%/tra/english/setup.tra~ ~%MOD_FOLDER%/tra/english/weidu.tra~
LANGUAGE ~Deutsch~ ~german~ ~%MOD_FOLDER%/tra/german/text.tra~ ~%MOD_FOLDER%/tra/german/setup.tra~ ~%MOD_FOLDER%/tra/german/weidu.tra~