Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and batch processing device for realizing multi-language version by replacing character strings in batches

A multi-language and string technology, applied in the field of web page development, can solve the problems of complex functions and operations, large development workload, inconvenience, etc., and achieve the effect of saving manpower, strong practicability, and improving work efficiency

Active Publication Date: 2015-10-21
SHENZHEN GONGJIN ELECTRONICS CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For products with complex business processes, such as modem, the functions and operations are relatively complex, and there are many corresponding WEB operation pages, often hundreds of pages, and each page has hundreds of strings; and this type The demand for products in foreign countries is quite strong, so the demand for multi-language is also very common. However, if you develop a language every time, you need to manually find out the strings on the WEB page and replace them with the corresponding languages. The workload is huge and error-prone; on the other hand, it is very inconvenient to translate the source files; therefore, a new technology must be developed to improve efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and batch processing device for realizing multi-language version by replacing character strings in batches

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0023] In this embodiment, the method for batch replacing WEB page character strings to realize multi-language versions includes the following steps:

[0024] 101. Perform the following processing on each html page and corresponding JS file in turn:

[0025] For the current html page, use tags to separate each string on the html page, and add a string id attribute to each tag;

[0026] Generate a JS file for loading the current html page (that is, the source JS file). In this JS file, the string corresponding to the string id is defined according to a certain format. At this time, the st...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method of replacing characters in batch to achieve a multi-language version and a batch processing device of the method of replacing characters in batch to achieve the multi-language version. The method of replacing characters in batch to achieve the multi-language version comprises steps as below: (1) separating character strings of each hypertext mark language (HTML) in the way of combing labels with identifications (id) of the character strings, and taking a corresponding javascript (JS) file as a source JS file after identifying raw character strings corresponding with the id of the character strings. (2) All ids and corresponding character strings of each JS file are obtained and are stored in an excel file. (3) Character strings of the excel file is translated into an target language, and a novel excel file is obtained. (4) Character strings of the excel file is written back to the corresponding source JS file, and an objective JS file is obtained. (5) The source JS file is replaced by the target JS file. The method of replacing characters in batch to achieve the multi-language version and the batch processing device of the method of replacing characters in batch to achieve the multi-language version achieves the development of a multi-language version through replacing character strings of the corresponding JS file loaded by the html page, and has the advantages of being accurate, high-efficient, low in cost, and strong in practicality and the like.

Description

technical field [0001] The invention relates to the technical field of web page development, in particular to a method and a batch processing device for batch replacing WEB web page character strings to realize multi-language versions. Background technique [0002] With the development of society and fierce competition, based on the user first, more and more manufacturers provide products and related operations and services can be realized by accessing WEB pages, and users can access them without installing a client. And control, simple and convenient. The development of business is accompanied by the expansion of business area and the increase of customers; the demand for WEB page operation also increases, and the demand for multi-language is also on the agenda. For products with complex business processes, such as modem, the functions and operations are relatively complex, and there are many corresponding WEB operation pages, often hundreds of pages, and each page has hun...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30G06F9/44
Inventor 罗宝林
Owner SHENZHEN GONGJIN ELECTRONICS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products