Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.29 KB

README.md

File metadata and controls

30 lines (24 loc) · 1.29 KB

tstr

Qt *.ts files automatic translator using Yandex translation api.

Features

  • 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

Building almost the same for Windows/Linux.

  1. 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
  1. Checkout project:
  • git clone
  • cd tstr
  • git submodule init
  • git submodule update
  1. 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.
  1. Usage(now in developing still):
  • Linux: cat some_file.ts | ./tstr > translated.ts
  • Windows: type some_file.ts | tstr > translated.ts