Giter Club home page Giter Club logo

qtsconverter's Introduction

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 the version with qTsConverter --version.

Perform a conversion:

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

To create an excelfile without version information / without file locations, the cli can be invoked with two command line switches.

qTsConverter --no-version --no-location ../../tests/files/scenario_multiline.ts ./lol.xlsx

Build

Simple build

mkdir build
cd build
cmake ..
cmake --build .

Simple build only CLI

mkdir build
cd build
cmake -DBUILD_CLI:BOOL=ON -DCMAKE_PREFIX_PATH=/home/guerra/Qt/5.15.2/gcc_64/ ..
cmake --build .

Linux

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

Windows

Compile from source and install:

cmake -DCMAKE_BUILD_TYPE=Release -S . -B build_win_release
cmake --build build_win_release --parallel --config Release

As Administrator

cmake --install build_win_release

qtsconverter's People

Contributors

guerinoni avatar stivvo avatar dependabot[bot] avatar lsoest avatar kelteseth avatar andrearicchi avatar fededevi avatar github-actions[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.