CN106933811A - A kind of entry automatic generation method and device - Google Patents

A kind of entry automatic generation method and device Download PDF

Info

Publication number
CN106933811A
CN106933811A CN201710078034.6A CN201710078034A CN106933811A CN 106933811 A CN106933811 A CN 106933811A CN 201710078034 A CN201710078034 A CN 201710078034A CN 106933811 A CN106933811 A CN 106933811A
Authority
CN
China
Prior art keywords
information
translated
entry
sub
default
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
Application number
CN201710078034.6A
Other languages
Chinese (zh)
Inventor
张磊
陈宏君
于蛟
徐东方
文继锋
刘鎏
程文君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NR Electric Co Ltd
NR Engineering Co Ltd
Original Assignee
NR Electric Co Ltd
NR Engineering Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by NR Electric Co Ltd, NR Engineering Co Ltd filed Critical NR Electric Co Ltd
Priority to CN201710078034.6A priority Critical patent/CN106933811A/en
Publication of CN106933811A publication Critical patent/CN106933811A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/42Data-driven translation
    • G06F40/47Machine-assisted translation, e.g. using translation memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/55Rule-based translation

Abstract

The embodiment of the invention discloses a kind of entry automatic generation method, methods described includes:Obtain entry information to be translated;Wherein, the entry information to be translated is and the corresponding information of default application;The entry information fractionation to be translated is obtained into sub-information to be translated according to the default rule that splits;The language information that user sends is received, target language is obtained;Based on the relation between the target language and each sub-information to be translated and default entry database, the corresponding translation information of each sub-information to be translated is obtained;Wherein, each entry information for being stored in the default entry database has the corresponding information of various languages;The corresponding translation information of each sub-information to be translated is spliced, the entry information to be translated target translation entry information corresponding with the target language is obtained.The embodiment of the present invention also discloses a kind of entry automatically generating device simultaneously.

Description

A kind of entry automatic generation method and device
Technical field
The present invention relates to the entry Auto in the communications field, more particularly to a kind of entry automatic generation method and Device.
Background technology
With the development of science and technology, the embedded system with microprocessor as core is obtained in the fields such as Industry Control Increasingly it is widely applied.In order to lift the ease for use and performance of EMBEDDED AVIONICS, all it is configured with button and display sets It is standby, in order to carry out man-machine interaction, user friendly operation.When different EMBEDDED AVIONICSs is sold to all over the world When, it is necessary to these EMBEDDED AVIONICSs are localized with treatment, the display and interaction of realization local language.
Realize that EMBEDDED AVIONICS is localized at present, especially the localization of rare foreign languages language is, it is necessary to grasp the language Translator special translation is carried out to the entry file that need to be shown after, application developer again to translation obtain entry text Part is write again.So during the display entry local language of EMBEDDED AVIONICS, translate and compiling procedure More man power and material is put into, has caused the production cost of production firm larger, reduced production efficiency.
The content of the invention
In order to solve the above technical problems, the embodiment of the present invention is expected to provide a kind of entry automatic generation method and device, solution Having determined needs to put into the prior art more human and material resources by asking that the display entry of EMBEDDED AVIONICS is localized Topic, reduces the production cost of production firm, improves production efficiency.
To reach above-mentioned purpose, what the technical scheme of the embodiment of the present invention was realized in:
A kind of entry automatic generation method, methods described includes:
Obtain entry information to be translated;Wherein, the entry information to be translated is and the corresponding information of default application;
The entry information fractionation to be translated is obtained into sub-information to be translated according to the default rule that splits;
The language information that user sends is received, target language is obtained;
Based on the relation between the target language and each sub-information to be translated and default entry database, obtain The corresponding translation information of each sub-information to be translated;Wherein, each entry letter for being stored in the default entry database Breath has the corresponding information of various languages;
The corresponding translation information of each sub-information to be translated is spliced, obtain the entry information to be translated with The corresponding target translation entry information of the target language.
Optionally, the acquisition entry information to be translated, including:
Obtain preset configuration bag;
The entry information to be translated is extracted from the preset configuration bag.
It is optionally, described that the entry information fractionation to be translated is obtained into sub-information to be translated according to the default rule that splits, Including:
Judge whether include variable identifier in the entry information to be translated;
If the entry information to be translated includes the variable identifier, the change in the entry information to be translated is obtained The corresponding fixed entry information of variable at amount identifier;
The fixed entry information is split according to default identifier, the sub-information to be translated is obtained;
If not including the variable identifier in the entry information to be translated, according to the default identifier splits Entry information to be translated obtains the sub-information to be translated.
Optionally, it is described based on the target language and each sub-information to be translated and default entry database between Relation, obtaining the corresponding translation information of each sub-information to be translated includes:
Judge the locally corresponding with the target language with the presence or absence of each sub-information to be translated of the default application Translation information;
If the default application does not exist the sub-information to be translated translation letter corresponding with the target language locally Breath, judges to believe with the presence or absence of the sub-information to be translated translation corresponding with the target language in the default entry database Breath;
If there is the sub-information to be translated translation letter corresponding with the target language in the default entry database Breath, obtains the sub-information to be translated translation information corresponding with the target language and preserves;
If not existing the sub-information to be translated translation corresponding with the target language in the default entry database Information, generates journal file and prompt message;Wherein, the prompt message is used to point out sub-information to be translated described in user and institute Target language correspondence translation information is stated not exist.
Optionally, methods described also includes:
If locally there is the sub-information to be translated translation information corresponding with the target language in the default application, Directly in the locally acquisition sub-information to be translated translation information corresponding with the target language of the default application.
Optionally, the entry information in the default entry database is encoded according to UTF-8 forms.
A kind of entry automatically generating device, described device includes:Acquiring unit, split cells, receiving unit, the first treatment Unit and second processing unit;Wherein:
The acquiring unit, for obtaining entry information to be translated;Wherein, the entry information to be translated is answered with default Use corresponding information;
The split cells, for the entry information fractionation to be translated to be obtained into son to be translated according to the default rule that splits Information;
The receiving unit, the language information for receiving user's transmission, obtains target language;
The first processing units, for based on the target language and each sub-information to be translated and default entry Relation between database, obtains the corresponding translation information of each sub-information to be translated;Wherein, the default entry data The each entry information stored in storehouse has the corresponding information of various languages;
The second processing unit, for the corresponding translation information of each sub-information to be translated to be spliced, obtains To the entry information to be translated target translation entry information corresponding with the target language.
Optionally, the acquiring unit includes:First acquisition module and extraction module;Wherein:
First acquisition module, for obtaining preset configuration bag;
The extraction module, for extracting the entry information to be translated from the preset configuration bag.
Optionally, the split cells includes:First judge module, the second acquisition module, first processing module and second Processing module;Wherein:
First judge module, for judging whether include variable identifier in the entry information to be translated;
Second acquisition module, if including the variable identifier for the entry information to be translated, obtains institute State the corresponding fixed entry information of variable at the variable identifier in entry information to be translated;
The first processing module, for splitting the fixed entry information according to default identifier, obtains described waiting to turn over Translate sub-information;
The Second processing module, if for not including the variable identifier in the entry information to be translated, according to The default identifier splits the entry information to be translated and obtains the sub-information to be translated.
Optionally, the first processing units include:Second judge module, the 3rd judge module, the 3rd acquisition module and Generation module;Wherein:
Second judge module, for judge the default application locally whether there is each sub- letter to be translated Breath translation information corresponding with the target language;
3rd judge module, if for the default application locally in the absence of the sub-information to be translated with it is described The corresponding translation information of target language, judge in the default entry database with the presence or absence of the sub-information to be translated with it is described The corresponding translation information of target language;
3rd acquisition module, if for exist in the default entry database sub-information to be translated with it is described The corresponding translation information of target language, obtains the sub-information to be translated translation information corresponding with the target language and protects Deposit;
The generation module, if for not existing the sub-information to be translated and the mesh in the default entry database The corresponding translation information of poster kind, generates journal file and prompt message;Wherein, the prompt message is used to point out described in user Sub-information to be translated translation information corresponding with the target language does not exist.
Optionally, the first processing units also include:4th acquisition module;Wherein:
4th acquisition module, if locally there is the sub-information to be translated and the mesh for the default application The corresponding translation information of poster kind, directly in the locally acquisition sub-information to be translated and the target language of the default application Plant corresponding translation information.
Optionally, the entry information in the default entry database is encoded according to UTF-8 forms.
Entry automatic generation method and device that embodiments of the invention are provided, by obtaining entry information to be translated, And entry information to be translated fractionation is obtained into sub-information to be translated according to the default rule that splits, then receive the languages that user sends Information obtains target language, based on the relation between target language and each sub-information to be translated and default entry database, obtains To the corresponding translation information of each sub-information to be translated, finally each sub-information to be translated is spliced, obtained word to be translated Bar information target translation entry information corresponding with target language;So, by being split as treating by entry information to be translated automatically Translation sub-information, and sub-information to be translated translation information corresponding with target language is obtained from default entry database, it is not required to Wanting artificial participation can obtain target translation entry information corresponding with entry information to be translated, solve in the prior art More human and material resources need to be put into by the problem of the display entry localization of EMBEDDED AVIONICS, factory is reduced The production cost of business, improves production efficiency.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of entry automatic generation method provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another entry automatic generation method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of entry automatically generating device provided in an embodiment of the present invention;
Fig. 4 is the structural representation of another entry automatically generating device provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another entry automatically generating device provided in an embodiment of the present invention;
A kind of structural representation of entry automatically generating device that Fig. 6 is provided for another embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described.
The embodiment of the present invention provides a kind of entry automatic generation method, and shown in reference picture 1, the method is comprised the following steps:
Step 101, acquisition entry information to be translated.
Wherein, entry information to be translated is and the corresponding information of default application.
Specifically, step 101 obtains entry information to be translated can be realized by entry automatically generating device.Entry is automatic Generating means can be embedded device, and default application can be product, e.g. embedded device, so entry is automatically generated Device can also be default application;Entry information to be translated can be for interface display and communications in embedded device All information, can include the related introduction information and definite value parameter, the display liquid crystal menu of embedded device of embedded device Prompt message of packet prompt message and related executive process etc..
Step 102, according to it is default split rule by entry information to be translated split obtain sub-information to be translated.
Specifically, step 102 according to it is default split rule by entry information to be translated split obtain sub-information to be translated can To be realized by entry automatically generating device.The default rule that splits can determine according to dependent parser rule, for inciting somebody to action Entry information to be translated is decomposed into a kind of methods of appropriate sub-information to be translated.
Step 103, the language information for receiving user's transmission, obtain target language.
Specifically, step 103 receives the language information that user sends, obtaining target language can automatically generate dress by entry Put to realize.The language information that user sends can be the rare foreign languages such as French, Portuguese, Spanish or other languages; User can send languages by the display screen of touch-control embedded device, phonetic entry or using modes such as remote control equipments Information, in order to be able to obtain the translation information of correspondence language information.
It should be noted that, the no sequencing of operation between step 101~102 and step 103 point, step 101~ 102 can perform after step 103, it is also possible to be performed simultaneously with step 103, and specific implementation procedure can be according to reality Application scenarios determine.
Step 104, based on the relation between target language and each sub-information to be translated and default entry database, obtain The corresponding translation information of each sub-information to be translated.
Wherein, presetting each entry information stored in entry database has the corresponding information of various languages.
Specifically, step 104 is based on the pass between target language and each sub-information to be translated and default entry database System, obtaining the corresponding translation information of each sub-information to be translated can be realized by entry automatically generating device.Default entry number Can be some entry informations related to embedded device information that are pre-setting in advance according to storehouse, corresponding these entries letter Breath has information corresponding with various languages.Wherein it is possible to obtained from default entry database each sub-information to be translated with The corresponding translation information of target language, you can obtain the corresponding translation information of each sub-information to be translated.
Step 105, the corresponding translation information of each sub-information to be translated is spliced, obtain entry information to be translated with The corresponding target translation entry information of target language.
Specifically, step 105 is spliced the corresponding translation information of each sub-information to be translated, entry to be translated is obtained Information target translation entry information corresponding with target language can be realized by entry automatically generating device.Wherein, target is turned over Translate entry information and entry information to be translated is exactly translated as entry information corresponding with target language.Obtain entry letter to be translated After the corresponding translation information of sub-information all to be translated of breath, can believe according to the syntax rule of object language and entry to be translated All sub-informations to be translated are spliced into target translation entry information corresponding with entry information to be translated by breath.
The entry automatic generation method that the embodiment of the present invention is provided, by obtaining entry information to be translated, and according to pre- Sub-information to be translated is obtained if splitting rule and splitting entry information to be translated, the language information for then receiving user's transmission is obtained Target language, based on the relation between target language and each sub-information to be translated and default entry database, obtains each treating The translation corresponding translation information of sub-information, is finally spliced each sub-information to be translated, obtain entry information to be translated with The corresponding target translation entry information of target language;So, by the way that entry information to be translated is split as into sub- letter to be translated automatically Breath, and sub-information to be translated translation information corresponding with target language is obtained from default entry database, it is not necessary to it is artificial Participation can obtain corresponding with entry information to be translated target translation entry information, solve need in the prior art input compared with The problem of the display entry localization of EMBEDDED AVIONICS is reduced the production of production firm by many human and material resources Cost, improves production efficiency.
The embodiment of the present invention provides a kind of entry automatic generation method, and shown in reference picture 2, the method is comprised the following steps:
Step 201, entry automatically generating device obtain preset configuration bag.
Specifically, for interface display and all letters of communications during embedded device can be included in preset configuration bag The information such as breath, related base variable and macroparameter list.Wherein, embedded device being locally stored from embedded device Preset configuration bag is obtained in unit, it is also possible to obtain default from other storage mediums such as CD, mobile storage hard disk etc. are middle Configuration bag.
Step 202, entry automatically generating device extract entry information to be translated from preset configuration bag.
Specifically, embedded device can directly extract entry information to be translated from preset configuration bag.
Whether step 203, entry automatically generating device judge include variable identifier in entry information to be translated.
Specifically, variable identifier can be for identifying some name variable, wherein, user can according to oneself Use habit changes this name variable.Specific variable identifier can be a specific symbol of developer oneself definition Number, for example in the present invention, variable identifier can be two@, and corresponding information is exactly name variable between two of which@.
Wherein, after whether step 203 entry automatically generating device judges to include variable identifier in entry information to be translated Can select to perform step 204~205 or step 206, if entry information to be translated includes variable identifier, selection is performed Step 204~205, if not including in entry information to be translated, variable identifier selection performs step 206;
If step 204, entry information to be translated include variable identifier, entry automatically generating device obtains word to be translated The corresponding fixed entry information of the variable at variable identifier in bar information.
Specifically, when entry information to be translated includes variable identifier, embedded device obtains the change between two@ Amount title, then extracts fixed entry information corresponding with the name variable for obtaining from macroparameter list.
Step 205, entry automatically generating device split fixed entry information according to default identifier, obtain sub- letter to be translated Breath.
Specifically, default identifier can be the identifier that information be split as several parts, such as in the present invention In preset identifier can be English fullstop.Embedded device splits fixed entry information according to English fullstop, obtains waiting to turn over Translate sub-information.
If not including variable identifier in step 206, entry information to be translated, entry automatically generating device is according to pre- bidding Know symbol fractionation entry information to be translated and obtain sub-information to be translated.
If specifically, not including variable identifier in entry information to be translated, embedded device is directly according to English fullstop To split entry information to be translated, sub-information to be translated is obtained.
Step 207, entry automatically generating device receive the language information that user sends, and obtain target language.
Specifically, being illustrated so that the language information of user's transmission is as French as an example, embedded device receives user's hair The language information sent is French, obtains target language for French.
It should be noted that, the no sequencing of operation between step 201~206 and step 207 point, step 201~ 206 can perform after step 207, it is also possible to be performed simultaneously with step 207, and specific implementation procedure can be according to reality Application scenarios determine.
Step 208, entry automatically generating device judge default application locally with the presence or absence of each sub-information to be translated with The corresponding translation information of target language.
Specifically, preset application can be locally the memory cell of embedded device.It is English letter with information to be translated Breath is illustrated, and embedded device is judged in the memory cell of embedded device with the presence or absence of each to be translated of the French edition The translation information of sub-information.
It should be noted that, step 208 entry automatically generating device judges that default application locally is waited to turn over the presence or absence of each After translating sub-information translation information corresponding with target language, can select to perform step 209~211 or step 212, if default The sub-information to be translated translation information selection corresponding with target language that do not exist locally of application performs step 209~211, if in advance If the sub-information to be translated translation information selection corresponding with target language that locally exists of application performs step 212;
If step 209, default application do not exist sub-information to be translated translation information corresponding with target language, word locally Bar automatically generating device judges to believe with the presence or absence of sub-information to be translated translation corresponding with target language in default entry database Breath.
Wherein, the entry information preset in entry database can be encoded according to UTF-8 forms.
If specifically, the local corresponding translation information of sub-information to be translated in the absence of the French edition of embedded device, Embedded device can connect default entry database, and judge to whether there is the to be translated of the French edition in default entry database The translation information of sub-information, wherein, default entry data can be arranged in embedded device, and the present invention does not do any tool The restriction of body.
It should be noted that, if the default application of step 209 is locally corresponding with target language in the absence of sub-information to be translated Translation information, entry automatically generating device judges to whether there is sub-information to be translated and target language pair in default entry database Can select to perform step 210 or step 211 after the translation information answered, if there is sub- letter to be translated in default entry database Breath translation information selection corresponding with target language performs step 210, if not existing sub- letter to be translated in default entry database Breath translation information corresponding with target language, selection performs step 211;
If there is sub-information to be translated translation information corresponding with target language, word in step 210, default entry database Bar automatically generating device obtains sub-information to be translated translation information corresponding with target language and preserves.
If embedded specifically, there is the translation information of the sub-information to be translated of the French edition in default entry database Equipment obtains the translation information of the sub-information to be translated of the French edition from default entry database and is stored in embedded device In memory cell.
If not existing sub-information to be translated translation information corresponding with target language in step 211, default entry database, Entry automatically generating device generates journal file and prompt message.
Wherein, prompt message is used to point out user's sub-information to be translated translation information corresponding with target language not exist.
Specifically, when the corresponding translation information of the sub-information to be translated for not having the French edition in default entry database, it is embedding Enter formula equipment and automatically generate journal file, and sub-information to be translated is corresponding turns over currently without this of the French edition to produce prompting user The prompt message of information is translated, there is no the information pair to be translated of the French edition in the default entry database of record wherein in journal file The translation information answered, and user can double-click the journal file, and preset configuration bag data correspondence is opened in order to auto-associating Interface.
If locally there is sub-information to be translated translation information corresponding with target language, entry in step 212, default application Automatically generating device is directly in the locally acquisition sub-information to be translated translation information corresponding with target language of default application.
If specifically, the translation information of the sub-information to be translated that there is the French edition in the memory cell of embedded device, Then embedded device directly obtains the translation information of the corresponding the French edition of the sub-information to be translated from memory cell.
Step 213, entry automatically generating device are spliced the corresponding translation information of each sub-information to be translated, are obtained Entry information to be translated target translation entry information corresponding with target language.
Specifically, distribution of the embedded device according to the regular and to be translated entry information content of French, by word to be translated The translation information of the corresponding the French edition of the corresponding each sub-information to be translated of bar information is spliced, and the target for obtaining the French edition is turned over Translate entry information.
It should be noted that in the present embodiment with the explanation of same steps in other embodiments or concept, be referred to Description in other embodiments, here is omitted.
The entry automatic generation method that the embodiment of the present invention is provided, by obtaining entry information to be translated, and according to pre- Sub-information to be translated is obtained if splitting rule and splitting entry information to be translated, the language information for then receiving user's transmission is obtained Target language, based on the relation between target language and each sub-information to be translated and default entry database, obtains each treating The translation corresponding translation information of sub-information, is finally spliced each sub-information to be translated, obtain entry information to be translated with The corresponding target translation entry information of target language;So, by the way that entry information to be translated is split as into sub- letter to be translated automatically Breath, and sub-information to be translated translation information corresponding with target language is obtained from default entry database, it is not necessary to it is artificial Participation can obtain corresponding with entry information to be translated target translation entry information, solve need in the prior art input compared with The problem of the display entry localization of EMBEDDED AVIONICS is reduced the production of production firm by many human and material resources Cost, improves production efficiency.
A kind of entry automatically generating device 3 is the embodiment of the invention provides, the corresponding embodiment in Fig. 1~2 is can be applied to and is carried In a kind of entry automatic generation method for supplying, shown in reference picture 3, the device includes:Acquiring unit 31, split cells 32, reception Unit 33, first processing units 34 and second processing unit 35, wherein:
Acquiring unit 31, for obtaining entry information to be translated.
Wherein, entry information to be translated is and the corresponding information of default application.
Split cells 32, for entry information to be translated fractionation to be obtained into sub-information to be translated according to the default rule that splits.
Receiving unit 33, the language information for receiving user's transmission, obtains target language.
First processing units 34, for based between target language and each sub-information to be translated and default entry database Relation, obtain the corresponding translation information of each sub-information to be translated.
Wherein, presetting the entry information each time stored in entry database has the corresponding information of various languages.
Second processing unit 35, for the corresponding translation information of each sub-information to be translated to be spliced, obtains waiting to turn over Translate entry information target translation entry information corresponding with target language.
The entry automatically generating device that embodiments of the invention are provided, by obtaining entry information to be translated, and according to Entry information to be translated fractionation is obtained sub-information to be translated by the default rule that splits, and the language information that then reception user sends is obtained To target language, based on the relation between target language and each sub-information to be translated and default entry database, obtain each The corresponding translation information of sub-information to be translated, is finally spliced each sub-information to be translated, obtains entry information to be translated Target corresponding with target language translates entry information;So, by the way that entry information to be translated is split as into son to be translated automatically Information, and sub-information to be translated translation information corresponding with target language is obtained from default entry database, it is not necessary to it is artificial Participation can obtain corresponding with entry information to be translated target translation entry information, solve and need in the prior art input The problem of the display entry localization of EMBEDDED AVIONICS is reduced the life of production firm by more human and material resources Cost is produced, production efficiency is improve.
Specifically, shown in reference picture 4, acquiring unit 31 includes:First acquisition module 311 and extraction module 312, wherein:
First acquisition module 311, for obtaining preset configuration bag.
Extraction module 312, for extracting entry information to be translated from preset configuration bag.
Specifically, shown in reference picture 5, split cells 32 includes:First judge module 321, the second acquisition module 322, One processing module 323 and Second processing module 324, wherein:
First judge module 321, for judging whether include variable identifier in entry information to be translated.
Second acquisition module 322, if including variable identifier for entry information to be translated, obtains entry letter to be translated The corresponding fixed entry information of the variable at variable identifier in breath.
First processing module 323, for splitting fixed entry information according to default identifier, obtains sub-information to be translated.
Second processing module 324, if for not including variable identifier in entry information to be translated, according to default identifier Split entry information to be translated and obtain sub-information to be translated.
Specifically, shown in reference picture 6, first processing units 34 include:Second judge module 341, the 3rd judge module 342nd, the 3rd acquisition module 343 and generation module 344, wherein:
Second judge module 341, each sub-information to be translated and target are locally whether there is for judge default application The corresponding translation information of languages.
3rd judge module 342, if for presetting the locally corresponding with target language in the absence of sub-information to be translated of application Translation information, judge to whether there is sub-information to be translated translation information corresponding with target language in default entry database.
3rd acquisition module 343, if corresponding with target language for there is sub-information to be translated in default entry database Translation information, obtain sub-information to be translated translation information corresponding with target language and simultaneously preserve.
Generation module 344, if for corresponding with target language in the absence of sub-information to be translated in default entry database Translation information, generates journal file and prompt message.
Wherein, prompt message is used to point out user's sub-information to be translated translation information corresponding with target language not exist.
Specifically, shown in reference picture 6, first processing units 34 also include:4th acquisition module 345, wherein:
4th acquisition module 345, if for preset application locally to there is sub-information to be translated corresponding with target language Translation information, directly in the locally acquisition sub-information to be translated translation information corresponding with target language of default application.
It should be noted that the interaction in the present embodiment between unit and module, is referred to Fig. 1~2 pair Interaction in a kind of entry automatic generation method that the embodiment answered is provided, here is omitted.
The entry automatically generating device that the embodiment of the present invention is provided, by obtaining entry information to be translated, and according to pre- Sub-information to be translated is obtained if splitting rule and splitting entry information to be translated, the language information for then receiving user's transmission is obtained Target language, based on the relation between target language and each sub-information to be translated and default entry database, obtains each treating The translation corresponding translation information of sub-information, is finally spliced each sub-information to be translated, obtain entry information to be translated with The corresponding target translation entry information of target language;So, by the way that entry information to be translated is split as into sub- letter to be translated automatically Breath, and sub-information to be translated translation information corresponding with target language is obtained from default entry database, it is not necessary to it is artificial Participation can obtain corresponding with entry information to be translated target translation entry information, solve need in the prior art input compared with The problem of the display entry localization of EMBEDDED AVIONICS is reduced the production of production firm by many human and material resources Cost, improves production efficiency.
In actual applications, acquiring unit 31, split cells 32, receiving unit 33, first processing units 34, second processing Unit 35, the first acquisition module 311, extraction module 312, the first judge module 321, the second acquisition module 322, first process mould Block 323, Second processing module 324, the second judge module 341, the 3rd judge module 342, the 3rd acquisition module 343, generation mould The acquisition module 345 of block 344 and the 4th can be by the central processing unit (Central in wireless data transmission equipment Processing Unit, CPU), microprocessor (Micro Processor Unit, MPU), digital signal processor (Digital Signal Processor, DSP) or field programmable gate array (Field Programmable Gate Array, FPGA) etc. realize.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using the shape of the embodiment in terms of hardware embodiment, software implementation or combination software and hardware Formula.And, the present invention can be used can use storage in one or more computers for wherein including computer usable program code The form of the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram are described.It should be understood that every first-class during flow chart and/or block diagram can be realized by computer program instructions The combination of flow and/or square frame in journey and/or square frame and flow chart and/or block diagram.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices The device of the function of being specified in present one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
The above, only presently preferred embodiments of the present invention is not intended to limit the scope of the present invention.

Claims (12)

1. a kind of entry automatic generation method, it is characterised in that methods described includes:
Obtain entry information to be translated;Wherein, the entry information to be translated is and the corresponding information of default application;
The entry information fractionation to be translated is obtained into sub-information to be translated according to the default rule that splits;
The language information that user sends is received, target language is obtained;
Based on the relation between the target language and each sub-information to be translated and default entry database, obtain each The corresponding translation information of the sub-information to be translated;Wherein, each entry information tool for being stored in the default entry database There is the corresponding information of various languages;
The corresponding translation information of each sub-information to be translated is spliced, obtain the entry information to be translated with it is described The corresponding target translation entry information of target language.
2. method according to claim 1, it is characterised in that the acquisition entry information to be translated, including:
Obtain preset configuration bag;
The entry information to be translated is extracted from the preset configuration bag.
3. method according to claim 1, it is characterised in that it is described according to the default rule that splits by the entry to be translated Information splits and obtains sub-information to be translated, including:
Judge whether include variable identifier in the entry information to be translated;
If the entry information to be translated includes the variable identifier, the variable mark in the entry information to be translated is obtained Know the corresponding fixed entry information of variable at symbol;
The fixed entry information is split according to default identifier, the sub-information to be translated is obtained;
If not including the variable identifier in the entry information to be translated, wait to turn over according to the default identifier splits Translate entry information and obtain the sub-information to be translated.
4. method according to claim 1, it is characterised in that described based on the target language and each described to be translated Relation between sub-information and default entry database, obtaining the corresponding translation information of each sub-information to be translated includes:
Judge locally being turned over the presence or absence of each sub-information to be translated is corresponding with the target language for the default application Translate information;
If the default application does not exist the sub-information to be translated translation information corresponding with the target language locally, sentence Whether there is the sub-information to be translated translation information corresponding with the target language in the disconnected default entry database;
If there is the sub-information to be translated translation information corresponding with the target language in the default entry database, obtain Take the sub-information to be translated translation information corresponding with the target language and preserve;
If not existing the sub-information to be translated translation information corresponding with the target language in the default entry database, Generation journal file and prompt message;Wherein, the prompt message is used to point out sub-information to be translated described in user and the mesh Poster kind correspondence translation information does not exist.
5. method according to claim 4, it is characterised in that methods described also includes:
If locally there is the sub-information to be translated translation information corresponding with the target language in the default application, directly In the locally acquisition of the default application sub-information to be translated translation information corresponding with the target language.
6. method according to claim 1, it is characterised in that entry information in the default entry database according to UTF-8 forms are encoded.
7. a kind of entry automatically generating device, it is characterised in that described device includes:Acquiring unit, split cells, reception are single Unit, first processing units and second processing unit;Wherein:
The acquiring unit, for obtaining entry information to be translated;Wherein, the entry information to be translated is right with default application The information answered;
The split cells, for the entry information fractionation to be translated to be obtained into sub- letter to be translated according to the default rule that splits Breath;
The receiving unit, the language information for receiving user's transmission, obtains target language;
The first processing units, for based on the target language and each sub-information to be translated and default entry data Relation between storehouse, obtains the corresponding translation information of each sub-information to be translated;Wherein, in the default entry database Each entry information of storage has the corresponding information of various languages;
The second processing unit, for the corresponding translation information of each sub-information to be translated to be spliced, obtains institute State entry information to be translated target translation entry information corresponding with the target language.
8. device according to claim 7, it is characterised in that the acquiring unit includes:First acquisition module and extraction Module;Wherein:
First acquisition module, for obtaining preset configuration bag;
The extraction module, for extracting the entry information to be translated from the preset configuration bag.
9. device according to claim 7, it is characterised in that the split cells includes:First judge module, second obtain Module, first processing module and Second processing module;Wherein:
First judge module, for judging whether include variable identifier in the entry information to be translated;
Second acquisition module, if including the variable identifier for the entry information to be translated, obtain described in treat The corresponding fixed entry information of variable at variable identifier in translation entry information;
The first processing module, for splitting the fixed entry information according to default identifier, obtains the son to be translated Information;
The Second processing module, if for not including the variable identifier in the entry information to be translated, according to described Default identifier splits the entry information to be translated and obtains the sub-information to be translated.
10. device according to claim 7, it is characterised in that the first processing units include:Second judge module, 3rd judge module, the 3rd acquisition module and generation module;Wherein:
Second judge module, for judge the default application locally with the presence or absence of each sub-information to be translated with The corresponding translation information of the target language;
3rd judge module, if not existing the sub-information to be translated and the target locally for the default application The corresponding translation information of languages, judges to whether there is the sub-information to be translated and the target in the default entry database The corresponding translation information of languages;
3rd acquisition module, if for there is the sub-information to be translated and the target in the default entry database The corresponding translation information of languages, obtains the sub-information to be translated translation information corresponding with the target language and preserves;
The generation module, if for not existing the sub-information to be translated and the target language in the default entry database Corresponding translation information is planted, journal file and prompt message is generated;Wherein, the prompt message is used to point out to wait to turn over described in user Sub-information translation information corresponding with the target language is translated not exist.
11. devices according to claim 10, it is characterised in that the first processing units also include:4th obtains mould Block;Wherein:
4th acquisition module, if locally there is the sub-information to be translated and the target language for the default application Corresponding translation information is planted, directly in the locally acquisition sub-information to be translated and the target language pair of the default application The translation information answered.
12. devices according to claim 7, it is characterised in that entry information in the default entry database according to UTF-8 forms are encoded.
CN201710078034.6A 2017-02-14 2017-02-14 A kind of entry automatic generation method and device Pending CN106933811A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710078034.6A CN106933811A (en) 2017-02-14 2017-02-14 A kind of entry automatic generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710078034.6A CN106933811A (en) 2017-02-14 2017-02-14 A kind of entry automatic generation method and device

Publications (1)

Publication Number Publication Date
CN106933811A true CN106933811A (en) 2017-07-07

Family

ID=59423082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710078034.6A Pending CN106933811A (en) 2017-02-14 2017-02-14 A kind of entry automatic generation method and device

Country Status (1)

Country Link
CN (1) CN106933811A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107748746A (en) * 2017-11-06 2018-03-02 四川长虹电器股份有限公司 A kind of method of automatic management entry
CN108710660A (en) * 2018-05-11 2018-10-26 上海核工程研究设计院有限公司 A kind of items property parameters modeling of database and storage method
CN109829010A (en) * 2017-08-28 2019-05-31 西安中兴新软件有限责任公司 A kind of entry amending method and entry modify device
CN110020443A (en) * 2019-04-19 2019-07-16 网易(杭州)网络有限公司 Translate processing method, device, equipment and the computer readable storage medium of data
CN114330248A (en) * 2022-02-22 2022-04-12 深圳市微克科技有限公司 Method for automatically switching multinational languages of intelligent wearable system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662933A (en) * 2012-03-28 2012-09-12 成都优译信息技术有限公司 Distributive intelligent translation method
CN103902261A (en) * 2012-12-25 2014-07-02 北京慧点科技股份有限公司 Method and device for processing software resource
CN104391840A (en) * 2014-11-24 2015-03-04 上海迈外迪网络科技有限公司 Translation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662933A (en) * 2012-03-28 2012-09-12 成都优译信息技术有限公司 Distributive intelligent translation method
CN103902261A (en) * 2012-12-25 2014-07-02 北京慧点科技股份有限公司 Method and device for processing software resource
CN104391840A (en) * 2014-11-24 2015-03-04 上海迈外迪网络科技有限公司 Translation method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109829010A (en) * 2017-08-28 2019-05-31 西安中兴新软件有限责任公司 A kind of entry amending method and entry modify device
CN109829010B (en) * 2017-08-28 2023-11-14 西安中兴新软件有限责任公司 Entry modification method and entry modification device
CN107748746A (en) * 2017-11-06 2018-03-02 四川长虹电器股份有限公司 A kind of method of automatic management entry
CN108710660A (en) * 2018-05-11 2018-10-26 上海核工程研究设计院有限公司 A kind of items property parameters modeling of database and storage method
CN110020443A (en) * 2019-04-19 2019-07-16 网易(杭州)网络有限公司 Translate processing method, device, equipment and the computer readable storage medium of data
CN110020443B (en) * 2019-04-19 2023-07-18 网易(杭州)网络有限公司 Method, device and equipment for processing translation data and computer readable storage medium
CN114330248A (en) * 2022-02-22 2022-04-12 深圳市微克科技有限公司 Method for automatically switching multinational languages of intelligent wearable system

Similar Documents

Publication Publication Date Title
CN106933811A (en) A kind of entry automatic generation method and device
US20180232203A1 (en) Method for user training of information dialogue system
US9564149B2 (en) Method for user communication with information dialogue system
US20220215183A1 (en) Automatic post-editing model for neural machine translation
JP2018036621A (en) Information input method and device
US20180213077A1 (en) Method and apparatus for controlling smart device, and computer storage medium
CN103177204B (en) Password information tip method and device
CN104380375A (en) Device for extracting information from a dialog
CN109213851B (en) Cross-language migration method for spoken language understanding in dialog system
CN106126157B (en) Pronunciation inputting method and device based on hospital information system
TWI798652B (en) A method and system for automatically generating a data collection module
CN109815341A (en) A kind of text extraction model training method, text abstracting method and device
CN107943798A (en) Check input text language and the system and method for automatic synchronization translation
CN106126080A (en) Voice management method and device
CN105630511A (en) Font switching method and terminal equipment
US20200327893A1 (en) Information processing device and information processing method
CN110517668A (en) A kind of Chinese and English mixing voice identifying system and method
CN108804091A (en) A kind of software code generation method
KR100747724B1 (en) System and its method for web navigation for visually handicapped person
KR20120131480A (en) System and method for providing vocabulary learning service
CN105893345A (en) Information processing method and electronic equipment
CN104347081A (en) Method and device for testing scene statement coverage
CN109272983A (en) Bilingual switching device for child-parent education
CN116701811B (en) Webpage processing method, device, equipment and computer readable storage medium
KR20210065629A (en) Chatbot integration agent platform system and service method thereof

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: 20170707

RJ01 Rejection of invention patent application after publication