Skip to content

mrtryhard/qt-ts-tools

Repository files navigation

qt-ts-tools

This repository contains suite of tools for manipulating Qt Framework's translation files, contained in a single executable.

Implemented functions

See qt-ts-tools --help for a list of operations in your version.

Sort

./qt-ts-tools sort my_file.ts -o my_file_sorted.ts

Limitations

  • Sorting might not be 100% identical to Qt's.
  • Some tags may become self-closing (e.g. <translation/> instead of <translation></translation>)

Planned work

In no particular order:

  • sort: outputs a sorted version of the provided file.
  • diff: outputs the differences between 2 translation files.
  • merge: merge 2 translation files into a single output.
  • extract: copy some specific elements via a filter (i.e. unfinished translations) to a new translation file.
  • strip: remove some specific elements via a filter (i.e. oldcomment nodes) from the provided file.

Philosophy

This tool aims to be simple to use and conservative in its decision. Therefore, no command shall modify the input file. If an input file is modified without being explicitly asked, it is an undesirable behavior.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Small utility to manipulate Qt's translation files.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages