How: Automatic Embedding of .qm Files in Software with Meson, Similar to CMake #13562
Answered
by
achieve-dream1221
achieve-dream1221
asked this question in
Q&A
Replies: 1 comment
-
ts_files = qt6.compile_translations(qresource : 'lang.qrc') <RCC>
<qresource prefix="">
<file>i18n/zh-CN.qm</file>
</qresource>
</RCC> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
achieve-dream1221
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, Meson can compile .ts files, but it lacks the ability to automatically generate .ts files and subsequently generate a .qm file's corresponding .qrc file, which is necessary for embedding translations into the software. In comparison, CMake can automate this process。
Beta Was this translation helpful? Give feedback.
All reactions