Use CMake to update translation files
commit242874e705d3002f19bd4f582bcc339f40191733
authorsledgehammer999 <hammered999@gmail.com>
Sat, 28 May 2022 21:29:45 +0000 (29 00:29 +0300)
committersledgehammer999 <hammered999@gmail.com>
Sat, 28 May 2022 23:49:57 +0000 (29 02:49 +0300)
treea08e10dae4e4bc9a1156cbf0828952b7b4b0d861
parent2c9e1d942bb0ad0a65465bfcfa063d7d0fb3b519
Use CMake to update translation files

It uses lupdate directly.
Qt's `qt_add_lupdate()` cmake function doesn't help much.
First of all it is Qt6 only.
Secondly, our project is split into multiple targets but we need all
strings into a single .ts file per language.
Thirdly, it looks like it will skip source files that are added conditionally into the build
via cmake condition checking (eg DBUS source files). We need to gather all strings present
in the source files regardless of the build configuration.

On another note, this is a step towards reducing dependency on qmake/autoconf.
src/app/CMakeLists.txt