当前位置:网站首页>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
边栏推荐
- FRP intranet penetration, reverse proxy
- Excel 比较日器
- Halcon图片标定,使得后续图片处理过后变成与模板图片一样
- Compound nonlinear feedback control (2)
- js如何将秒转换成时分秒显示
- C language simple student management system (including source code)
- 如何展开Collapse 的所有折叠面板
- Win10 clear quick access - leave no trace
- Take you to quickly learn how to use qsort and simulate qsort
- XII Golang others
猜你喜欢
如何避免 JVM 内存泄漏?
Design and implementation of redis 7.0 multi part AOF
Configure cross compilation tool chain and environment variables
Halcon image calibration enables subsequent image processing to become the same as the template image
A little understanding of GSLB (global server load balance) technology
JS execution mechanism
QT QTableWidget 表格列置顶需求的思路和代码
LayoutManager布局管理器:FlowLayout、BorderLayout、GridLayout、GridBagLayout、CardLayout、BoxLayout
谷歌 Chrome 浏览器将支持选取文字翻译功能
Accidentally deleted the data file of Clickhouse, can it be restored?
随机推荐
谷歌 Chrome 浏览器将支持选取文字翻译功能
1480. 一维数组的动态和
Arc135 a (time complexity analysis)
[microservice] Nacos cluster building and loading file configuration
Grounding relay dd-1/60
Tf/pytorch/cafe-cv/nlp/ audio - practical demonstration of full ecosystem CPU deployment - Intel openvino tool suite course summary (Part 2)
Programmers don't talk about morality, and use multithreading for Heisi's girlfriend
Error CVC complex type 2.4. a: Invalid content beginning with element 'base extension' was found. Should start with one of '{layoutlib}'.
BeanFactoryPostProcessor 与 BeanPostProcessor 相关子类概述
2022.7.3-----leetcode.556
Qt发布多语言国际化翻译
冲击继电器JC-7/11/DC110V
js如何将秒转换成时分秒显示
AWT常用组件、FileDialog文件选择框
input显示当前选择的图片
C语言练习题(递归)
Accidentally deleted the data file of Clickhouse, can it be restored?
BUU-Reverse-easyre
Basic concept of bus
High performance parallel programming and optimization | lesson 02 homework at home