当前位置:网站首页>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边栏推荐
- Thinkphp6.0 middleware with limited access frequency think throttle
- Impact relay jc-7/11/dc110v
- MySQL information_ Schema database
- js如何将秒转换成时分秒显示
- buuctf-pwn write-ups (8)
- Invalid revision: 3.18.1-g262b901-dirty
- Tutle clock improved version
- [microservice] Nacos cluster building and loading file configuration
- ES6 modularization
- HMS v1.0 appointment. PHP editid parameter SQL injection vulnerability (cve-2022-25491)
猜你喜欢
随机推荐
如何获取el-tree中所有节点的父节点
left_ and_ right_ Net interpretable design
[Excel] 数据透视图
A little understanding of GSLB (global server load balance) technology
JS扁平化数形结构的数组
ansys命令
Easy change
19.Frambuffer应用编程
gslb(global server load balance)技术的一点理解
fastjson
C语言练习题(递归)
剑指 Offer II 038. 每日温度
Accidentally deleted the data file of Clickhouse, can it be restored?
Google Chrome browser will support the function of selecting text translation
Invalid revision: 3.18.1-g262b901-dirty
BUU-Crypto-[GUET-CTF2019]BabyRSA
配置交叉编译工具链和环境变量
HMS v1.0 appointment.php editid参数 SQL注入漏洞(CVE-2022-25491)
JS get the attribute values nested in the object
MySQL information_ Schema database









