当前位置:网站首页>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
边栏推荐
- transformer坑了多少算力
- Introduction to AMBA
- MySQL information_ Schema database
- Halcon image calibration enables subsequent image processing to become the same as the template image
- (4) Canal multi instance use
- 19. Framebuffer application programming
- How to get the parent node of all nodes in El tree
- VB. Net calls ffmpeg to simply process video (class Library-6)
- Descriptive analysis of data distribution characteristics (data exploration)
- 我的NVIDIA开发者之旅——优化显卡性能
猜你喜欢
QT 获取随机颜色值设置label背景色 代码
AWT介绍
Input displays the currently selected picture
ansys命令
JS execution mechanism
Actual cases and optimization solutions of cloud native architecture
LayoutManager布局管理器:FlowLayout、BorderLayout、GridLayout、GridBagLayout、CardLayout、BoxLayout
VB. Net GIF (making and disassembling - optimizing code, class library - 5)
Overview of relevant subclasses of beanfactorypostprocessor and beanpostprocessor
BUU-Reverse-easyre
随机推荐
BUU-Crypto-[HDCTF2019]basic rsa
Yiwen unlocks Huawei's new cloud skills - the whole process of aiot development [device access - ESP end-to-side data collection [mqtt]- real time data analysis] (step-by-step screenshot is more detai
Sword finger offer II 038 Daily temperature
我的NVIDIA开发者之旅——优化显卡性能
tutle时钟改进版
Kubernets first meeting
[Chongqing Guangdong education] electronic circuit homework question bank of RTVU secondary school
js获取对象中嵌套的属性值
Understanding of cross domain and how to solve cross domain problems
Easy change
How to get the parent node of all nodes in El tree
JS execution mechanism
fastjson
Viewing and using binary log of MySQL
left_ and_ right_ Net interpretable design
Excel 比较日器
实用的小工具指令
接地继电器DD-1/60
Impact relay jc-7/11/dc110v
Review | categories and mechanisms of action of covid-19 neutralizing antibodies and small molecule drugs