Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: There is an Project to translate DWarf Fortress in other Language BUT...........  (Read 1954 times)

Seradest

  • Bay Watcher
    • View Profile

Here is the Project site https://github.com/dfint/
Question is does this work or is it waste of time ?

My natural Tong is German and i would love to see all text in DWF in my language
But is it even possible ? and when yes how ?
Many other players told me its not possible because its hardcoded in the source code and cant be modded
Logged

PatrikLundell

  • Bay Watcher
    • View Profile

It's probably a waste of time as the text is compiled from snippets both in raw files and in code. The snippets are then combined by code that places these snippets in the order used by English, and I believe it also does things like adding "a" or "an" as appropriate (for English). The code doesn't have any support for the German gender concept applied to everything, for instance.
Logged

Laterigrade

  • Bay Watcher
  • Is that a crab with
    • View Profile

Here is the Project site https://github.com/dfint/
Question is does this work or is it waste of time ?

My natural Tong is German and i would love to see all text in DWF in my language
But is it even possible ? and when yes how ?
Many other players told me its not possible because its hardcoded in the source code and cant be modded
Das wäre sehr schwierig wegen des letzten Grundes, ja. Alles, was im Spiel gesagt wird, ist schon da, im Quellcode des Spiels. Verschiedene Teile werden im Spiel verbunden, um die Gespräche und die Gedanken der Zwerge zu machen. Deswegen wird das wahrscheinlich nie möglich sein; Toady hat gesagt, dass er den Quellcode nie veröffentlichen wird, denke ich. Vielleicht kann ich den Ort, in dem er das gesagt hat, für dich finden.

(tut mir Leid, dass mein Deutsch so schlecht ist; meine Muttersprache ist Englisch)
Logged
and the quadriplegic toothless vampire killed me effortlessly after that
bool IsARealBoy = false
dropping clothes to pick up armor and then dropping armor to pick up clothes like some sort of cyclical forever-striptease
if a year passes, add one to age; social experiment

Moeteru

  • Bay Watcher
    • View Profile

It's definitely possible, although as others have said it's not as simple as a one-to-one string replacement because different languages use different grammar.

I'm about 90% sure you could do it all in dfhack, at least for fortress mode. It would be a matter of adding hooks to (or even completely replacing) every screen where text is displayed and writing your own code for generating text descriptions from raw game data.

That repository you linked does seem to do it in a slightly smart way. If I'm reading it correctly it performs two translation passes. The first is low level, translating individual words and sentence fragments before they're assembled into full sentences. The output of the first pass is sentences using Russian words but with a bit of English grammar mixed in. The second pass happens after complete sentences have been generated and is designed to fix those grammatical errors. I haven't tried running the code and I don't speak Russian so I can't comment on how well it works, but the basic idea is reasonable.
Logged

FrankVill

  • Bay Watcher
    • View Profile

There is a project for translating DF to another language. This is the post:

http://www.bay12forums.com/smf/index.php?topic=108721.0

People are translating words and sentences in Transifex:

https://www.transifex.com/dwarf-fortress-translation/dwarf-fortress/

You can contribute translating it to your native idiom.

And in this web I supose that it is the program to convert DF words, but I don't understand how this part works, sorry:

https://github.com/dfint/df-gettext-toolkit/tree/master/df_gettext_toolkit
« Last Edit: August 16, 2021, 04:06:57 pm by FrankVill »
Logged