CN107346303A - string data translation processing method and device - Google Patents
string data translation processing method and device Download PDFInfo
- Publication number
- CN107346303A CN107346303A CN201710464592.6A CN201710464592A CN107346303A CN 107346303 A CN107346303 A CN 107346303A CN 201710464592 A CN201710464592 A CN 201710464592A CN 107346303 A CN107346303 A CN 107346303A
- Authority
- CN
- China
- Prior art keywords
- character string
- code
- data
- data content
- string
- 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.)
- Granted
Links
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/42—Data-driven translation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
- G06F16/90344—Query processing by using string matching techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
- G06F9/454—Multi-language systems; Localisation; Internationalisation
Abstract
The invention provides a kind of string data translation processing method and device, this method to include:The first information inputted according to user confirms source code directory;In the code of source code directory instruction, inquiry obtains N number of character string;The first data content is exported, the first data content record has the first location path of the information and first character string of M the first character strings in N number of character string in code;Obtain the second data content, the second data content record has the second location path of the information and the second character string of K the second character strings in code, second character string is translated to obtain according to the first character string, and second location path obtains according to the first location path;Second character string is inputted to the correspondence position of code according to second location path.Present invention saves the artificial workload for searching, manually exporting and be manually entered, the automatic work of processing unit is translated by string data, improves operating efficiency.
Description
Technical field
The present invention relates to electronic applications, more particularly to a kind of string data translation processing method and device.
Background technology
With the development of electronic technology, string data translation processing unit becomes indispensable in people's daily life
Electronic equipment.There is substantial amounts of character string in the system of string data translation processing unit, wherein containing multinational
Language, in order to meet the needs of user, it is necessary to be translated in advance to these language.
In existing correlation technique, in order to realize the translation of language, it is in need that institute first can be manually found in code
The character string of translation, then translator is transferred to translate the character string for needing to translate, then the character string that translation is obtained is again
It is input in code, so as to complete the translation of string data or translation amendment.Under which, the character string for needing to translate is searched
The input of the character string obtained with translation is less efficient by being accomplished manually.
The content of the invention
The present invention provides a kind of string data translation processing method and device, to solve ineffective problem.
According to the first aspect of the invention, there is provided a kind of string data translation processing method, including:
The first information inputted according to user confirms source code directory;
In the code of source code directory instruction, inquiry obtains N number of character string;Wherein, N is appointing more than or equal to 1
Meaning integer;
The first data content is exported, the first data content record there are M the first character strings in N number of character string
The first location path in code of information and first character string;Wherein, M is appointing more than or equal to 1 and less than or equal to N
Meaning integer;
The second data content is obtained, the second data content record has the information and described second of K the second character strings
Second location path of the character string in code, wherein, K be more than or equal to 1 and less than or equal to M arbitrary integer, described second
Character string is translated to obtain according to first character string, and second location path is to be obtained according to first location path
Arrive;
Second character string is inputted to the correspondence position of code according to second location path.
Optionally, the information of the M the first character strings includes the data of first language in the first character string.
Optionally, the information of the M the first character strings also includes second language corresponding to the data of the first language
Data.
Optionally, the information of second character string includes the data according to the 3rd language, the data of the 3rd language
For what is obtained according to the data translation of first language in the first character string.
Optionally, described in the code of source code directory instruction, inquiry obtains character string, including:
All code modules inquired about under the source code directory;
L first code module therein is determined according to the second information that user inputs, wherein, L is appointing more than or equal to 1
Meaning integer;
Inquiry obtains N number of character string in the L first code module.
Optionally, before the first data content of the export, in addition to:
Confirm all character strings with first language for the M the first character strings in N number of character string.
Optionally, before the first data content of the export, in addition to:
Confirm the character string with the first language not being translated for the M the first characters in N number of character string
String.
Optionally, second data content is changes according to journal file, and confirms faultless data content.
Optionally, first data content also includes the identification information ID and character string ginseng of the M the first character strings
Number.
According to the second aspect of the invention, there is provided a kind of string data translates processing unit, including:
First confirms module, and the first information for being inputted according to user confirms source code directory;
Enquiry module, in the code that is indicated in the source code directory, inquiry to obtain N number of character string;Wherein, N is
Arbitrary integer more than or equal to 1;
Export module, for exporting the first data content, the first data content record has in N number of character string
First location path of the information and first character string of M the first character strings in code;Wherein, M be more than or equal to 1 and
Arbitrary integer less than or equal to N;
First acquisition module, for obtaining the second data content, the second data content record has K the second character strings
The second location path in code of information and second character string, wherein, K is appointing more than or equal to 1 and less than or equal to M
Meaning integer, second character string are translated to obtain according to first character string, and second location path is according to institute
State what the first location path obtained;
Import modul, for being inputted second character string to the corresponding position of code according to second location path
Put.
Optionally, the information of the M the first character strings includes the data of first language in the first character string.
Optionally, the information of the M the first character strings also includes second language corresponding to the data of the first language
Data.
Optionally, the information of second character string includes the data according to the 3rd language, the data of the 3rd language
For what is obtained according to the data translation of first language in the first character string.
The enquiry module is specifically used for:
All code modules inquired about under the source code directory;
The the second validation of information L first code module therein inputted according to user, wherein, L is appointing more than or equal to 1
Meaning integer;
Inquiry obtains N number of character string in the L first code module.
Described device, in addition to:
Second confirms module, for confirming that all character strings with first language are the M in N number of character string
Individual first character string.
Described device, in addition to:
3rd confirms module, for confirming the character string with the first language not being translated in N number of character string
For the M the first character strings.
Optionally, second data content is changes according to journal file, and confirms faultless data content.
Optionally, first data content also includes the identification information ID and character string ginseng of the M the first character strings
Number.
String data translation processing method and device provided by the invention, pass through the validation of information source inputted according to user
Code directory, in the code of source code directory instruction, inquiry obtains N number of character string, and the first data content of export,
Artificial lookup and artificial derived workload have been saved, the automatic work of processing unit is translated by string data, is improved
Operating efficiency.
Meanwhile the present invention is by obtaining the second data content, and second data content is imported, to cause described the
Two character strings are inputted to the correspondence position of code according to second location path, realize the second character string after translation oneself
Dynamic positioning and importing, have saved the workload being manually entered, the automatic work of processing unit are translated by string data, improved
Operating efficiency.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also
To obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is the schematic flow sheet one of a string data translation processing method of the invention;
Fig. 2 is the structural representation one of string data translation processing unit of the invention;
Fig. 3 is the schematic flow sheet two of a string data translation processing method of the invention;
Fig. 4 is the structural representation two of string data translation processing unit of the invention;
Fig. 5 is the schematic diagram of a code module selection interface of the invention;
Fig. 6 is the schematic diagram that the present invention one imports and exports interface.
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 describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " " in description and claims of this specification and above-mentioned accompanying drawing
The (if present)s such as four " are for distinguishing similar object, without for describing specific order or precedence.It should manage
The data that solution so uses can exchange in the appropriate case, so as to embodiments of the invention described herein for example can with except
Order beyond those for illustrating or describing herein is implemented.In addition, term " comprising " and " having " and theirs is any
Deformation, it is intended that cover it is non-exclusive include, for example, containing the process of series of steps or unit, method, system, production
Product or equipment are not necessarily limited to those steps clearly listed or unit, but may include not list clearly or for this
The intrinsic other steps of a little process, method, product or equipment or unit.
Technical scheme is described in detail with specifically embodiment below.These specific implementations below
Example can be combined with each other, and may be repeated no more for same or analogous concept or process in some embodiments.
Embodiment 1
Fig. 1 is the schematic flow sheet one of a string data translation processing method of the invention;It refer to Fig. 1, there is provided one
Kind string data translation processing method, including:
S11:The first information inputted according to user confirms source code directory.
Wherein, the first information of user's input, can be for confirming to need into line character in some source code directories
Any input information of source code directory corresponding to the code of string translation, source code directory is it is to be understood that by source code
The selection of catalogue, can be to should determine that code range.
Source code directory and code, can be code in mobile phone, and alternative of the present invention can run on computer.
S12:In the code of source code directory instruction, inquiry obtains N number of character string;Wherein, N is more than or equal to 1
Arbitrary integer.
Wherein, N number of character string can be understood as the character string with interpretable language.
S13:The first data content is exported, the first data content record there are M the first words in N number of character string
Accord with the first location path of the information and first character string of string in code;Wherein, M is more than or equal to 1 and is less than or equal to N
Arbitrary integer.
Wherein, the first data content can be using the information and the first location path that individual first character strings of M can be achieved
The arbitrary data content-form of record.
S14:Obtain the second data content, the second data content record has the information of K the second character strings and described
Second location path of second character string in code, wherein, K is the arbitrary integer more than or equal to 1 and less than or equal to M, described
Second character string is translated to obtain according to first character string, and second location path is according to the described first positioning road
What footpath obtained.
Wherein, the second data content can be using using the information that each second character strings of K can be achieved and the second positioning
The arbitrary data content-form of the record in path.
Under the step, because the second location path is to be obtained according to the first location path, can be the second character string from
Dynamic input provides foundation, and compared to existing correlation technique, the program can effectively help to improve the operating efficiency of input, together
When, it can also improve the accuracy of input.
S15:Second character string is inputted to the correspondence position of code according to second location path.
String data translation processing method provided by the invention, pass through the validation of information source code mesh inputted according to user
Record, in the code of source code directory instruction, inquiry obtains N number of character string, and the first data content of export, saves
Artificial lookup and artificial derived workload, the automatic work of processing unit is translated by string data, work is improved and imitates
Rate.
Meanwhile the present invention is by obtaining the second data content, and second data content is imported, to cause described the
Two character strings are inputted to the correspondence position of code according to second location path, realize the second character string after translation oneself
Dynamic positioning and importing, have saved the workload being manually entered, the automatic work of processing unit are translated by string data, improved
Operating efficiency.
Embodiment 2
Fig. 3 is the schematic flow sheet two of a string data translation processing method of the invention;In the present embodiment, first language
It can be understood as any language to be translated, second language can be understood as compareing language, be enumerated as English, and the 3rd language can be with
Language after translating is interpreted as, is enumerated as Chinese;First character string can be understood as needing the character string translated, the second character string,
It can be understood as the character string after translation.
It refer to Fig. 3, there is provided a kind of string data translation processing method, including:
S21:The first information inputted according to user confirms source code directory.
The first information of user's input, can be for confirming to need to carry out character string translation in some source code directories
Code corresponding to source code directory any input information;In citing, the interface of selection can be carried out in the multiple catalogues of offer
Under, the selection operation of particular category is obtained according to user;It can also be filled in the case where providing the interface for window of filling a vacancy according to user
The name confirmation of catalogue obtains.In wherein a kind of embodiment, unique source code directory is can confirm that, other optional implementations
, also can the multiple source code directories of simultaneous selection in mode.
Source code directory, it can be understood as, can be to should determine that code range by the selection to source code directory.
S22:In the code of source code directory instruction, inquiry obtains N number of character string;Wherein, N is more than or equal to 1
Arbitrary integer.
Wherein, N number of character string can be understood as part or the character string with interpretable language.In order to search really
N number of character string of fixed language to be translated, can be determined by corresponding value values, in citing, can be understood as Chinese
Values-zh-rCN, French can be understood as values-fr.
In one of which embodiment, Fig. 3 is refer to, step S22 can specifically include:
S221:All code modules inquired about under the source code directory;
Wherein, code module can be understood as characterizing the specific code segment in code range corresponding to catalogue;It can be seen that with
Upper embodiment can check the character string in each module in units of module.Different code modules can be with different texts
Part, file or position are stored, and so as to be called, can also be stored in same file or file.
S222:According to user input the second information determine L first code module therein, wherein, L for more than or equal to
1 arbitrary integer;
Second information of user's input, can be for confirming to need to carry out character string translation in some code modules
Any input information of code module corresponding to code;In citing, the interface of selection can be carried out in the multiple code modules of offer
Under, the selection operation of particular code module is obtained according to user;Can also be in the case where providing the interface for window of filling a vacancy, according to user
The name confirmation for filling in code module obtains.In wherein a kind of embodiment, multiple code modules are can confirm that, can also be true
A fixed code module.
L first code module, it can be understood as the needs determined by user translate the code module of wherein character string.Tool
Body, it is necessary to which the character string being translated can be not translated, or be translated.
Fig. 5 is the schematic diagram of a code module selection interface of the invention, Fig. 5 is refer to, wherein it is possible to different modules
Name, or program name distinguish different code modules, by being chosen to code module therein, and click in next step, can
To select L first code module.
S223:Inquiry obtains N number of character string in the L first code module.
In specific implementation process, all Android.mk files can be first searched, determine all modules, then search each mould
Similar string.xml or mtk_string.xml etc. file in res, res-ext file corresponding to block, so as to realize
The inquiry of character string.
S26:The first data content is exported, the first data content record there are M the first words in N number of character string
Accord with the first location path of the information and first character string of string in code;Wherein, M is more than or equal to 1 and is less than or equal to N
Arbitrary integer.
Wherein, the first data content can be using the information and the first location path that individual first character strings of M can be achieved
The arbitrary data content-form of record.In one of which embodiment, the form of EXCEL tables can be used.First data content
It may also include the identification information ID and string argument of the M the first character strings.
In one of which embodiment, before step S26, it may also include:
Step S23:Difference export is confirmed whether it is according to the selection of user.
If not difference exports, then implementation steps S24:Confirm in N number of character string all with first language
Character string is the M the first character strings.Under the embodiment, by all translations of language to be translated and untranslated character
String all exports.
Exported if difference, then implementation steps S25:Confirm in N number of character string with the first language not being translated
The character string of speech is the M the first character strings.Under the embodiment, only untranslated character string is exported.
In one of which embodiment, the 3rd data content of generation is may also include, the 3rd data content can be used for remembering
Record the information of the character string for the first language not being translated;It can be respectively applied to step S24 and step S25 embodiment
Under.
In one of which embodiment, the information of the M the first character strings includes first language in the first character string
Data.The data of the information of the M the first character strings second language also corresponding to the data including the first language.Citing
In, first language is language to be translated, for example French, German, Japanese, Russian, Spanish etc., second language can be managed
Solve to compare language, English can be enumerated as.
Fig. 6 is the schematic diagram that the present invention one imports and exports interface, refer to Fig. 6, above step S21 to step S26 mistake
What journey can be illustrated by Fig. 6 " exports character string to be translated to produce to the clicking trigger of EXEL " buttons.
S27:Obtain the second data content, the second data content record has the information of K the second character strings and described
Second location path of second character string in code, wherein, K is the arbitrary integer more than or equal to 1 and less than or equal to M, described
Second character string is translated to obtain according to first character string, and second location path is according to the described first positioning road
What footpath obtained;
Wherein, the second data content can be using the information and the second location path that individual second character strings of K can be achieved
The arbitrary data content-form of record.In one of which embodiment, the form of EXCEL tables can be used.
Second character string is to translate to obtain according to the first character string, it can be understood as after the first data content exports, is used
Family can also can be translated automatically by translator's manual translation using translation software, meanwhile, also can be by it with having
Database be compared, so as to the second character string after translating corresponding to extracting.Latter two mode further increases translation
Efficiency.
Wherein, the information of the second character string is included according to the data of the 3rd language, according to the data of the 3rd language
The data translation of first language obtains in first character string.3rd language, it can be understood as the language after translation, specific real
Apply in mode, Chinese can be enumerated as.But the present invention is not limited to translate into the situation of Chinese, as long as the 3rd language and first
Language is different language, then does not depart from the scope of the present invention.
Second location path to be obtained according to the first location path, can be enumerated as the position of the second location path instruction with
The position of first location path instruction is identical, or in same row, certainly, or other are obtained based on the first location path
Free routing, such as, differ path etc. of several columns code.As long as the second location path is the road of position in instruction code
Footpath, and with the corresponding relation of the first location path existence position, then do not depart from description of the invention scope.
Step S27 and its afterwards the step of can pass through Fig. 6 signals " import translated EXCEL to code " button point
Hit triggering.
S28:Second character string is inputted to the correspondence position of code according to second location path.
It is possible that the format error of some character strings during due to translation, if these mistakes are introduced directly into code, meeting
Compiling is caused to report an error, so, in one of which embodiment, second data content is to be changed according to journal file, and really
Recognize faultless data content.
It can be seen that before step S28, the process for checking the second data content is may also include, the character string of mistake is found out
Afterwards, translator can be prompted to change, and then imported again again.
String data translation processing method provided by the invention, pass through the validation of information source code mesh inputted according to user
Record, in the code of source code directory instruction, inquiry obtains N number of character string, and the first data content of export, saves
Artificial lookup and artificial derived workload, the automatic work of processing unit is translated by string data, work is improved and imitates
Rate.
Meanwhile the present invention is by obtaining the second data content, and second data content is imported, to cause described the
Two character strings are inputted to the correspondence position of code according to second location path, realize the second character string after translation oneself
Dynamic positioning and importing, have saved the workload being manually entered, the automatic work of processing unit are translated by string data, improved
Operating efficiency.
Embodiment 3
Fig. 2 is the structural representation one of string data translation processing unit of the invention;It refer to Fig. 2, there is provided one
Kind string data translation processing unit, including:
First confirms module 101, and the first information for being inputted according to user confirms source code directory;
Enquiry module 102, in the code that is indicated in the source code directory, inquiry to obtain N number of character string;Wherein, N
For the arbitrary integer more than or equal to 1;
Export module 103, for exporting the first data content, the first data content record has N number of character string
In M the first character strings the first location path in code of information and first character string;Wherein, M be more than etc.
In 1 and less than or equal to N arbitrary integer;
First acquisition module 104, for obtaining the second data content, the second data content record has K the second words
The second location path in code of information and second character string of string is accorded with, wherein, K is more than or equal to 1 and is less than or equal to M
Arbitrary integer, second character string translates to obtain according to first character string, and second location path is root
Obtained according to first location path;
Import modul 105, for being inputted second character string to the correspondence of code according to second location path
Position.
String data provided by the invention translates processing unit, passes through the validation of information source code mesh inputted according to user
Record, in the code of source code directory instruction, inquiry obtains N number of character string, and the first data content of export, saves
Artificial lookup and artificial derived workload, the automatic work of processing unit is translated by string data, work is improved and imitates
Rate.
Meanwhile the present invention is by obtaining the second data content, and second data content is imported, to cause described the
Two character strings are inputted to the correspondence position of code according to second location path, realize the second character string after translation oneself
Dynamic positioning and importing, have saved the workload being manually entered, the automatic work of processing unit are translated by string data, improved
Operating efficiency.
In addition, the string data translation processing unit shown in the present embodiment, accordingly can be used for implementing method shown in Fig. 1
The technical scheme of embodiment, the implication of its realization principle, technique effect and term is similar, and here is omitted.
Embodiment 4
Fig. 4 is the structural representation two of string data translation processing unit of the invention;It refer to Fig. 4, there is provided one
Kind string data translation processing unit, including:
First confirms module 201, and the first information for being inputted according to user confirms source code directory;
Enquiry module 202, in the code that is indicated in the source code directory, inquiry to obtain N number of character string;Wherein, N
For the arbitrary integer more than or equal to 1;
Export module 205, for exporting the first data content, the first data content record has N number of character string
In M the first character strings the first location path in code of information and first character string;Wherein, M be more than etc.
In 1 and less than or equal to N arbitrary integer;
First acquisition module 206, for obtaining the second data content, the second data content record has K the second words
The second location path in code of information and second character string of string is accorded with, wherein, K is more than or equal to 1 and is less than or equal to M
Arbitrary integer, second character string translates to obtain according to first character string, and second location path is root
Obtained according to first location path;
Import modul 207, for being inputted second character string to the correspondence of code according to second location path
Position.
Optionally, the information of the M the first character strings includes the data of first language in the first character string.
Optionally, the information of the M the first character strings also includes second language corresponding to the data of the first language
Data.
Optionally, the information of second character string includes the data according to the 3rd language, the data of the 3rd language
For what is obtained according to the data translation of first language in the first character string.
The enquiry module 202 is specifically used for:
All code modules inquired about under the source code directory;
The the second validation of information L first code module therein inputted according to user, wherein, L is appointing more than or equal to 1
Meaning integer;
Inquiry obtains N number of character string in the L first code module.
Described string data translation processing unit, in addition to:
Second confirms module 204, for confirming all character strings with first language for institute in N number of character string
State M the first character strings.
Described string data translation processing unit, in addition to:
3rd confirms module 203, for confirming the character with the first language not being translated in N number of character string
Go here and there as the M the first character strings.
Optionally, second data content is changes according to journal file, and confirms faultless data content.
Optionally, first data content also includes the identification information ID and character string ginseng of the M the first character strings
Number.
String data provided by the invention translates processing unit, passes through the validation of information source code mesh inputted according to user
Record, in the code of source code directory instruction, inquiry obtains N number of character string, and the first data content of export, saves
Artificial lookup and artificial derived workload, the automatic work of processing unit is translated by string data, work is improved and imitates
Rate.
Meanwhile the present invention is by obtaining the second data content, and second data content is imported, to cause described the
Two character strings are inputted to the correspondence position of code according to second location path, realize the second character string after translation oneself
Dynamic positioning and importing, have saved the workload being manually entered, the automatic work of processing unit are translated by string data, improved
Operating efficiency.
In addition, the string data translation processing unit shown in the present embodiment, accordingly available for method shown in implementing Fig. 3
The technical scheme of embodiment, the implication of its realization principle, technique effect and term is similar, and here is omitted.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, execution the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to
Connect, angular transducer collection steering angle information, steering angle feedback of the information is passed information to again to controller, controller
Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme.
Claims (10)
- A kind of 1. string data translation processing method, it is characterised in that including:The first information inputted according to user confirms source code directory;In the code of source code directory instruction, inquiry obtains N number of character string;Wherein, N is any more than or equal to 1 Integer;The first data content is exported, the first data content record has the letter of M the first character strings in N number of character string Breath and first location path of first character string in code;Wherein, M is more than or equal to 1 and any whole less than or equal to N Number;The second data content is obtained, the second data content record has the information of individual second character strings of K and second character Go here and there the second location path in code, wherein, K is the arbitrary integer more than or equal to 1 and less than or equal to M, second character Go here and there and translate to obtain according to first character string, second location path is to be obtained according to first location path 's;Second character string is inputted to the correspondence position of code according to second location path.
- 2. according to the method for claim 1, it is characterised in that the information of the M the first character strings includes the first character The data of first language in string.
- 3. according to the method for claim 2, it is characterised in that the information of the M the first character strings also includes described the The data of second language corresponding to the data of one language.
- 4. according to the method for claim 1, it is characterised in that the information of second character string is included according to the 3rd language Data, the data of the 3rd language are what is obtained according to the data translation of first language in the first character string.
- 5. according to the method described in any one of Claims 1-4, it is characterised in that it is described the source code directory instruction In code, inquiry obtains N number of character string, including:All code modules inquired about under the source code directory;The the second validation of information L first code module therein inputted according to user, wherein, L is any whole more than or equal to 1 Number;Inquiry obtains N number of character string in the L first code module.
- 6. the method according to right wants 1 to 4 any one, it is characterised in that before the first data content of the export, also wrap Include:Confirm all character strings with first language for the M the first character strings in N number of character string.
- 7. according to the method described in any one of Claims 1-4, it is characterised in that before the first data content of the export, also Including:Confirm the character string with the first language not being translated for the M the first character strings in N number of character string.
- 8. according to the method described in any one of Claims 1-4, it is characterised in that second data content is according to daily record File modification, and confirm faultless data content.
- 9. according to the method described in any one of Claims 1-4, it is characterised in that first data content also includes the M The identification information ID and string argument of individual first character string.
- 10. a kind of string data translates processing unit, it is characterised in that including:First confirms module, and the first information for being inputted according to user confirms source code directory;Enquiry module, in the code that is indicated in the source code directory, inquiry to obtain N number of character string;Wherein, N be more than Arbitrary integer equal to 1;Export module, for exporting the first data content, the first data content record has M in N number of character string The first location path of the information of first character string and first character string in code;Wherein, M is more than or equal to 1 and small In the arbitrary integer equal to N;First acquisition module, for obtaining the second data content, the second data content record has the letter of K the second character strings Breath and second location path of second character string in code, wherein, K is more than or equal to 1 and any whole less than or equal to M Number, second character string translates to obtain according to first character string, and second location path is according to described the What one location path obtained;Import modul, for being inputted second character string to the correspondence position of code according to second location path.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710464592.6A CN107346303B (en) | 2017-06-19 | 2017-06-19 | Character string data translation processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710464592.6A CN107346303B (en) | 2017-06-19 | 2017-06-19 | Character string data translation processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107346303A true CN107346303A (en) | 2017-11-14 |
CN107346303B CN107346303B (en) | 2020-10-16 |
Family
ID=60253438
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710464592.6A Active CN107346303B (en) | 2017-06-19 | 2017-06-19 | Character string data translation processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107346303B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020206837A1 (en) * | 2019-04-12 | 2020-10-15 | 深圳壹账通智能科技有限公司 | Code segment positioning method and device, computer apparatus, and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104317788A (en) * | 2014-11-03 | 2015-01-28 | 上海鼎讯电子有限公司 | Android multi-language translation method and device |
US20150309993A1 (en) * | 2014-04-24 | 2015-10-29 | Jeffrey Charles Wilde | Agile Enterprise Globalization |
CN106776584A (en) * | 2016-11-24 | 2017-05-31 | 网易(杭州)网络有限公司 | Character displaying method, translation table generating method, document translation method and device |
-
2017
- 2017-06-19 CN CN201710464592.6A patent/CN107346303B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150309993A1 (en) * | 2014-04-24 | 2015-10-29 | Jeffrey Charles Wilde | Agile Enterprise Globalization |
CN104317788A (en) * | 2014-11-03 | 2015-01-28 | 上海鼎讯电子有限公司 | Android multi-language translation method and device |
CN106776584A (en) * | 2016-11-24 | 2017-05-31 | 网易(杭州)网络有限公司 | Character displaying method, translation table generating method, document translation method and device |
Non-Patent Citations (2)
Title |
---|
XIAOYIN WANG ET AL.: "Locating Need-to-Externalize Constant Strings for Software Internationalization with Generalized String-Taint Analysis", 《IEEE TRANSACTIONS ON SOFTWARE ENGINEERING》 * |
黄星莹 等: "软件用户界面资源文件及其本地化翻译", 《计算机光盘软件与应用》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020206837A1 (en) * | 2019-04-12 | 2020-10-15 | 深圳壹账通智能科技有限公司 | Code segment positioning method and device, computer apparatus, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107346303B (en) | 2020-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104317788B (en) | The multi-lingual interpretation methods of Android and device | |
CN103226606B (en) | Inquiry choosing method and system | |
JP4544473B2 (en) | Interface screen design-centric software production process automation method and computer-readable recording medium recording this method as a program | |
CN102750152B (en) | Method and device of application for generating a plurality of programming languages based on descriptive language | |
CN104331285A (en) | Automatic code generation method and system | |
CN103020044A (en) | Machine-aided webpage translation method and system thereof | |
US8589165B1 (en) | Free text matching system and method | |
CN110502227A (en) | The method and device of code completion, storage medium, electronic equipment | |
CN116991990A (en) | Program development assisting method, storage medium and device based on AIGC | |
CN106648819A (en) | Internationalized code conversion method based on editor | |
CN103246648A (en) | Voice input control method and apparatus | |
CN107992306A (en) | A kind of avionics software interface realizes uniformity automatic check method | |
CN104423951A (en) | Method and device for user interface | |
CN104035360A (en) | Parameter adjusting method for EPS controller and device | |
CN107797996A (en) | A kind of word translation method and device | |
CN105138663A (en) | Word bank query method and device | |
CN103955429A (en) | Method and device for determining regression testing range | |
CN107346303A (en) | string data translation processing method and device | |
CN101201750B (en) | Method of providing data for encoding/decoding using syntax lexical analysis tool | |
CN101520778A (en) | Apparatus and method for determing parts-of-speech in chinese | |
JP7131119B2 (en) | Systems and methods for merging source data from a source application with target data in a target application | |
CN102663205B (en) | Software realization method and system for vehicle assembly shop tooling site management | |
CN105446711A (en) | Method and device used for acquiring contextual information on software development tasks | |
CN105630761A (en) | Method and device for manipulating formulas | |
CN110188274A (en) | Search for error correction method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |