CN107608875B - Localization processing method and device for static code - Google Patents

Localization processing method and device for static code Download PDF

Info

Publication number
CN107608875B
CN107608875B CN201710656636.5A CN201710656636A CN107608875B CN 107608875 B CN107608875 B CN 107608875B CN 201710656636 A CN201710656636 A CN 201710656636A CN 107608875 B CN107608875 B CN 107608875B
Authority
CN
China
Prior art keywords
target
code
entry
translated
static
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
CN201710656636.5A
Other languages
Chinese (zh)
Other versions
CN107608875A (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.)
Qianxin Technology Group Co Ltd
Original Assignee
Qianxin Technology Group 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 Qianxin Technology Group Co Ltd filed Critical Qianxin Technology Group Co Ltd
Priority to CN201710656636.5A priority Critical patent/CN107608875B/en
Publication of CN107608875A publication Critical patent/CN107608875A/en
Application granted granted Critical
Publication of CN107608875B publication Critical patent/CN107608875B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a method and a device for localized processing of static codes, wherein the method comprises the following steps: obtaining an annotation statement in the static code according to a preset rule, and deleting the annotation statement to obtain a first processed static code; scanning the static codes after the first processing line by line, and if the ASCII values corresponding to the codes in the target line are judged and known to be in a preset range, storing the target line into an output file; and according to the static code development rule, acquiring the target code from the static code after the first processing, and storing the target code into an output file. By deleting the comment statement, the target line of the ASCII numerical value in the preset range and the target code obtained according to the static code development rule are stored in the output file, the limitation of a coding language is avoided, the source code does not need to be modified manually, testers can directly carry out localization processing according to the code in the output file, the phenomenon of translation missing can be found in time, and the workload of the testers is greatly reduced.

Description

