mrtryhard / qt-ts-tools

Small utility to manipulate Qt's translation files.
Apache License 2.0
3 stars 0 forks source link

Feature request: add a release command #131

Open mrtryhard opened 1 month ago

mrtryhard commented 1 month ago

Enhancement's description:
While we're at it, a release command could be added. This command would compile TS file into a QM file. It needs to respect the Qt lrelease behaviour:

See Qt Linguist manual

Expected behavior / output:
Valid qm file

Sample translation file

n/a

Sample expected / correct output file

n/a

mrtryhard commented 1 month ago

Three solutions path:

Re-implement the QM algorithm from scratch

This is long and error prone, but standalone

Detect an lrelease executable and use it

This short and safe, but not standalone and risks of not working oit of the box.

Do not implement release command

This safe, standalone. This would respect the simple philosophy of the project. There is already a tool called lrelease that is focused on doing that very job.