Skip to content

A simple tool to convert qt translation file (ts) to other format (xlsx / csv) and vice versa

License

Notifications You must be signed in to change notification settings

XuToTo/qTsConverter

 
 

Repository files navigation

qTsConverter

linux macos w10 GitHub GitHub stars

This tool was born to convert .ts file of Qt translation in other format more editable using an office suite.

Features

  • conversion .ts -> .csv (and vice-versa)
  • conversion .ts -> .xlsx (and vice-versa)
  • automatically detect conversion type
  • convert multiple file in input

Usage (GUI version)

  • browse input filename (or multiple input)
  • choose output filename (or folder in case of multi input)
  • click convert button

To generate output.csv

example conversion ts -> csv

Usage (CLI version)

You can check te version with qTsConverter --version.

Perform a conversion:

qTsConverter ../../tests/files/scenario_multiline.ts ./lol.csv

Build

Compile from source and install:

$ git clone --recursive https://github.com/guerinoni/qTsConverter.git
$ cd scripts/
$ ./compile.sh
$ cd ../../build
$ sudo make install

If qTsConverter was installed with -DCMAKE_INSTALL_PREFIX=/usr/local (like compile.sh does) the shell variable LD_LIBRARY_PATH should contain /usr/local/lib and /usr/local/bin should be in the PATH variable. This allows to locate libraries that qTsConverter depends on and run it from any path.

To be able to open the output file and the output directory, xdg-mime must be set for the following filetypes:

  • application/excel
  • application/csv
  • text/csv
  • text/xml

For example:

xdg-mime default libreoffice-calc.desktop application/csv

About

A simple tool to convert qt translation file (ts) to other format (xlsx / csv) and vice versa

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 64.5%
  • CMake 16.5%
  • QML 12.3%
  • Shell 6.7%