当前位置:网站首页>QT releases multilingual International Translation
QT releases multilingual International Translation
2022-07-04 05:54:00 【csdn_ zhangchunfeng】
In the use of Qt In the process of project development , Sometimes you need to release international versions in multiple languages , This article briefly introduces the use of Qt The steps to achieve the goal of international translation with its own tools .
One modify pro
stay pro Add
TRANSLATIONS = my_project.ts
Two Adjust the code
If in .h、.cpp Add the sentence to be translated
tr("TEXT")
If in qml Add the translated sentences in
qsTr("TEXT")
3、 ... and lupdate
/* Produce corresponding ts file */
lupdate my_project_nameFour linguist
/* Open the translation language tool , Handle translation details , Generate corresponding qm file */
linguist my_project.ts5、 ... and lrelease
/* Release multilingual translation */
lrelease my_project.ts -qm my_project.qm边栏推荐
- Recommended system 1 --- framework
- Penetration tool - sqlmap
- Configure cross compilation tool chain and environment variables
- VB. Net GIF (making and disassembling - optimizing code, class library - 5)
- Wechat applet +php realizes authorized login
- FreeRTOS 中 RISC-V-Qemu-virt_GCC 的 锁机制 分析
- Halcon image calibration enables subsequent image processing to become the same as the template image
- QT 获取随机颜色值设置label背景色 代码
- (4) Canal multi instance use
- 报错cvc-complex-type.2.4.a: 发现了以元素 ‘base-extension‘ 开头的无效内容。应以 ‘{layoutlib}‘ 之一开头。
猜你喜欢

JS扁平化数形结构的数组

1480. Dynamic sum of one-dimensional array

Sword finger offer II 038 Daily temperature

卸载Google Drive 硬盘-必须退出程序才能卸载
![[Excel] 数据透视图](/img/45/be87e4428a1d8ef66ef34a63d12fd4.png)
[Excel] 数据透视图
![[openvino+paddle] paddle detection / OCR / SEG export based on paddle2onnx](/img/a9/72791cbcc6c9da45e89450ab2820c1.jpg)
[openvino+paddle] paddle detection / OCR / SEG export based on paddle2onnx

input显示当前选择的图片

测试岗的中年危机该如何选择?是坚守还是另寻出路?且看下文

My NVIDIA developer journey - optimizing graphics card performance

如何避免 JVM 内存泄漏?
随机推荐
HMS v1.0 appointment. PHP editid parameter SQL injection vulnerability (cve-2022-25491)
XII Golang others
十二. golang其他
Input displays the currently selected picture
LayoutManager布局管理器:FlowLayout、BorderLayout、GridLayout、GridBagLayout、CardLayout、BoxLayout
Zhanrui tankbang | jointly build, cooperate and win-win zhanrui core ecology
1.1 history of Statistics
fastjson
Accidentally deleted the data file of Clickhouse, can it be restored?
Kubernets first meeting
Design and implementation of tcp/ip series overview
VB. Net GIF (making and disassembling - optimizing code, class library - 5)
实用的小工具指令
Programmers don't talk about morality, and use multithreading for Heisi's girlfriend
The end of the Internet is rural revitalization
总线的基本概念
谷歌 Chrome 浏览器将支持选取文字翻译功能
HMS v1.0 appointment.php editid参数 SQL注入漏洞(CVE-2022-25491)
Grounding relay dd-1/60
LC周赛300