Qt *.ts files automatic translator using Yandex translation api.
- Pure C project
- Easy and fast
- Minimal dependencies - use only jasmine and argparse as submodules for json response parsing and command line processing. Curl is external library.
- Translated file is equal the source except translated block.
- Now hardcoded en-ru translation and api key + force translation - translate all source blocks
Building almost the same for Windows/Linux.
- Install curl(with SSL support)
- Ubuntu: sudo apt-get install libcurl4-openssl-dev
- Windows: download curl from official site and build it using instructions in winbuild/BUILD.WINDOWS.txt. Use mode=static and enable ssl support
- Checkout project:
- git clone
- cd tstr
- git submodule init
- git submodule update
- Generate make files
- Linux: mkdir build && cd build && cmake .. && make
- Windows: mkdir build. set CMAKe_PREFIX_PATH=your_curl_build_location. Win64/VC2015 project: cmake .. -G"Visual Studio 14 Win64". Open solution and compile.
- Usage(now in developing still):
- Linux: cat some_file.ts | ./tstr > translated.ts
- Windows: type some_file.ts | tstr > translated.ts