The translations the Language Patcher uses are stored in the translations.txt file. If you want to use the Language Patcher to release a non-English language patch, or an alerternate English language patch, all you'd need to do would be to modify this file. The file though must be formatted in the following ways:
- The file must be encoded in UTC-2 Little Endian.
- The file must be seperated into groups. The first line of a group is the file you're translating, and every line after that is a translation for that file. Look at the translations.txt file included in the Language Patcher as an example.
- The Language Patcher can modify 4 different files, as well as the in-game help files:
- .\language\local_data.dat (contains UI element text)
- .\language\local_sync_data.dat (contains red error text)
- .\data\o_table_quest_text_data.edf (contains quest text)
- .\data\o_table_text_all_data.edf (contains all other text)
- .\script\help\####.htm (contains in-game help text, use the extract option to get a list of all help files)
- A translation line must be formatted depending on the file it belongs to:
- "language" file translations must be formatted as: ID="Translation"
- "data" file translations must be formatted as: Category:ID:Translation
- "script" file translations must be formatted as: Translation
- You can also modify the text found in the Language Patcher itself, and set default values for the Language Patcher's settings. To do this, at the top of either the "translations.txt" or "translations_preferred.txt" files, add the following lines (at the end of each line you can also add ";true" to enable that option by default, or ";false" to disable it):
Information on how to get the information needed to identify a line of text using the Language Patcher can be found here
. Using the Language Patcher's "export" option will also create a file will all modifiable translations in the correct format. Using the example I mention there, a complete translations.txt file that only translates the name of the grey wolf would be:
You can also use the DBO Unpacker
to extract all of the "language" files, which can be used as a base for translations.txt.
The Language Patcher also allows for 3 different tiers of translation files: translations.txt, translations_alternate.txt, and translations_preferred.txt. These files allow users to set the priority of certain translations, and the relation between them is as follows:
translations_preferred.txt > translations.txt > translations_alternate.txt
Each file must be formatted exactly the same as the translations.txt file. When the Language Patcher is deciding which translation to use, it will search through all 3 files, and choose the one with the highest priority.