Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Code translation method and device, computer equipment and storage medium

A code and source code technology, applied in the computer field, can solve the problems of poor reliability of translation results, difficulty in ensuring code translation uniformity, and low code translation efficiency.

Pending Publication Date: 2019-08-16
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF0 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the traditional code internationalization translation process requires the cooperation of business analysts and developers. After the developers manually extract the code fragments to be translated from the code, a large amount of translation work is performed manually, which requires high time and labor costs. It is difficult to accurately and comprehensively identify all code fragments that need to be translated during code internationalization translation, and it is also difficult to ensure the uniformity of code translation, resulting in poor reliability of translation results and low efficiency of code translation

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
  • Code translation method and device, computer equipment and storage medium
  • Code translation method and device, computer equipment and storage medium
  • Code translation method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] In order to make the purpose, technical solutions, and advantages of this application clearer, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the application, and not used to limit the application.

[0021] The code translation method provided in this application can be applied to figure 1 In the application environment shown. Wherein, the code server 102 and the translation server 104 communicate through the network. Among them, the code server 102 and the translation server 104 can be implemented by independent servers or a server cluster composed of multiple servers. After the code server 102 analyzes and processes the source code file to be translated, it can obtain a to-be-translated analysis result set containing the to-be-translated code segment and corresponding segment location information. The cod...

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 relates to a code translation method and device, computer equipment and a storage medium. The method comprises the steps of obtaining a to-be-translated analysis result set obtained by analyzing a to-be-translated source code file, wherein the to-be-translated analysis result set comprises a to-be-translated code segment and corresponding segment positioning information; calling a translator interface to translate the to-be-translated code segment to obtain a translated code segment; replacing the to-be-translated source code file according to the fragment positioning informationcorresponding to the translated code fragment to generate a to-be-corrected source code file; obtaining a target translation detail report input for the source code file to be corrected, wherein thetarget translation detail report comprises a target correction item; and correcting the to-be-corrected source code file according to the fragment positioning information corresponding to the target correction item to generate a corrected source code file. By adopting the method, the code translation efficiency can be improved through the code quality tool.

Description

Technical field [0001] This application relates to the field of computer technology, in particular to a code translation method, device, computer equipment and storage medium. Background technique [0002] With the deepening of internationalization, the developed software system will face the needs of different regions and countries in the world, so it is necessary to translate the source code of the software system from the original language to a specific language. In the traditional way, business analysts usually collect translation requirements and write them into documents, and then submit them to software developers to modify the source code according to the documents. However, the traditional code internationalization translation process requires the cooperation of business analysts and developers to complete. After the developers manually extract the code fragments to be translated from the code, a large amount of translation work is performed manually, which requires high...

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
IPC IPC(8): G06F8/52
CPCG06F8/52
Inventor 邹檬帆计波方秉纲
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products