[Scummvm-devel] Broken Sword 2 Finnish version

Torbjörn Andersson eriktorbjorn at telia.com
Mon Jan 22 20:42:36 CET 2007


Curt Coder wrote:

> Would it be a good idea to add language detection to the sword2 engine?
> Extract the MD5 from text.clu?

Technically speaking, there isn't much need for it, really. The engine
already checks, at runtime, which language it is so that it can use the
appropriate font for the text. It checks by looking up the text for
"save". If it's "tallenna", it uses Finnish fonts, if it's "zapisz" it
uses Polish fonts, and otherwise it uses the default fonts.

Similarly, it sets the window title by looking up its own name in the
text resources. (Amusingly, an old unused function used to say that the
default name of the game was "Some game or other, part 86".)

So the only reason to have language detection in the game detector would
be to have it fill in the translated title of the game by default when
adding the game to ScummVM.

Torbjörn




More information about the Scummvm-devel mailing list