about the TR () function in Qt
Drift in the forum and often encounter a problem with TR-related problems. There are two kinds of people who use tr: (1) Because of the old problem of discovering Chinese, then search, find a lot of people with TR, so
Document directory
A brief review of Chinese qstring Problems
Where is TR defined?
During the forum, we often encounter tr-related problems. There are two types of people using TR:
(1) because he found that there was a problem with the old
Drift in the forum and often encounter a problem with TR-related problems. There are two kinds of people who use tr: (1) Because of the old problem of discovering Chinese, then search, find a lot of people with TR, so he also began to use TR (2)
By using TR, you can easily implement many of the most basic features of SED. You can see TR as a (extremely) simplified variant of sed: it can replace one character with another, or you can completely remove some characters. You can also use it to
If our program needs to be translated into another language, the QT linguist and QT translation tools have provided us with a set of solutions to solve this problem, they provide methods for organizing and processing translated strings.
To prepare
ArticleDirectory
Purpose
Syntax
Description
Flag
Exit status
Example
Original article link
# Echo "ABCD" | tr 'a B'
Bbcd
Tr command
Purpose
Conversion character.
Functional Requirements:Network disk Client to be able to achieve multi-language switching, the first version to support the Chinese and English switching. In the implementation process to feel QT to multi-language support is very good, the
briefly summarizes the following methods
Unicode as the core
Using the GNU GetText
QT-based multilingual development tool: QT linguist
Unicode as the core
Reference: http://www.ibm.com/developerworks/cn/linux/l-cn-ccppglb/
Description: Qt provides an international solution that enables dynamic language switching without restarting the application during program use.
1. Steps to achieve language internationalization
To achieve language internationalization, you need
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.