-
Notifications
You must be signed in to change notification settings - Fork 0
Translate Executable
Mike Manturov edited this page Sep 25, 2020
·
4 revisions
- Download and install Python 3 from the official website: https://www.python.org/downloads/windows/
- Python 3.6 version (or newer) is preferred, so download and execute
Windows x86 MSI installer
orWindows x86-64 MSI installer
depending on which Windows version you have. If you are not sure about your Windows version, just download and executeWindows x86 MSI installer
.
- Go to the translation project page: https://www.transifex.com/dwarf-fortress-translation/dwarf-fortress/
- Choose your language. Click on it.
- Click on
DF.exe hardcoded strings
resource - Click on the
Download file to translate
link in the window, which will be shown after the previous action. - Translation file with
.po
extension will be downloaded.
- Download the whole df-gettext-toolkit (zip) repository and unpack it into separate directory.
- Place there the
.po
file, which you've downloaded in the previous section. - Run the following command from a command line from the directory, where you unpacked the
df-gettext-toolkit
zip archive:
python -m df_gettext_toolkit.po2csv po-filename.po dictionary.csv
Notes:
-
po-filename.po
must be replaced with the actual file name of the downloaded.po
file - You can create
.bat
file with this command to run it with a double click.
- Like in the previous section, download the whole dfrus (zip) repository and unpack it into a separate directory.
- Place
dictionary.csv
file you've got in the previous section into that directory - Run the following command from a command line:
python -m dfrus.dfrus -p "d:\Games\df_42_06_win_s\Dwarf Fortress.exe" -d dictionary.csv --codepage cp850
Notes:
-
"d:\...\Dwarf Fortress.exe"
must be replaced with the actual path to the Dwarf Fortress executable. The new (translated) executable will be created in the same directory with the nameDwarf Fortress Patched.exe
. -
cp850
must be replaced with the dos-codepage which supports your language (you can consult with this page). Currently supported codepages are:cp737
(Greek),cp850
(Multilingual - Latin 1),cp860
(Portugal),cp866
(DOS Cyrillic),cp1251
(Windows Cyrillic). If codepage of your language is not supported you can send me a message with your request (see contacts at the bottom of this page).
- Edit init.txt in the
data\init
directory of the game, and make[TRUETYPE:YES]
and[PRINT_MODE:2D]
there. - Finally, run the
Dwarf Fortress Patched.exe
If you have troubles with some step here, you can write me a message, I will try to help you: