CN107346303B - Character string data translation processing method and device - Google Patents

Character string data translation processing method and device Download PDF

Info

Publication number
CN107346303B
CN107346303B CN201710464592.6A CN201710464592A CN107346303B CN 107346303 B CN107346303 B CN 107346303B CN 201710464592 A CN201710464592 A CN 201710464592A CN 107346303 B CN107346303 B CN 107346303B
Authority
CN
China
Prior art keywords
character strings
strings
data content
character
code
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.)
Active
Application number
CN201710464592.6A
Other languages
Chinese (zh)
Other versions
CN107346303A (en
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.)
Shanghai Green Orange Industry Co Ltd
Original Assignee
Shanghai Green Orange Industry 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 Shanghai Green Orange Industry Co Ltd filed Critical Shanghai Green Orange Industry Co Ltd
Priority to CN201710464592.6A priority Critical patent/CN107346303B/en
Publication of CN107346303A publication Critical patent/CN107346303A/en
Application granted granted Critical
Publication of CN107346303B publication Critical patent/CN107346303B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/454Multi-language systems; Localisation; Internationalisation

Abstract

The invention provides a character string data translation processing method and a device, wherein the method comprises the following steps: confirming a source code directory according to first information input by a user; in the codes indicated by the source code directory, N character strings are obtained through query; deriving a first data content recorded with information of M first character strings of N character strings and a first positioning path of the first character strings in a code; acquiring second data content, wherein the second data content records information of K second character strings and a second positioning path of the second character strings in codes, the second character strings are obtained by translation according to the first character strings, and the second positioning path is obtained according to the first positioning path; and inputting the second character string to a corresponding position of the code according to the second positioning path. The invention saves the workload of manual searching, manual exporting and manual inputting, and improves the working efficiency through the automatic work of the character string data translation processing device.

Description

Character string data translation processing method and device
Technical Field
The invention relates to the field of electronics, in particular to a character string data translation processing method and device.
Background
With the development of electronic technology, a character string data translation processing device becomes an indispensable electronic device in daily life of people. In a system of a character string data translation processing apparatus having a large number of character strings including languages of multiple countries, it is necessary to translate these languages in advance in order to meet the needs of users.
In the prior art, in order to implement language translation, all character strings to be translated may be found in a code manually, then the character strings to be translated are submitted to a translator for translation, and then the character strings obtained by translation are input into the code again, so as to complete translation or translation correction of character string data. In this way, the search for the character string to be translated and the input of the character string obtained by translation are manually completed, and the efficiency is low.
Disclosure of Invention
The invention provides a character string data translation processing method and device, and aims to solve the problem of low working efficiency.
According to a first aspect of the present invention, there is provided a character string data translation processing method, including:
confirming a source code directory according to first information input by a user;
in the codes indicated by the source code directory, N character strings are obtained through query; wherein N is any integer greater than or equal to 1;
deriving a first data content recorded with information of M first character strings of the N character strings and a first positioning path of the first character strings in a code; wherein M is any integer greater than or equal to 1 and less than or equal to N;
acquiring second data content, wherein the second data content records information of K second character strings and a second positioning path of the second character strings in codes, K is any integer which is greater than or equal to 1 and less than or equal to M, the second character strings are obtained by translation according to the first character strings, and the second positioning path is obtained according to the first positioning path;
and inputting the second character string to a corresponding position of the code according to the second positioning path.
Optionally, the information of the M first character strings includes data of a first language in the first character strings.
Optionally, the information of the M first character strings further includes data of a second language corresponding to the data of the first language.
Optionally, the information of the second character string includes data according to a third language, and the data of the third language is obtained by translating the data according to the first language in the first character string.
Optionally, the querying a character string in the code indicated by the source code directory includes:
inquiring all code modules under the source code catalog;
determining L first code modules according to second information input by a user, wherein L is any integer greater than or equal to 1;
and inquiring the L first code modules to obtain the N character strings.
Optionally, before deriving the first data content, the method further includes:
confirming all character strings in the first language among the N character strings as the M first character strings.
Optionally, before deriving the first data content, the method further includes:
confirming strings in the N strings having the first language that is not translated as the M first strings.
Optionally, the second data content is modified according to the log file, and the data content without error is confirmed.
Optionally, the first data content further includes identification information IDs and character string parameters of the M first character strings.
According to a second aspect of the present invention, there is provided a character string data translation processing apparatus including:
the first confirmation module is used for confirming the source code catalogue according to first information input by a user;
the query module is used for querying the codes indicated by the source code directory to obtain N character strings; wherein N is any integer greater than or equal to 1;
the derivation module is used for deriving first data content, and the first data content records information of M first character strings in the N character strings and a first positioning path of the first character strings in a code; wherein M is any integer greater than or equal to 1 and less than or equal to N;
the first obtaining module is used for obtaining a second data content, wherein the second data content records information of K second character strings and a second positioning path of the second character strings in codes, K is any integer which is greater than or equal to 1 and less than or equal to M, the second character strings are obtained by translation according to the first character strings, and the second positioning path is obtained according to the first positioning path;
and the importing module is used for inputting the second character string to a corresponding position of the code according to the second positioning path.
Optionally, the information of the M first character strings includes data of a first language in the first character strings.
Optionally, the information of the M first character strings further includes data of a second language corresponding to the data of the first language.
Optionally, the information of the second character string includes data according to a third language, and the data of the third language is obtained by translating the data according to the first language in the first character string.
The query module is specifically configured to:
inquiring all code modules under the source code catalog;
confirming L first code modules according to second information input by a user, wherein L is any integer greater than or equal to 1;
and inquiring the L first code modules to obtain the N character strings.
The device, still include:
and the second confirming module is used for confirming that all the character strings with the first language in the N character strings are the M first character strings.
The device, still include:
a third confirming module for confirming the character strings in the first language which are not translated in the N character strings as the M first character strings.
Optionally, the second data content is modified according to the log file, and the data content without error is confirmed.
Optionally, the first data content further includes identification information IDs and character string parameters of the M first character strings.
According to the character string data translation processing method and device, the source code directory is confirmed according to the information input by the user, the N character strings are obtained through inquiry in the codes indicated by the source code directory, the first data content is derived, the workload of manual searching and manual deriving is saved, and the working efficiency is improved through automatic work of the character string data translation processing device.
Meanwhile, according to the invention, the second data content is obtained, and the second data content is imported, so that the second character string is input to the corresponding position of the code according to the second positioning path, the automatic positioning and importing of the translated second character string are realized, the workload of manual input is saved, and the working efficiency is improved through the automatic work of the character string data translation processing device.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a first flowchart illustrating a string data translation processing method according to the present invention;
FIG. 2 is a first schematic structural diagram of a string data translation processing apparatus according to the present invention;
FIG. 3 is a second flowchart illustrating a string data translation processing method according to the present invention;
FIG. 4 is a schematic structural diagram of a string data translation processing apparatus according to the present invention;
FIG. 5 is a schematic view of a code module selection interface of the present invention;
FIG. 6 is a schematic diagram of an import-export interface according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Example 1
FIG. 1 is a first flowchart illustrating a string data translation processing method according to the present invention; referring to fig. 1, a method for translating and processing character string data is provided, which includes:
s11: and confirming the source code catalogue according to the first information input by the user.
The first information input by the user may be any input information used for confirming a source code directory corresponding to a code that needs to be subjected to character string translation in a plurality of source code directories, and the source code directory may be understood as that a code range may be correspondingly determined by selecting the source code directory.
The source code catalog and codes can be codes in a mobile phone, and the alternative of the invention can be operated in a computer.
S12: in the codes indicated by the source code directory, N character strings are obtained through query; wherein N is any integer greater than or equal to 1.
Wherein the N character strings are understood as character strings having a translatable language.
S13: deriving a first data content recorded with information of M first character strings of the N character strings and a first positioning path of the first character strings in a code; wherein M is an arbitrary integer of 1 or more and N or less.
The first data content may be in any data content form capable of realizing recording of the information of the M first character strings and the first positioning path.
S14: and acquiring second data content, wherein the second data content records information of K second character strings and a second positioning path of the second character strings in codes, K is any integer which is greater than or equal to 1 and less than or equal to M, the second character strings are obtained by translation according to the first character strings, and the second positioning path is obtained according to the first positioning path.
The second data content may be in any data content form that adopts information that can realize recording of each of the K second character strings and the second positioning path.
In this step, since the second positioning path is obtained according to the first positioning path, a basis can be provided for automatic input of the second character string.
S15: and inputting the second character string to a corresponding position of the code according to the second positioning path.
According to the character string data translation processing method, the source code directory is confirmed according to the information input by the user, the N character strings are obtained through inquiry in the codes indicated by the source code directory, the first data content is derived, the workload of manual searching and manual deriving is saved, and the working efficiency is improved through automatic work of the character string data translation processing device.
Meanwhile, according to the invention, the second data content is obtained, and the second data content is imported, so that the second character string is input to the corresponding position of the code according to the second positioning path, the automatic positioning and importing of the translated second character string are realized, the workload of manual input is saved, and the working efficiency is improved through the automatic work of the character string data translation processing device.
Example 2
FIG. 3 is a second flowchart illustrating a string data translation processing method according to the present invention; in this embodiment, the first language may be understood as any language to be translated, the second language may be understood as a reference language, which is listed as english, and the third language may be understood as a translated language, which is listed as chinese; the first character string may be understood as a character string to be translated, and the second character string may be understood as a translated character string.
Referring to fig. 3, a method for translating and processing character string data is provided, which includes:
s21: and confirming the source code catalogue according to the first information input by the user.
The first information input by the user can be any input information used for confirming a source code directory corresponding to a code needing character string translation in a plurality of source code directories; for example, the selection operation may be obtained according to a user's selection operation on a specific directory in an interface that provides a plurality of directories for selection; or the user can confirm the blank window according to the name of the filling directory. In one embodiment, a unique source code directory may be identified, and in alternative embodiments, multiple source code directories may be selected simultaneously.
The source code directory is understood to correspond to the determined code range through the selection of the source code directory.
S22: in the codes indicated by the source code directory, N character strings are obtained through query; wherein N is any integer greater than or equal to 1.
Wherein the N character strings may be understood as parts or character strings having a translatable language. For searching and determining the N character strings of the language to be translated, the N character strings can be determined by corresponding value values, for example, for Chinese, the N character strings can be understood as values-zh-rCN, and for French, the N character strings can be understood as values-fr.
In one embodiment, referring to fig. 3, step S22 may specifically include:
s221: inquiring all code modules under the source code catalog;
wherein, the code module can be understood as a specific code segment in the code range corresponding to the characterization directory; as can be seen, the above embodiment can check the character strings in each module in units of modules. Different code modules may be stored in different files, folders or locations to be called up, or may be stored in the same file or folder.
S222: determining L first code modules according to second information input by a user, wherein L is any integer greater than or equal to 1;
the second information input by the user can be any input information used for confirming a code module corresponding to a code needing character string translation in a plurality of code modules; for example, the code module selection operation may be obtained according to a selection operation of a user on a specific code module in an interface providing selection of a plurality of code modules; or the code module can be confirmed by the name of the code module filled in by the user under the interface for providing the blank filling window. In one embodiment, multiple code modules may be identified, or one code module may be identified.
The L first code modules may be understood as code modules determined by the user to be required to translate the character strings therein. Specifically, the character string to be translated may be untranslated or translated.
Fig. 5 is a schematic diagram of a code module selection interface according to the present invention, please refer to fig. 5, wherein different code modules can be distinguished by different module names or program names, and L first code modules can be selected by checking the code modules and clicking the next step.
S223: and inquiring the L first code modules to obtain the N character strings.
In a specific implementation process, all android.mk files can be searched first, all modules are determined, and then files similar to string.xml or mtk _ string.xml and the like in res and res-ext folders corresponding to the modules are searched, so that query of character strings is achieved.
S26: deriving a first data content recorded with information of M first character strings of the N character strings and a first positioning path of the first character strings in a code; wherein M is an arbitrary integer of 1 or more and N or less.
The first data content may be in any data content form capable of realizing recording of the information of the M first character strings and the first positioning path. In one embodiment, the form of an EXCEL table may be used. The first data content may further include identification information IDs and character string parameters of the M first character strings.
In one embodiment, before step S26, the method may further include:
step S23: whether the difference is derived or not is confirmed according to the selection of the user.
If not, step S24 is executed: confirming all character strings in the first language among the N character strings as the M first character strings. In this embodiment, all translated and untranslated strings of the language to be translated are derived.
If the difference is derived, step S25 is executed: confirming strings in the N strings having the first language that is not translated as the M first strings. In this embodiment, only the untranslated character strings are derived.
In one embodiment, the method may further include generating third data content, where the third data content may be used to record information of the character string in the first language that is not translated; it can be applied to the implementation of step S24 and step S25, respectively.
In one embodiment, the information of the M first strings includes data of a first language in the first strings. The information of the M first character strings further comprises data of a second language corresponding to the data of the first language. For example, the first language is a language to be translated, such as french, german, japanese, russian, spanish, etc., and the second language is understood as a reference language, which may be listed as english.
Referring to fig. 6, the process from step S21 to step S26 can be triggered by clicking the "export string to be translated to EXEL" button illustrated in fig. 6.
S27: acquiring second data content, wherein the second data content records information of K second character strings and a second positioning path of the second character strings in codes, K is any integer which is greater than or equal to 1 and less than or equal to M, the second character strings are obtained by translation according to the first character strings, and the second positioning path is obtained according to the first positioning path;
the second data content may be in any data content form capable of realizing the recording of the information of the K second character strings and the second positioning path. In one embodiment, the form of an EXCEL table may be used.
The second character string is obtained by translation according to the first character string, and it can be understood that after the first data content is exported, the user can translate manually through a translator, can also translate automatically by using translation software, and can also compare the second character string with an existing database, so as to extract the corresponding translated second character string. The latter two ways further improve the efficiency of translation.
The information of the second character string comprises data according to a third language, and the data of the third language is obtained by translating the data according to the first language in the first character string. The third language, which may be understood as a translated language, may be listed as chinese in the specific embodiment. However, the present invention is not limited to the case of translating into Chinese, and the third language is different from the first language without departing from the scope of the present invention.
The second positioning path is obtained according to the first positioning path, and may be listed as a position indicated by the second positioning path being the same as the position indicated by the first positioning path, or being in the same column, or may be any other path obtained based on the first positioning path, for example, a path different by several columns of codes, and so on. As long as the second positioning path is a path indicating a position in the code and there is a positional correspondence with the first positioning path, it does not depart from the scope of the description of the present invention.
Step S27 and the steps following it may be triggered by the click of the "import translated EXCEL to code" button illustrated in fig. 6.
S28: and inputting the second character string to a corresponding position of the code according to the second positioning path.
In one embodiment, the second data content is modified according to a log file, and the data content without errors is confirmed.
It can be seen that, before step S28, a process of checking the second data content may be further included, and after finding out the wrong character string, the translator may be prompted to modify and then re-import the wrong character string.
According to the character string data translation processing method, the source code directory is confirmed according to the information input by the user, the N character strings are obtained through inquiry in the codes indicated by the source code directory, the first data content is derived, the workload of manual searching and manual deriving is saved, and the working efficiency is improved through automatic work of the character string data translation processing device.
Meanwhile, according to the invention, the second data content is obtained, and the second data content is imported, so that the second character string is input to the corresponding position of the code according to the second positioning path, the automatic positioning and importing of the translated second character string are realized, the workload of manual input is saved, and the working efficiency is improved through the automatic work of the character string data translation processing device.
Example 3
FIG. 2 is a first schematic structural diagram of a string data translation processing apparatus according to the present invention; referring to fig. 2, there is provided a character string data translation processing apparatus, including:
the first confirming module 101 is used for confirming the source code directory according to the first information input by the user;
the query module 102 is configured to query the codes indicated by the source code directory to obtain N character strings; wherein N is any integer greater than or equal to 1;
a deriving module 103, configured to derive first data content, where the first data content records information of M first character strings of the N character strings and a first positioning path of the first character string in a code; wherein M is any integer greater than or equal to 1 and less than or equal to N;
a first obtaining module 104, configured to obtain a second data content, where the second data content records information of K second character strings and a second positioning path of the second character strings in a code, where K is any integer greater than or equal to 1 and less than or equal to M, the second character string is obtained by translating according to the first character string, and the second positioning path is obtained according to the first positioning path;
and the importing module 105 is configured to input the second character string to a corresponding position of the code according to the second positioning path.
According to the character string data translation processing device, the source code directory is confirmed according to the information input by the user, the N character strings are obtained through inquiry in the codes indicated by the source code directory, the first data content is derived, the workload of manual searching and manual deriving is saved, and the working efficiency is improved through automatic work of the character string data translation processing device.
Meanwhile, according to the invention, the second data content is obtained, and the second data content is imported, so that the second character string is input to the corresponding position of the code according to the second positioning path, the automatic positioning and importing of the translated second character string are realized, the workload of manual input is saved, and the working efficiency is improved through the automatic work of the character string data translation processing device.
In addition, the string data translation processing apparatus shown in this embodiment may be correspondingly used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle, technical effect and meaning of the terms are similar, which is not described herein again.
Example 4
FIG. 4 is a schematic structural diagram of a string data translation processing apparatus according to the present invention; referring to fig. 4, there is provided a character string data translation processing apparatus, including:
a first confirmation module 201, configured to confirm the source code directory according to first information input by a user;
the query module 202 is configured to query the codes indicated by the source code directory to obtain N character strings; wherein N is any integer greater than or equal to 1;
a deriving module 205, configured to derive first data content, where the first data content records information of M first character strings of the N character strings and a first positioning path of the first character string in a code; wherein M is any integer greater than or equal to 1 and less than or equal to N;
a first obtaining module 206, configured to obtain a second data content, where the second data content records information of K second character strings and a second positioning path of the second character strings in a code, where K is any integer greater than or equal to 1 and less than or equal to M, the second character string is obtained by translating according to the first character string, and the second positioning path is obtained according to the first positioning path;
and the importing module 207 is configured to input the second character string to a corresponding position of a code according to the second positioning path.
Optionally, the information of the M first character strings includes data of a first language in the first character strings.
Optionally, the information of the M first character strings further includes data of a second language corresponding to the data of the first language.
Optionally, the information of the second character string includes data according to a third language, and the data of the third language is obtained by translating the data according to the first language in the first character string.
The query module 202 is specifically configured to:
inquiring all code modules under the source code catalog;
confirming L first code modules according to second information input by a user, wherein L is any integer greater than or equal to 1;
and inquiring the L first code modules to obtain the N character strings.
The character string data translation processing device further comprises:
a second confirming module 204, configured to confirm all the character strings in the first language among the N character strings as the M first character strings.
The character string data translation processing device further comprises:
a third confirming module 203, configured to confirm the character strings in the first language that are not translated among the N character strings as the M first character strings.
Optionally, the second data content is modified according to the log file, and the data content without error is confirmed.
Optionally, the first data content further includes identification information IDs and character string parameters of the M first character strings.
According to the character string data translation processing device, the source code directory is confirmed according to the information input by the user, the N character strings are obtained through inquiry in the codes indicated by the source code directory, the first data content is derived, the workload of manual searching and manual deriving is saved, and the working efficiency is improved through automatic work of the character string data translation processing device.
Meanwhile, according to the invention, the second data content is obtained, and the second data content is imported, so that the second character string is input to the corresponding position of the code according to the second positioning path, the automatic positioning and importing of the translated second character string are realized, the workload of manual input is saved, and the working efficiency is improved through the automatic work of the character string data translation processing device.
In addition, the string data translation processing apparatus shown in this embodiment may be correspondingly used to implement the technical solution of the method embodiment shown in fig. 3, and the implementation principle, technical effect and meaning of the terms are similar, which is not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A character string data translation processing method is characterized by comprising the following steps:
confirming a source code directory according to first information input by a user;
in the codes indicated by the source code directory, N character strings are obtained through query; wherein N is any integer greater than or equal to 1;
deriving a first data content recorded with information of M first character strings of the N character strings and a first positioning path of the first character strings in a code; wherein M is any integer greater than or equal to 1 and less than or equal to N;
acquiring second data content, wherein the second data content records information of K second character strings and a second positioning path of the second character strings in codes, K is any integer which is greater than or equal to 1 and less than or equal to M, the second character strings are obtained by translation according to the first character strings, and the second positioning path is obtained according to the first positioning path;
inputting the second character string to a corresponding position of a code according to the second positioning path;
in the codes indicated by the source code directory, the query obtains N character strings, including:
inquiring all code modules under the source code catalog;
confirming L first code modules according to second information input by a user, wherein L is any integer greater than or equal to 1;
and inquiring the L first code modules to obtain the N character strings.
2. The method of claim 1, wherein the information for the M first strings includes data in a first language in the first strings.
3. The method of claim 2, wherein the information for the M first strings further includes data in a second language to which the data in the first language corresponds.
4. The method of claim 1, wherein the information of the second string comprises data in a third language translated from data in the first language in the first string.
5. The method of any of claims 1 to 4, wherein prior to deriving the first data content, further comprising:
confirming all character strings in the first language among the N character strings as the M first character strings.
6. The method of any of claims 1 to 4, wherein prior to deriving the first data content, further comprising:
confirming strings in the N strings having the first language that is not translated as the M first strings.
7. The method of any of claims 1 to 4, wherein the second data content is modified from a log file and is confirmed to be error-free.
8. The method according to any one of claims 1 to 4, wherein the first data content further includes identification information IDs and character string parameters of the M first character strings.
9. A character string data translation processing apparatus characterized by comprising:
the first confirmation module is used for confirming the source code catalogue according to first information input by a user;
the query module is used for querying the codes indicated by the source code directory to obtain N character strings; wherein N is any integer greater than or equal to 1;
the derivation module is used for deriving first data content, and the first data content records information of M first character strings in the N character strings and a first positioning path of the first character strings in a code; wherein M is any integer greater than or equal to 1 and less than or equal to N;
the first obtaining module is used for obtaining a second data content, wherein the second data content records information of K second character strings and a second positioning path of the second character strings in codes, K is any integer which is greater than or equal to 1 and less than or equal to M, the second character strings are obtained by translation according to the first character strings, and the second positioning path is obtained according to the first positioning path;
the import module is used for inputting the second character string to a corresponding position of a code according to the second positioning path;
the query module is specifically configured to:
inquiring all code modules under the source code catalog;
confirming L first code modules according to second information input by a user, wherein L is any integer greater than or equal to 1;
and inquiring the L first code modules to obtain the N character strings.
CN201710464592.6A 2017-06-19 2017-06-19 Character string data translation processing method and device Active CN107346303B (en)

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 CN107346303A (en) 2017-11-14
CN107346303B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110134401A (en) * 2019-04-12 2019-08-16 深圳壹账通智能科技有限公司 Code snippet localization method, device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
Locating Need-to-Externalize Constant Strings for Software Internationalization with Generalized String-Taint Analysis;Xiaoyin Wang et al.;《IEEE Transactions on Software Engineering》;20130430;第39卷(第4期);第516-536页 *
软件用户界面资源文件及其本地化翻译;黄星莹 等;《计算机光盘软件与应用》;20131231(第2期);第262-263页 *

Also Published As

Publication number Publication date
CN107346303A (en) 2017-11-14

Similar Documents

Publication Publication Date Title
US11151179B2 (en) Method, apparatus and electronic device for determining knowledge sample data set
CN104317788B (en) The multi-lingual interpretation methods of Android and device
CN109240661B (en) Code generation method and device
CN105205053A (en) Method and system for analyzing database incremental logs
EP3779970A1 (en) Voice recognition and error correction method and voice recognition and error correction system
EP3444725A1 (en) Man-machine interaction method and device therefor
US20210034622A1 (en) Method and system for enhanced search term suggestion
US20190303384A1 (en) Method and system for consolidating data retrieved from different sources
CN115391439B (en) Document data export method, device, electronic equipment and storage medium
CN111190920A (en) Data interactive query method and system based on natural language
CN111729313A (en) Language configuration method and device, storage medium and electronic device
CN113076167A (en) Code processing method and related equipment
CN107346303B (en) Character string data translation processing method and device
CN106570095B (en) XML data operation method and equipment
CN116226170A (en) Database statement conversion method and device, electronic equipment and storage medium
CN114297143A (en) File searching method, file displaying device and mobile terminal
CN104636471A (en) Procedure code finding method and device
CN106569986B (en) Character string replacing method and device
CN116360787A (en) Automatic generation method and device for form codes, electronic equipment and storage medium
CN109829010B (en) Entry modification method and entry modification device
CN101436203A (en) Recording index method and apparatus
CN103377197A (en) Rich format document processing method and rich format document processing device
CN109684437B (en) Content alignment method, device, storage medium and equipment for file comparison
CN107526729B (en) Original translation positioning method and device
Fishel et al. From subtitles to parallel corpora

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