CN107608875A - A kind of localization process method and device of static code - Google Patents
A kind of localization process method and device of static code Download PDFInfo
- Publication number
- CN107608875A CN107608875A CN201710656636.5A CN201710656636A CN107608875A CN 107608875 A CN107608875 A CN 107608875A CN 201710656636 A CN201710656636 A CN 201710656636A CN 107608875 A CN107608875 A CN 107608875A
- Authority
- CN
- China
- Prior art keywords
- target
- code
- entry
- static code
- translated
- 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
- 230000003068 static effect Effects 0.000 title claims abstract description 109
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000004807 localization Effects 0.000 title claims abstract description 25
- 238000012545 processing Methods 0.000 claims abstract description 33
- 238000011161 development Methods 0.000 claims description 22
- 238000013519 translation Methods 0.000 claims description 16
- 238000001914 filtration Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 5
- 238000012217 deletion Methods 0.000 claims description 3
- 230000037430 deletion Effects 0.000 claims description 3
- 238000003672 processing method Methods 0.000 claims description 2
- 238000012986 modification Methods 0.000 abstract description 2
- 230000004048 modification Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 4
- 238000007689 inspection Methods 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000002860 competitive effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000005206 flow analysis Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012805 post-processing Methods 0.000 description 1
- 238000013522 software testing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses a kind of localization process method and device of static code, method includes:The comment statement in static code is obtained according to preset rules, comment statement is deleted and obtains static code after the first processing;Static code after first processing is progressively scanned, if judging to know, within a preset range, target line is preserved into output file for ASCII numerical value corresponding to the code in target line;Rule is developed according to static code, obtains object code in static code after the first processing, and object code is preserved into output file.The object code for developing Rule by ASCII numerical value target line within a preset range after comment statement and according to static code by deleting is preserved into output file, do not limited by code speech, without artificial modification source code, tester can directly be localized processing according to the code in output file, it can in time find Lou to translate phenomenon, and greatly reduce the workload of tester.
Description
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 with translation 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 with translation 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.
The first post-processing static code is
S202, 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 to be in a preset range, storing the target line into 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 with translation 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 with translation 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 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 (14)
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;
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.
2. The method of claim 1, wherein the static code development rules are pre-configured in a configuration file.
3. 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.
4. The method according to claim 1, wherein the obtaining of the comment statement in the static code according to the preset rule and the 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;
and obtaining the comment statements in the resource files according to the preset rule to obtain a first processed static code.
5. The method of claim 4, further comprising:
obtaining the entry identifiers to be translated in the first processed static codes, and filtering the entry identifiers with translation 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.
6. The method of claim 5, 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.
7. 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;
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.
8. The apparatus of claim 7, wherein the static code development rules are pre-configured in a configuration file.
9. The apparatus of claim 7, 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.
10. The apparatus according to claim 7, wherein 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.
11. The apparatus of claim 10, 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 with translation 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.
12. The apparatus of claim 11, 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.
13. 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 6.
14. 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 6.
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 true CN107608875A (en) | 2018-01-19 |
CN107608875B 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 (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1506875A (en) * | 2002-12-12 | 2004-06-23 | 华为技术有限公司 | Characteristic character string extracting and substituting method in language localization |
CN1547116A (en) * | 2003-12-16 | 2004-11-17 | 艾默生网络能源有限公司 | Method for implementing language resource localization of software |
CN101145102A (en) * | 2006-09-11 | 2008-03-19 | 国际商业机器公司 | Method and device for testing internationalized software |
US20160048441A1 (en) * | 2014-08-12 | 2016-02-18 | Red Hat, Inc. | Localized representation of stack traces |
CN106227668A (en) * | 2016-07-29 | 2016-12-14 | 腾讯科技(深圳)有限公司 | Data processing method and device |
CN106844192A (en) * | 2016-11-10 | 2017-06-13 | 乐视控股(北京)有限公司 | A kind of detection method of program's source code, device and electronic equipment |
-
2017
- 2017-08-03 CN CN201710656636.5A patent/CN107608875B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1506875A (en) * | 2002-12-12 | 2004-06-23 | 华为技术有限公司 | Characteristic character string extracting and substituting method in language localization |
CN1547116A (en) * | 2003-12-16 | 2004-11-17 | 艾默生网络能源有限公司 | Method for implementing language resource localization of software |
CN101145102A (en) * | 2006-09-11 | 2008-03-19 | 国际商业机器公司 | Method and device for testing internationalized software |
US20160048441A1 (en) * | 2014-08-12 | 2016-02-18 | Red Hat, Inc. | Localized representation of stack traces |
CN106227668A (en) * | 2016-07-29 | 2016-12-14 | 腾讯科技(深圳)有限公司 | Data processing method and device |
CN106844192A (en) * | 2016-11-10 | 2017-06-13 | 乐视控股(北京)有限公司 | A kind of detection method of program's source code, device and electronic equipment |
Non-Patent Citations (1)
Title |
---|
藏锋者等: "《SEO实战指导 知识、策略、案例》", 31 March 2013 * |
Also Published As
Publication number | Publication date |
---|---|
CN107608875B (en) | 2020-11-06 |
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 | |
CN106371997B (en) | Code checking method and device | |
CN112131120B (en) | Source code defect detection method and device | |
CN113821496B (en) | Database migration method, system, device and computer readable storage medium | |
CN109725896A (en) | A kind of method and electronic equipment of online editing python code | |
CN103559447A (en) | Detection method, detection device and detection system based on virus sample characteristics | |
CN112307478A (en) | Script virus detection method, system, electronic equipment and storage medium | |
CN104134019A (en) | Script virus detection method and device | |
CN110347416B (en) | Script updating method and device | |
CN116305131B (en) | Static confusion removing method and system for script | |
CN114048227A (en) | SQL statement anomaly detection method, device, equipment and storage medium | |
CN111443979B (en) | Document processing method, device, computer equipment and storage medium | |
CN109446077A (en) | A kind of data library test method and device | |
CN112540925A (en) | New characteristic compatibility detection system and method, electronic device and readable storage medium | |
CN113778852A (en) | Code analysis method based on regular expression | |
CN107608875B (en) | Localization processing method and device for static code | |
CN116150527A (en) | Component style isolation method, device, equipment, storage medium and product | |
CN112035373B (en) | Method, device, server and medium for testing basic test script | |
CN111796832B (en) | Hot patch file generation method, device, equipment and storage medium | |
CN110806896B (en) | Method for realizing internationalized information extraction in software development based on maven extension plug-in | |
CN110245333B (en) | Font type detection method and device, electronic equipment and storage medium | |
CN112433943A (en) | Method, device, equipment and medium for detecting environment variable based on abstract syntax tree | |
CN112486623A (en) | Development method, system and electronic equipment for automatically supporting multiple languages based on interface | |
CN113760291A (en) | Log output 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 | ||
CB02 | Change of applicant information |
Address after: 100088 Building 3 332, 102, 28 Xinjiekouwai Street, Xicheng District, Beijing Applicant after: QAX Technology Group Inc. Address before: 100015 Jiuxianqiao Chaoyang District Beijing Road No. 10, building 15, floor 17, layer 1701-26, 3 Applicant before: BEIJING QIANXIN TECHNOLOGY Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |