1
0
Fork 0
mirror of synced 2024-05-03 20:23:01 +12:00
Rare/misc/py2ts.sh
loathingKernel 8a3bdbdd91 Rare: Improve translation handling
* Remove base Qt translations from repo, load translations from Qt itself
* Prefix translation `qm` files with `rare_`.
* Rename `translation_source.ts` to simply `source.ts`
* If the selected language matches the system local, remove the option from the configuration.
2024-02-12 21:52:08 +02:00

12 lines
263 B
Bash
Executable file

#!/bin/sh
cwd="$(pwd)"
cd "$(dirname "$0")"/.. || exit
#py_files=$(find rare -iname "*.py" -not -path rare/ui)
#ui_files=$(find rare/ui -iname "*.ui")
pylupdate5 -noobsolete $(find rare/ -iname "*.py") -ts rare/resources/languages/source.ts
cd "$cwd" || exit