Skip to content

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

License

Notifications You must be signed in to change notification settings

dfint/df-translation-toolkit

Repository files navigation

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 uv (pipx install uv).

Clone or download the repo, then install dependencies with uv sync command (optional, they will be installed automatically on a command run).

Usage examples

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages