当前位置:网站首页>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_name
Four linguist
/* Open the translation language tool , Handle translation details , Generate corresponding qm file */
linguist my_project.ts
5、 ... and lrelease
/* Release multilingual translation */
lrelease my_project.ts -qm my_project.qm
边栏推荐
- Uninstall Google drive hard drive - you must exit the program to uninstall
- Component、Container容器常用API详解:Frame、Panel、ScrollPane
- Sword finger offer II 038 Daily temperature
- Kubernets first meeting
- Talk about the SQL server version of DTM sub transaction barrier function
- Design and implementation of tcp/ip series overview
- transformer坑了多少算力
- HMS v1.0 appointment.php editid参数 SQL注入漏洞(CVE-2022-25491)
- fastjson
- Compound nonlinear feedback control (2)
猜你喜欢
What is MQ?
Grounding relay dd-1/60
509. 斐波那契数、爬楼梯所有路径、爬楼梯最小花费
JS arguments parameter usage and explanation
Introduction to AMBA
【雕爷学编程】Arduino动手做(105)---压电陶瓷振动模块
BUU-Reverse-easyre
APScheduler如何设置任务不并发(即第一个任务执行完再执行下一个)?
Compound nonlinear feedback control (2)
One click filtering to select Baidu online disk files
随机推荐
Viewing and using binary log of MySQL
Experience weekly report no. 102 (July 4, 2022)
Arc135 C (the proof is not very clear)
left_ and_ right_ Net normal version
Descriptive analysis of data distribution characteristics (data exploration)
js如何将秒转换成时分秒显示
2022.7.3-----leetcode.556
How to determine whether an array contains an element
Canoe panel learning video
我的NVIDIA开发者之旅——优化显卡性能
Zhanrui tankbang | jointly build, cooperate and win-win zhanrui core ecology
Basic concept of bus
【雕爷学编程】Arduino动手做(105)---压电陶瓷振动模块
High performance parallel programming and optimization | lesson 02 homework at home
Error CVC complex type 2.4. a: Invalid content beginning with element 'base extension' was found. Should start with one of '{layoutlib}'.
接地继电器DD-1/60
XII Golang others
C语言中的函数(详解)
Impact relay jc-7/11/dc110v
AWT介绍