Multilingual Version of Powder Toy

  • Iodizon
    19th Feb 2016 Member 7 Permalink

    I've been working on the globalization/localization of TPT recently, and I just got it working normally.

     

    I've integrated all the text into one Lang.h file where you can find in data/ folder, and users of any language can simply translate those texts without affecting the whole program.
    For languages with special characters other than latin letters, there is a makefont.py in the font/ folder with which you can generate a font file automatically, specifying a .ttf file. 
    To build the project, you need to install ImageMagick and Boost C++ Libraries, and everything else you need to build with SCons as shown in the wiki.
    With these installed, running build_full.bat should automatically generate the font files and build a .exe file statically. If you can't get these done properly, just send me a translation of the file Lang.h, and I will build it for you, for the sake of globalizing.

     

    To do this, I overloaded almost all the string functions related in the displaying part, and made things pretty messy. I'm not much experienced with C++ developing, so this might be the best I can do. Also, I'm not sure whether it works on platforms other than Windows (probably not).
    Welcome to report bugs, make suggestions and contribute, and please contact me if you would like to build a TPT translated to your own native language.

     

    Again, thanks to all the developers for making such a fantastic game!

     

    Github: https://github.com/HydroH/The-Powder-Toy/tree/dev-global

    Mail: iodizon@163.com

     

    A screenshot of a Chinese version of TPT:

    TPT-cn

     

    Download of the Chinese version:

    https://github.com/HydroH/The-Powder-Toy/releases

    Edited once by Iodizon. Last: 19th Feb 2016