Qt development-based multilingual entry generation method

A multi-language, entry technology, applied in natural language translation, creating/generating source code, special data processing applications, etc., can solve problems such as heavy workload, complex interface, inability to reuse existing entries, etc. The effect of developing efficiency, improving efficiency, and reducing the workload of manual translation

Active Publication Date: 2018-08-14
NR ELECTRIC CO LTD +1
View PDF9 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The above process involves many links and steps, especially the translation link, the interface is complex, manual input is required one by one, and the existing entries cannot be reused, the workload is heavy and the efficiency is slow

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Qt development-based multilingual entry generation method
  • Qt development-based multilingual entry generation method
  • Qt development-based multilingual entry generation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The technical scheme of the present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments, so that those skilled in the art can better understand the present invention and implement it, but the examples given are not intended to limit the present invention.

[0024] Such as figure 1 As shown, based on the multilingual term generation method developed by Qt, the term to be translated in Qt project can be automatically extracted, and the term can be managed by Excel file, which is convenient for translators to handle translation and comparison, and can automatically backfill and form qm file, which improves the Multilingual man-machine software development efficiency. Specifically include the following steps:

[0025] Step 1. Obtain and analyze the pro files of the Qt project and the pro files of the submodules to form a complete pro file list, and each pro file list item corresponds to a module to be t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a Qt development-based multilingual entry generation method. The method comprises the steps of 1, obtaining and analyzing pro files of a Qt project and pro files of sub-modulesto form a complete pro file list, wherein each pro file list item corresponds to a to-be-translated module; 2, for each to-be-translated module, calling lupdate.ext of Qt, and extracting entries marked with tr macro functions in source files to form a ts file of each to-be-translated module; 3, reading a ts file list, and outputting to-be-translated Excel entry files; 4, obtaining Excel entry files after tool-based automatic translation or human translation and revision, backfilling the entries of a specified language, generating ts files corresponding to the language, calling lrelease.ext ofQt, and generating qm files. The automation level of multilingual entry processing is improved, and the entries are organized and managed in an intuitive and visual mode, so that translators can perform input and revision conveniently; and existing entries can be automatically reused, so that the manual repeated input work is reduced.

Description

technical field [0001] The invention relates to a method for generating multilingual entry developed based on Qt. Background technique [0002] Qt is a cross-platform C++ graphical user interface application development framework developed by Trolltech in 1991. It can develop both GUI programs and non-GUI programs. In cross-platform development, the QT interface library has been applied. For C++ projects written based on QT, multilingual entries are usually processed according to the following steps: [0003] Step 1. In the cpp file, use the tr macro to identify the entry that needs to be translated. The string processed by the tr function can be extracted and translated into other languages ​​using tools, that is, for international use, such as QAction(tr(" Exit"), this); [0004] The second step is to manually call lupdate.exe of QT to form a ts file; [0005] The third step is to manually call the linguist.exe software of QT, open the ts file, and input the translati...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/30G06F8/38G06F17/28
CPCG06F8/315G06F8/38G06F40/40
Inventor 曾凯徐睿陈宏君刘鎏曹晖文继锋刘坤张延冬
Owner NR ELECTRIC CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products