Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.2 KB

README.md

File metadata and controls

30 lines (20 loc) · 1.2 KB

df-translation-toolkit

Test Coverage Status Maintainability

Toolset to convert text from DF between different formats and prepare it for use in the game

Note
There are ready to use csv files for most of languages from transifex: https://github.com/dfint/autobuild

Installation

You need Python 3.10 (or higher) and poetry (pip install poetry).

Clone or download the repo, then install dependencies it with poetry install command

Usage examples

poetry run convert hardcoded_steam.po dfint_dictionary.csv cp1251
poetry run create_pot from_steam_text "./Dwarf Fortress/data/vanilla" ./pot_files/
poetry run create_pot from_string_dump stringdump.txt hardcoded_steam.pot