Localization processing method and device for static code
Technical Field
The embodiment of the invention relates to the technical field of software testing, in particular to a method and a device for localized processing of static codes.
Background
At present, a plurality of checking tools exist in the field of localized processing of static codes, and tools such as Java language include Android lint, findbugs, Jint and the like, but tools on the market at present, which can check hard codes and can perform an international checking function, are not well supported.
In the existing method, the link is a self-contained tool of Android sdk and is more suitable for Android projects, and if the link is a pc or server project or a language is changed, the link cannot play a role; the Android lint of Google obtains the hard coding or translation problem through analyzing the xml of the source code resource file, and the result is shown in fig. 1.
In the process of implementing the embodiment of the invention, the inventor finds that the existing localization method is only suitable for Android projects, and cannot modify the rules of static codes or internationalized check items, and if the localization method is implemented by modifying source codes, the cost is too high.
Disclosure of Invention
Because the existing method has the above problems, the embodiments of the present invention provide a method and an apparatus for localized processing of static codes.
In a first aspect, an embodiment of the present invention provides a method for localized processing of a static code, where the method includes:
obtaining an annotation statement in the static code according to a preset rule, and deleting the annotation statement to obtain a first processed static code;
scanning the static codes after the first processing line by line, and if the American Standard Code for Information Interchange (ASCII) value corresponding to the codes in the target line is judged and known to be in a preset range, storing the target line into an output file;
and according to a static code development rule, acquiring a target code from the first processed static code, and storing the target code into the output file so that a tester can perform localization processing according to the code in the output file.
Optionally, the static code development rule is preconfigured in a configuration file.
Optionally, the method further comprises:
and acquiring a target log in the first processed static code according to a log naming rule, and storing the target log into the output file.
Optionally, the obtaining an annotation statement in the static code according to a preset rule, and deleting the annotation statement to obtain a first processed static code specifically includes:
acquiring an annotation statement in source codes of static codes according to a preset rule, deleting the annotation statement, scanning the source codes from which the annotation statement is deleted, and acquiring a plurality of resource files;
and obtaining the comment statements in the resource files according to the preset rule to obtain a first processed static code.
Optionally, the method further comprises:
obtaining the entry identifiers to be translated in the first processed static codes, and filtering the entry identifiers to be translated according to a regular expression to obtain a plurality of filtered entry identifiers;
and comparing each filtered entry mark with the entry marks in each resource file, and if the target filtered entry mark is not in all the resource files, storing the target filtered entry mark into the output file.
Optionally, the method further comprises:
and if the target to-be-translated entry identification in each resource file is judged to be the same as the corresponding target to-be-translated entry value, or the target to-be-translated entry identification or the target to-be-translated entry value is empty, storing the target to-be-translated entry identification and the target to-be-translated entry value into the output file.
In a second aspect, an embodiment of the present invention further provides a device for locally processing a static code, where the device includes:
the comment statement deleting module is used for acquiring a comment statement in the static code according to a preset rule and deleting the comment statement to obtain a first processed static code;
the target line output module is used for scanning the first processed static code line by line, and if the American Standard Code for Information Interchange (ASCII) value corresponding to the code in the target line is judged and known to be within a preset range, the target line is stored into an output file;
and the target code output module is used for acquiring a target code from the first processed static code according to a static code development rule and storing the target code into the output file so as to enable a tester to carry out localization processing according to the code in the output file.
Optionally, the static code development rule is preconfigured in a configuration file.
Optionally, the apparatus further comprises:
and the target log output module is used for acquiring a target log in the first processed static code according to a log naming rule and storing the target log into the output file.
Optionally, the comment statement deleting module specifically includes:
the statement deleting unit is used for acquiring an annotation statement in the source codes of the static codes according to a preset rule, deleting the annotation statement, scanning the source codes from which the annotation statement is deleted, and acquiring a plurality of resource files;
and the statement acquisition unit is used for acquiring the annotation statements in the resource files according to the preset rule to obtain a first processed static code.
Optionally, the apparatus further comprises:
the identification filtering module is used for acquiring the entry identification to be translated in the first processed static code, and filtering the entry identification to be translated according to a regular expression to obtain a plurality of filtered entry identifications;
and the identification output module is used for comparing each filtered entry identification with the entry identification in each resource file, and if the target filtered entry identification is not in all the resource files, storing the target filtered entry identification into the output file.
Optionally, the apparatus further comprises:
and the entry judgment module is used for storing the target entry identification to be translated and the target entry value to be translated into the output file if the judgment result shows that the target entry identification to be translated in each resource file is the same as the corresponding target entry value to be translated, or the target entry identification to be translated or the target entry value to be translated is empty.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, which when called by the processor are capable of performing the above-described methods.
In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium storing a computer program, which causes the computer to execute the above method.
According to the technical scheme, the target line of the ASCII numerical value in the preset range and the target code obtained according to the static code development rule are saved in the output file after the comment statement is deleted, the limitation of a coding language is avoided, the source code does not need to be modified manually, a tester can directly perform localization processing according to the code in the output file, the translation missing phenomenon can be found in time, and the workload of the tester is greatly reduced.
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, 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 diagram illustrating a localization processing result of static code provided by the prior art;
fig. 2 is a flowchart illustrating a method for localized processing of static code according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a static code localization processing apparatus according to an embodiment of the present invention;
fig. 4 is a logic block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
Fig. 2 shows a flowchart of a method for localized processing of static code provided in this embodiment, where the method includes:
s201, obtaining an annotation statement in the static code according to a preset rule, and deleting the annotation statement to obtain the first processed static code.
The preset rules are rules summarized according to rules of the comment sentences of different languages.
The comment statement is added to the static code for the convenience of reading by a programmer, and the operation of the code is not affected by deleting the comment statement.
The static code is a code which scans program codes through the technologies of lexical analysis, syntactic analysis, control flow, data flow analysis and the like under the condition of not running the code and verifies whether the code meets the indexes of normalization, safety, reliability, maintainability and the like.
And the first processed static code is S202, the first processed static code is scanned line by line, and if the American Standard Code for Information Interchange (ASCII) value corresponding to the code in the target line is judged to be in a preset range, the target line is stored in an output file.
Wherein the target behavior is a code line of code having an ASCII value within a preset range.
The preset range is determined according to ASCII numerical values corresponding to different localized languages, namely when the localized language is Chinese, the preset range is an ASCII numerical value range corresponding to Chinese characters; when the localized language is English, the preset range is an ASCII numerical range corresponding to English characters, and so on.
The output file is a file for storing the content to be translated, which is obtained after the localization processing of the static code provided by the embodiment.
Taking Chinese as an example, a line with Chinese in a source code is obtained, whether the line contains Chinese is judged through a corresponding ASCII numerical value, and the method can be specifically realized through the following codes:
if ord(char)>128:
return True
s203, according to a static code development rule, acquiring a target code from the first processed static code, and storing the target code into the output file, so that a tester can perform localization processing according to the code in the output file.
The static code development rule is a hard-coded coding rule, some hard codes exist in the coding process, and the hard codes need to be used in the localization processing process, so that the hard codes need to be obtained according to the development rule and stored in an output file.
The target code is hard code obtained from the first processed static code according to a static code development rule.
The localization processing is a processing procedure that in the process of software application, in order to match the use of different regions, the language displayed by the interface is translated into the local language.
The static code development rules are pre-configured in a configuration file.
For example, the hard-coded rules may be configured by means of a configuration file, such as: inl in rule. By reading some static code development rules defined in the rule. For example, the target code obtained according to the static code development rule is:
[hit][38]./soruceCode/TempForCheckDesc.java
new return result (501, "this not go");
where hit in the first line of code represents the static code development rule, 38 is line 38,/soruce code/tempforcheckdesc. The second line of code is the retrieved problematic code (object code).
The embodiment can solve the scanning of hard codes and the retrieval of untranslated entries, and realize the detection of the hard codes and the missed translation entries. However, in the international inspection aspect in the market, no system is available for local inspection from the code scanning level so as to achieve full-coverage inspection, improve the competitive advantage of companies, and quickly and efficiently complete unit test code inspection requiring international projects.
According to the embodiment, the target line of the ASCII value in the preset range and the target code obtained according to the static code development rule are saved in the output file after the comment statement is deleted, the limitation of a coding language is avoided, the source code does not need to be modified manually, a tester can directly perform localization processing according to the code in the output file, the translation missing phenomenon can be found in time, and the workload of the tester is greatly reduced.
Further, on the basis of the above embodiment of the method, the method further comprises:
s204, acquiring a target log in the first processed static code according to a log naming rule, and storing the target log into the output file.
And the target log is a log in the first processed static code.
For example, the beginning codes such as logUtil and NSLog are log generation codes, and the logs corresponding to the codes are stored in an output file, and specific implementation codes are as follows:
if is_chinese(s):
if'LogUtil'in line or'NSLog('in line:
break
the target log in the static code is conveniently acquired through the log naming rule, and the localization processing is convenient.
Further, on the basis of the above method embodiment, S201 specifically includes:
s2011, obtaining an annotation statement in a source code of a static code according to a preset rule, deleting the annotation statement, scanning the source code from which the annotation statement is deleted, and obtaining a plurality of resource files;
s2012, obtaining the comment sentences in the resource files according to the preset rule to obtain the first processed static code.
The resource file is a file which is used for storing the source code and corresponds to the file name contained in the static code.
Specifically, after the comment statement in the static code is deleted, a resource file, such as a java file, which needs to be scanned is recursively acquired. A search is then made for the line content in each resource file for a flag containing various language annotations.
By acquiring the resource file for scanning, all the annotation sentences can be deleted, and subsequent interference to testers and programmers is avoided.
Further, on the basis of the above embodiment of the method, the method further comprises:
s205, obtaining the entry identifiers to be translated in the first processed static codes, and filtering the entry identifiers to be translated according to a regular expression to obtain a plurality of filtered entry identifiers;
s206, comparing the filtered entry marks with the entry marks in the resource files, and if the target filtered entry marks are not in all the resource files, storing the target filtered entry marks in the output file.
The entry identifier to be translated is an identifier of an entry to be translated, and is generally represented by a key.
The filtered entry marks are the entry marks to be translated, which are filtered by the regular expression.
Specifically, all keys needing localization are obtained, filtering matching is carried out through a regular expression, and the method is flexible and can be modified according to conditions. The filtering may be performed, for example, using the following regular expression:
pattern=re.compile(r"encodeTempletMessage\(\"([^\"]+)\"")
and after filtering, comparing the keylists obtained from the source codes with the resource files of each language, if no keylists are found, judging that the keylists belong to missed translation, and storing the missing translation into the output file to ensure that the missed translation does not exist.
Further, on the basis of the above embodiment of the method, the method further comprises:
s207, if the target to-be-translated entry identifier in each resource file is judged to be the same as the corresponding target to-be-translated entry value, or the target to-be-translated entry identifier or the target to-be-translated entry value is empty, storing the target to-be-translated entry identifier and the target to-be-translated entry value into the output file.
The target entry identifier to be translated is an entry identifier to be translated in the resource file, and can be represented by a key.
The target entry value to be translated is the entry value corresponding to the target entry identifier to be translated and can be represented by value.
Specifically, for a single resource file, key and value are identical, or key and vlue have a null item to be saved in the output file, so that translation missing is avoided.
According to the embodiment, the workload of the functional testers for detecting the untranslated work can be greatly reduced, the terms are guaranteed to be translated, and only the semantic translation needs to be manually judged whether to be reasonable, so that the work efficiency is greatly improved.
Fig. 3 shows a schematic structural diagram of a static code localization processing apparatus provided in this embodiment, where the apparatus includes: an annotation statement deletion module 301, a target line output module 302, and a target code output module 303, wherein:
the comment statement deleting module 301 is configured to obtain a comment statement in a static code according to a preset rule, and delete the comment statement to obtain a first processed static code;
the target line output module 302 is configured to scan the first processed static code line by line, and if it is determined that an ASCII value of an american standard code for information interchange corresponding to a code in a target line is within a preset range, store the target line in an output file;
the target code output module 303 is configured to obtain a target code from the first processed static code according to a static code development rule, and store the target code in the output file, so that a tester performs localization processing according to a code in the output file.
Specifically, the comment statement deleting module 301 obtains a comment statement in a static code according to a preset rule, and deletes the comment statement to obtain a first processed static code; the target line output module 302 performs line-by-line scanning on the first processed static code, and stores the target line into an output file if the American Standard Code for Information Interchange (ASCII) value corresponding to the code in the target line is determined to be within a preset range; the target code output module 303 obtains a target code from the first processed static code according to a static code development rule, and stores the target code in the output file, so that a tester can perform localization processing according to the code in the output file.
According to the embodiment, the target line of the ASCII value in the preset range and the target code obtained according to the static code development rule are saved in the output file after the comment statement is deleted, the limitation of a coding language is avoided, the source code does not need to be modified manually, a tester can directly perform localization processing according to the code in the output file, the translation missing phenomenon can be found in time, and the workload of the tester is greatly reduced.
Further, on the basis of the above device embodiment, the static code development rule is pre-configured in a configuration file.
Further, on the basis of the above embodiment of the apparatus, the apparatus further comprises:
and the target log output module is used for acquiring a target log in the first processed static code according to a log naming rule and storing the target log into the output file.
Further, on the basis of the above apparatus embodiment, the comment statement deletion module specifically includes:
the statement deleting unit is used for acquiring an annotation statement in the source codes of the static codes according to a preset rule, deleting the annotation statement, scanning the source codes from which the annotation statement is deleted, and acquiring a plurality of resource files;
and the statement acquisition unit is used for acquiring the annotation statements in the resource files according to the preset rule to obtain a first processed static code.
Further, on the basis of the above embodiment of the apparatus, the apparatus further comprises:
the identification filtering module is used for acquiring the entry identification to be translated in the first processed static code, and filtering the entry identification to be translated according to a regular expression to obtain a plurality of filtered entry identifications;
and the identification output module is used for comparing each filtered entry identification with the entry identification in each resource file, and if the target filtered entry identification is not in all the resource files, storing the target filtered entry identification into the output file.
Further, on the basis of the above embodiment of the apparatus, the apparatus further comprises:
and the entry judgment module is used for storing the target entry identification to be translated and the target entry value to be translated into the output file if the judgment result shows that the target entry identification to be translated in each resource file is the same as the corresponding target entry value to be translated, or the target entry identification to be translated or the target entry value to be translated is empty.
The localization processing device of the static code described in this embodiment may be used to execute the above method embodiments, and the principle and technical effect are similar, which are not described herein again.
Referring to fig. 4, the electronic device includes: a processor (processor)401, a memory (memory)402, and a bus 403;
wherein the content of the first and second substances,
the processor 401 and the memory 402 complete communication with each other through the bus 403;
the processor 401 is configured to call program instructions in the memory 402 to perform the methods provided by the above-described method embodiments.
The present embodiments disclose a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the above-described method embodiments.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the method embodiments described above.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
It should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A localization processing method of static codes is characterized by comprising the following steps:
obtaining an annotation statement in the static code according to a preset rule, and deleting the annotation statement to obtain a first processed static code;
scanning the static codes after the first processing line by line, and if the American Standard Code for Information Interchange (ASCII) value corresponding to the codes in the target line is judged and known to be in a preset range, storing the target line into an output file;
according to a static code development rule, acquiring a target code from the first processed static code, and storing the target code into the output file so that a tester can perform localization processing according to the code in the output file; the output file is used for storing the content to be translated;
the static code development rule is pre-configured in a configuration file;
the obtaining of the comment statement in the static code according to the preset rule and deleting of the comment statement to obtain the first processed static code specifically includes:
acquiring an annotation statement in source codes of static codes according to a preset rule, deleting the annotation statement, scanning the source codes from which the annotation statement is deleted, and acquiring a plurality of resource files;
obtaining annotation statements in the resource files according to the preset rule to obtain a first processed static code;
the resource file is a file which is used for storing the source code and corresponds to the file name contained in the static code.
2. The method of claim 1, further comprising:
and acquiring a target log in the first processed static code according to a log naming rule, and storing the target log into the output file.
3. The method of claim 1, further comprising:
obtaining the entry identifiers to be translated in the first processed static codes, and filtering the entry identifiers to be translated according to a regular expression to obtain a plurality of filtered entry identifiers;
and comparing each filtered entry mark with the entry marks in each resource file, and if the target filtered entry mark is not in all the resource files, storing the target filtered entry mark into the output file.
4. The method of claim 3, further comprising:
and if the target to-be-translated entry identification in each resource file is judged to be the same as the corresponding target to-be-translated entry value, or the target to-be-translated entry identification or the target to-be-translated entry value is empty, storing the target to-be-translated entry identification and the target to-be-translated entry value into the output file.
5. An apparatus for localized processing of static code, comprising:
the comment statement deleting module is used for acquiring a comment statement in the static code according to a preset rule and deleting the comment statement to obtain a first processed static code;
the target line output module is used for scanning the first processed static code line by line, and if the American Standard Code for Information Interchange (ASCII) value corresponding to the code in the target line is judged and known to be within a preset range, the target line is stored into an output file; the target code output module is used for acquiring a target code from the first processed static code according to a static code development rule and storing the target code into the output file so as to enable a tester to perform localization processing according to the code in the output file; the output file is used for storing the content to be translated;
the static code development rule is pre-configured in a configuration file;
the comment statement deletion module specifically includes:
the statement deleting unit is used for acquiring an annotation statement in the source codes of the static codes according to a preset rule, deleting the annotation statement, scanning the source codes from which the annotation statement is deleted, and acquiring a plurality of resource files;
the statement acquisition unit is used for acquiring annotation statements in the resource files according to the preset rule to obtain a first processed static code;
the resource file is a file which is used for storing the source code and corresponds to the file name contained in the static code.
6. The apparatus of claim 5, further comprising:
and the target log output module is used for acquiring a target log in the first processed static code according to a log naming rule and storing the target log into the output file.
7. The apparatus of claim 5, further comprising:
the identification filtering module is used for acquiring the entry identification to be translated in the first processed static code, and filtering the entry identification to be translated according to a regular expression to obtain a plurality of filtered entry identifications;
and the identification output module is used for comparing each filtered entry identification with the entry identification in each resource file, and if the target filtered entry identification is not in all the resource files, storing the target filtered entry identification into the output file.
8. The apparatus of claim 7, further comprising:
and the entry judgment module is used for storing the target entry identification to be translated and the target entry value to be translated into the output file if the judgment result shows that the target entry identification to be translated in each resource file is the same as the corresponding target entry value to be translated, or the target entry identification to be translated or the target entry value to be translated is empty.
9. An electronic device, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 4.
10. A non-transitory computer-readable storage medium storing a computer program that causes a computer to perform the method according to any one of claims 1 to 4.
CN201710656636.5A 2017-08-03 2017-08-03 Localization processing method and device for static code Active CN107608875B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710656636.5A CN107608875B (en) 2017-08-03 2017-08-03 Localization processing method and device for static code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710656636.5A CN107608875B (en) 2017-08-03 2017-08-03 Localization processing method and device for static code

Publications (2)

Publication Number Publication Date
CN107608875A CN107608875A (en) 2018-01-19
CN107608875B true CN107608875B (en) 2020-11-06

Family

ID=61064341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710656636.5A Active CN107608875B (en) 2017-08-03 2017-08-03 Localization processing method and device for static code

Country Status (1)

Country Link
CN (1) CN107608875B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227668A (en) * 2016-07-29 2016-12-14 腾讯科技(深圳)有限公司 Data processing method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1265307C (en) * 2002-12-12 2006-07-19 华为技术有限公司 Characteristic character string extracting and substituting method in language localization
CN1261867C (en) * 2003-12-16 2006-06-28 艾默生网络能源有限公司 Method for implementing language resource localization of software
JP4143661B2 (en) * 2006-09-11 2008-09-03 インターナショナル・ビジネス・マシーンズ・コーポレーション Internationalized software test method, apparatus and program using test resource file and test font
US9465719B2 (en) * 2014-08-12 2016-10-11 Red Hat, Inc. Localized representation of stack traces
CN106844192A (en) * 2016-11-10 2017-06-13 乐视控股(北京)有限公司 A kind of detection method of program's source code, device and electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227668A (en) * 2016-07-29 2016-12-14 腾讯科技(深圳)有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN107608875A (en) 2018-01-19

Similar Documents

Publication Publication Date Title
CN108628751B (en) Useless dependency item detection method and device
CN109857641B (en) Method and device for detecting defects of program source file
CN110688307B (en) JavaScript code detection method, device, equipment and storage medium
CN106371997B (en) Code checking method and device
CN103559447B (en) A kind of detection method, checkout gear and detection system based on Virus Sample feature
CN111367595B (en) Data processing method, program running method, device and processing equipment
CN104134039A (en) Virus checking and killing method, virus checking and killing client, virus checking and killing server and virus checking and killing system
CN112307478A (en) Script virus detection method, system, electronic equipment and storage medium
CN104134019A (en) Script virus detection method and device
CN111475196A (en) Compiling alarm tracing method and device, electronic equipment and computer readable medium
CN111488155A (en) Coloring language translation method
CN114048227A (en) SQL statement anomaly detection method, device, equipment and storage medium
CN112540925A (en) New characteristic compatibility detection system and method, electronic device and readable storage medium
CN107608875B (en) Localization processing method and device for static code
CN116775488A (en) Abnormal data determination method, device, equipment, medium and product
CN113821496B (en) Database migration method, system, device and computer readable storage medium
CN112069052A (en) Abnormal object detection method, device, equipment and storage medium
CN110806896B (en) Method for realizing internationalized information extraction in software development based on maven extension plug-in
CN112433943A (en) Method, device, equipment and medium for detecting environment variable based on abstract syntax tree
CN110245333B (en) Font type detection method and device, electronic equipment and storage medium
CN113760291A (en) Log output method and device
CN112486623A (en) Development method, system and electronic equipment for automatically supporting multiple languages based on interface
CN113408250B (en) Project file processing method and device
CN112035373B (en) Method, device, server and medium for testing basic test script
CN115981578A (en) Device, method and equipment for generating printing identification

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
CB02 Change of applicant information

Address after: 100088 Building 3 332, 102, 28 Xinjiekouwai Street, Xicheng District, Beijing

Applicant after: Qianxin Technology Group Co.,Ltd.

Address before: 100015 Jiuxianqiao Chaoyang District Beijing Road No. 10, building 15, floor 17, layer 1701-26, 3

Applicant before: Beijing Qi'anxin Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant