CN110187887A - Automatic translating method and system for software development - Google Patents
Automatic translating method and system for software development Download PDFInfo
- Publication number
- CN110187887A CN110187887A CN201910442110.6A CN201910442110A CN110187887A CN 110187887 A CN110187887 A CN 110187887A CN 201910442110 A CN201910442110 A CN 201910442110A CN 110187887 A CN110187887 A CN 110187887A
- Authority
- CN
- China
- Prior art keywords
- translation
- translated
- word
- entry
- database
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 21
- 238000001514 detection method Methods 0.000 claims abstract description 12
- 238000012790 confirmation Methods 0.000 claims description 17
- 238000010586 diagram Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 3
- 230000010485 coping Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/40—Processing or translation of natural language
- G06F40/58—Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/51—Source to source
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Machine Translation (AREA)
Abstract
This application provides the automatic translating methods for software development, comprising the following steps: selects word to be translated;It detects and whether there is translation entry corresponding with word to be translated in translation database, if it is, will include the former code block corresponding with word to be translated of code block replacement for translating entry information.After selecting word to be translated, corresponding translation entry is found in translation database, it will include the former code block corresponding with word to be translated of code block replacement for translating entry information as long as when having corresponding translation entry in translation database, to realize automatic translation word to be translated, therefore during software development, having higher translation ability also without programmer can internationalize to software realization, to reduce the cost and difficulty for needing international software in exploitation.Present invention also provides the automatic translation systems for software development, including selecting module, translation detection module and code replacement module.
Description
[technical field]
This application involves field of computer technology, the more particularly, to automatic translating method and system of software development.
[background technique]
When software development, the access for coping with different parts of the world and country simultaneously is enabled it to, and be directed to various regions and nations
Access, provide the page or data corresponding, that meet visitor's reading habit, it is necessary to internationalize for software realization.At present
Existing in the international technology of software realization, it is desirable that programmer matches the translator unit for needing international word write-in
It sets in file, therefore, then programmer is necessarily required to have higher language translation ability.
[summary of the invention]
In order to which the programmer for keeping language translation ability weaker also can successfully internationalize to software realization, this application provides be used for
The automatic translating method of software development and automatic translation system for software development.
The application is implemented by the following technical solutions:
Automatic translating method for software development, comprising the following steps:
Select word to be translated;
It detects and whether there is translation entry corresponding with word to be translated in translation database, if it is, will include
Translate the former code block corresponding with word to be translated of code block replacement of entry information.
The as described above automatic translating method for being used for software development, if detect in translation database there is no with to
The corresponding translation entry of the word of translation then calls translation Cloud Server to generate lexical translation to be translated at appointed language
Translation result;
Receive the translation result of translation Cloud Server feedback;
Pop up translation result and request confirmation information;
If receiving translation result confirmation message, translation result is stored in and forms new translation item in translation database
Mesh.
Disclosed herein as well is the automatic translation systems for software development, comprising:
Selecting module is used to select word to be translated;
Detection module is translated, is used to detect in translation database with the presence or absence of translation item corresponding with word to be translated
Mesh;
Code replacement module, be used for will include translate entry information code block replacement it is former corresponding with word to be translated
Code block.
The automatic translation system as described above for being used for software development, comprising:
Calling module, be used for the translation detection module detect in translation database be not present and word phase to be translated
Call translation Cloud Server that lexical translation to be translated is generated translation result at appointed language when corresponding translation entry;
Receiving module is used to receive the translation result of translation Cloud Server feedback;
Request confirmation module is used for ejecting translation result and request confirmation information;
Memory module, is used to that translation result to be stored in translation database when receiving translation result confirmation message and is formed
New translation entry.
Compared with prior art, the application has the following advantages:
After the application is by selecting word to be translated, and Automatic-searching is corresponding with word to be translated turns in translation database
Translate entry, when having translation entry corresponding with word to be translated in translation database as long as automatically will include translation item
The former code block corresponding with word to be translated of code block replacement of mesh information, thus realize automatic translation word to be translated,
Therefore during software development, having higher translation ability also without programmer can internationalize to software realization, thus
Reduce the cost and difficulty for needing international software in exploitation.
[Detailed description of the invention]
In order to more clearly explain the technical solutions in the embodiments of the present application, needed in being described below to embodiment
Attached drawing is briefly described.
Fig. 1 is the flow chart of the first embodiment of the automatic translating method for software development;
Fig. 2 is the flow chart of the second embodiment of the automatic translating method for software development;
Fig. 3 is the structural schematic diagram of the first embodiment of the automatic translation system for software development;
Fig. 4 is the structural schematic diagram of the second embodiment of the automatic translation system for software development.
[specific embodiment]
As shown in Fig. 1 the idiographic flow schematic diagram for the first embodiment of the automatic translating method of software development, the use
It in the automatic translating method of software development is run under IntelliJ IDEA tool, this is used for the automatic turning of software development
Translate method the following steps are included:
S101 selects word to be translated.
In this step, word to be translated can be the different language such as simplified form of Chinese Character, Chinese-traditional, English, Korean, Japanese
Type is not limited merely to a kind of category of language.
S102, detection translation database is interior to whether there is translation entry corresponding with word to be translated, if it is,
Enter step S103.
In this step, translation database can be the databases such as mysql, SQL Server, Oracle, Sybase, DB2.
S103 then will include the former code corresponding with word to be translated of code block replacement for translating entry information
Block.
After selecting word to be translated, and the Automatic-searching translation corresponding with word to be translated in translation database
Entry, when having translation entry corresponding with word to be translated in translation database as long as automatically will include translation entry
The former code block corresponding with word to be translated of code block replacement of information, thus realize automatic translation word to be translated, because
During software development, having higher translation ability also without programmer can internationalize to software realization, to drop for this
Cost and difficulty of the low international software of needs in exploitation.
As shown in Fig. 2 the idiographic flow schematic diagram for the second embodiment of the automatic translating method of software development,
The automatic translating method for being used for software development is run under IntelliJ IDEA tool, this is used for oneself of software development
Dynamic interpretation method the following steps are included:
S201 selects word to be translated.
In this step, word to be translated can be the different language such as simplified form of Chinese Character, Chinese-traditional, English, Korean, Japanese
Type is not limited merely to a kind of category of language.
S202, detection translation database is interior to whether there is translation entry corresponding with word to be translated, if it is,
S208 is entered step, if it is not, then entering step S203.
In this step, translation database can be the databases such as mysql, SQL Server, Oracle, Sybase, DB2.
S203 calls translation Cloud Server that lexical translation to be translated is generated translation result at appointed language.
In this step, translation Cloud Server can be translated for Baidu, have the translation Cloud Server such as translation or Kingsoft translation.It is logical
It crosses calling translation Cloud Server and translate and be convenient in database there is no can also obtain translation result when translation entry, into one
Step facilitates application developer needing the word translated to translation in software realization Process of Internationalizationand.
S204 receives the translation result of translation Cloud Server feedback.
S205, pop-up translation result and request confirmation information.
In this step, programmer is facilitated to make the translation result of translation Cloud Server by pop-up translation result final true
Recognize, to ensure the accuracy rate translated.
S206, if translation result confirmation message is received, if it is, S207 is entered step, if it is not, then being back to
Step S203.
Translation result is stored in and forms new translation entry in translation database by S207.
In this step, by by translate the translation result that obtains of Cloud Server be stored in database can further enrich with
The translation entry in database is improved, convenient for the progress of subsequent internationalization work.
S208 then will include the former code corresponding with word to be translated of code block replacement for translating entry information
Block.
As shown in Fig. 3 the structural schematic diagram for the first embodiment of the automatic translation system of software development, the use
It in the automatic translation system of software development is run under IntelliJ IDEA tool, this is used for the automatic turning of software development
The system of translating includes selecting module 110, translation detection module 120 and code replacement module 130.
Selecting module 110 is for selecting word to be translated.Wherein, word to be translated can be in simplified form of Chinese Character, traditional font
The different category of language such as text, English, Korean, Japanese, is not limited merely to a kind of category of language.
Translation detection module 120 is for detecting in translation database with the presence or absence of translation corresponding with word to be translated
Entry.Wherein, translation database can be the databases such as mysql, SQL Server, Oracle, Sybase, DB2.
Code replacement module 130 is used to include the code block replacement original and word phase to be translated for translating entry information
Corresponding code block.
As shown in Fig. 4 the structural schematic diagram for the second embodiment of the automatic translation system of software development, the use
It in the automatic translation system of software development is run under IntelliJ IDEA tool, this is used for the automatic turning of software development
The system of translating includes selecting module 210, translation detection module 220, calling module 230, receiving module 240, request confirmation module
250, memory module 260 and code replacement module 270.
Selecting module 210 is for selecting word to be translated.Wherein, word to be translated can be in simplified form of Chinese Character, traditional font
The different category of language such as text, English, Korean, Japanese, is not limited merely to a kind of category of language.
Translation detection module 220 is for detecting in translation database with the presence or absence of translation corresponding with word to be translated
Entry.Wherein, translation database can be the databases such as mysql, SQL Server, Oracle, Sybase, DB2.
Calling module 230 is used to detect in translation database in the translation detection module and be not present and word to be translated
Call translation Cloud Server that lexical translation to be translated is generated translation result at appointed language when the corresponding translation entry of language.
Wherein, translation Cloud Server can be translated for Baidu, have the translation Cloud Server such as translation or Kingsoft translation.Cloud is translated by calling
Server carries out translation convenient for, there is no can also obtain translation result when translation entry, further facilitating program in database and opening
Hair personnel are needing the word translated to translation in software realization Process of Internationalizationand.
Receiving module 240 is used to receive the translation result of translation Cloud Server feedback.
Request confirmation module 250 is used for ejecting translation result and request confirmation information.By pop-up translation result to facilitate
Programmer makees final confirmation to the translation result of translation Cloud Server, to ensure the accuracy rate translated.
Translation result for being stored in translation database by memory module 260 when receiving translation result confirmation message
Form new translation entry.By by translate the translation result that obtains of Cloud Server be stored in database can further enrich with
The translation entry in database is improved, convenient for the progress of subsequent internationalization work.
Code replacement module 270 is used to include the code block replacement original and word phase to be translated for translating entry information
Corresponding code block.
It is a kind of embodiment provided in conjunction with particular content as described above, does not assert the specific implementation office of the application
It is limited to these explanations.It is all approximate with the present processes, structure etc., identical, if or for being made under the application concept thereof
Dry technology deduction or replace, all should be considered as the protection scope of the application.
Claims (4)
1. being used for the automatic translating method of software development, which comprises the following steps:
Select word to be translated;
It detects and whether there is translation entry corresponding with word to be translated in translation database, if it is, will include
Translate the former code block corresponding with word to be translated of code block replacement of entry information.
2. the automatic translating method according to claim 1 for software development, which is characterized in that if detecting translation
Translation entry corresponding with word to be translated is not present in database, then calls translation Cloud Server by word to be translated
It translates into appointed language and generates translation result;
Receive the translation result of translation Cloud Server feedback;
Pop up translation result and request confirmation information;
If receiving translation result confirmation message, translation result is stored in and forms new translation item in translation database
Mesh.
3. being used for the automatic translation system of software development characterized by comprising
Selecting module is used to select word to be translated;
Detection module is translated, is used to detect in translation database with the presence or absence of translation item corresponding with word to be translated
Mesh;
Code replacement module, be used for will include translate entry information code block replacement it is former corresponding with word to be translated
Code block.
4. the automatic translation system according to claim 3 for software development characterized by comprising
Calling module, be used for the translation detection module detect in translation database be not present and word phase to be translated
Call translation Cloud Server that lexical translation to be translated is generated translation result at appointed language when corresponding translation entry;
Receiving module is used to receive the translation result of translation Cloud Server feedback;
Request confirmation module is used for ejecting translation result and request confirmation information;
Memory module, is used to that translation result to be stored in translation database when receiving translation result confirmation message and is formed
New translation entry.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910442110.6A CN110187887A (en) | 2019-05-24 | 2019-05-24 | Automatic translating method and system for software development |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910442110.6A CN110187887A (en) | 2019-05-24 | 2019-05-24 | Automatic translating method and system for software development |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110187887A true CN110187887A (en) | 2019-08-30 |
Family
ID=67717782
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910442110.6A Pending CN110187887A (en) | 2019-05-24 | 2019-05-24 | Automatic translating method and system for software development |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110187887A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110806896A (en) * | 2019-09-29 | 2020-02-18 | 上海派拉软件股份有限公司 | Method for realizing internationalized information extraction in software development based on maven plug-in |
CN111625229A (en) * | 2020-05-18 | 2020-09-04 | 辽宁工程技术大学 | Computer software development auxiliary system |
CN113986211A (en) * | 2021-10-29 | 2022-01-28 | 苏州万店掌网络科技有限公司 | Code editor-based method and system for rapid code internationalization |
CN114217901A (en) * | 2022-02-21 | 2022-03-22 | 中国人民解放军国防科技大学 | Translation management and evaluation method for Chinese Tibetan language data under domestic operating system |
CN117195918A (en) * | 2023-07-24 | 2023-12-08 | 达州市斑马工业设计有限公司 | Translation method of software development kit and software development system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1315084A1 (en) * | 2001-11-27 | 2003-05-28 | Sun Microsystems, Inc. | Method and apparatus for localizing software |
US20040199373A1 (en) * | 2003-04-04 | 2004-10-07 | International Business Machines Corporation | System, method and program product for bidirectional text translation |
CN104115141A (en) * | 2011-11-25 | 2014-10-22 | 谷歌公司 | Providing translation assistance in application localization |
-
2019
- 2019-05-24 CN CN201910442110.6A patent/CN110187887A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1315084A1 (en) * | 2001-11-27 | 2003-05-28 | Sun Microsystems, Inc. | Method and apparatus for localizing software |
US20040199373A1 (en) * | 2003-04-04 | 2004-10-07 | International Business Machines Corporation | System, method and program product for bidirectional text translation |
CN104115141A (en) * | 2011-11-25 | 2014-10-22 | 谷歌公司 | Providing translation assistance in application localization |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110806896A (en) * | 2019-09-29 | 2020-02-18 | 上海派拉软件股份有限公司 | Method for realizing internationalized information extraction in software development based on maven plug-in |
CN110806896B (en) * | 2019-09-29 | 2020-11-13 | 上海派拉软件股份有限公司 | Method for realizing internationalized information extraction in software development based on maven extension plug-in |
CN111625229A (en) * | 2020-05-18 | 2020-09-04 | 辽宁工程技术大学 | Computer software development auxiliary system |
CN113986211A (en) * | 2021-10-29 | 2022-01-28 | 苏州万店掌网络科技有限公司 | Code editor-based method and system for rapid code internationalization |
CN114217901A (en) * | 2022-02-21 | 2022-03-22 | 中国人民解放军国防科技大学 | Translation management and evaluation method for Chinese Tibetan language data under domestic operating system |
CN117195918A (en) * | 2023-07-24 | 2023-12-08 | 达州市斑马工业设计有限公司 | Translation method of software development kit and software development system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110187887A (en) | Automatic translating method and system for software development | |
US20230394242A1 (en) | Automated translation of subject matter specific documents | |
Padró et al. | Freeling 3.0: Towards wider multilinguality | |
RU2458391C2 (en) | Internet-based collocation error checking | |
US9639522B2 (en) | Methods and apparatus related to determining edit rules for rewriting phrases | |
WO2015169134A1 (en) | Method and apparatus for phonetically annotating text | |
US20190384815A1 (en) | Constrained natural language processing | |
US8639496B2 (en) | System and method for identifying phrases in text | |
US11550995B2 (en) | Extracting structured data from handwritten and audio notes | |
US11562593B2 (en) | Constructing a computer-implemented semantic document | |
CN101561725B (en) | Method and system of fast handwriting input | |
CN111079408A (en) | Language identification method, device, equipment and storage medium | |
CN110825840B (en) | Word bank expansion method, device, equipment and storage medium | |
CN112287071A (en) | Text relation extraction method and device and electronic equipment | |
CN109885583A (en) | Data query method, apparatus, equipment and storage medium based on block chain | |
CN102135957A (en) | Clause translating method and device | |
WO2019148797A1 (en) | Natural language processing method, device, computer apparatus, and storage medium | |
CN116955393A (en) | Data processing method and device, electronic equipment and storage medium | |
CN106896935A (en) | Input method | |
CN109614082B (en) | Translation method, device and equipment for data query script | |
CN112380850A (en) | Wrongly-written character recognition method, wrongly-written character recognition device, wrongly-written character recognition medium and electronic equipment | |
CN104268195A (en) | Method and device for processing local resources in terminal | |
JP6076285B2 (en) | Translation apparatus, translation method, and translation program | |
CN113657120B (en) | Man-machine interaction intention analysis method and device, computer equipment and storage medium | |
CN112989013B (en) | Conversation processing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190830 |
|
RJ01 | Rejection of invention patent application after publication |