Method of replacing characters in batch to achieve multi-language version and batch processing device

A multi-language and character string technology, applied in the field of web page development, can solve problems such as complex functions and operations, heavy development workload, and error-prone, and achieve the effects of saving manpower, strong practicability, and improving work efficiency

Active Publication Date: 2013-03-20
SHENZHEN GONGJIN ELECTRONICS CO LTD
View PDF3 Cites 12 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 of replacing characters in batch to achieve multi-language version and batch processing device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

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

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

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

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

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 webpage character strings to realize multi-language versions. Background technique [0002] With the development of society and the fierce competition, based on the user first as the starting point, nowadays, more and more products and related operations and services provided by manufacturers can be realized by visiting the WEB page, and users can access it 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 modems, the functions and operations are relatively complex, and there are many corresponding WEB operation pages, often ...

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 Applications(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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products