Commit d766542
refactor: simplify Qt5 translation generation
Remove unnecessary find_program call for lrelease in Qt5 build
configuration
Use direct lrelease command instead of QT_LRELEASE_EXECUTABLE variable
Remove redundant add_custom_target for translations since QM files are
already handled as dependencies
This simplifies the build configuration and avoids potential issues with
lrelease executable detection
Influence:
1. Verify Qt5 builds still generate translation files correctly
2. Test that language switching works properly in the application
3. Confirm build process completes without lrelease-related errors
4. Check that all translation files are properly included in the final
binary
refactor: 简化 Qt5 翻译生成流程
移除 Qt5 构建配置中不必要的 lrelease 程序查找调用
直接使用 lrelease 命令替代 QT_LRELEASE_EXECUTABLE 变量
移除冗余的 translations 自定义目标,因为 QM 文件已作为依赖项处理
这简化了构建配置并避免了 lrelease 可执行文件检测的潜在问题
Influence:
1. 验证 Qt5 构建仍能正确生成翻译文件
2. 测试应用程序中的语言切换功能正常工作
3. 确认构建过程不会出现 lrelease 相关错误
4. 检查所有翻译文件是否正确包含在最终二进制文件中1 parent a3de818 commit d766542
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
94 | | - | |
| 93 | + | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
100 | | - | |
101 | 99 | | |
102 | 100 | | |
103 | 101 | | |
| |||
0 commit comments