Multi-language page conversion method and unit for front-end internationalized multi-language file based on i18n technology

A page conversion and multi-language technology, applied in the communication field, can solve problems such as heavy workload, and achieve the effect of reducing the difficulty of code modification

Pending Publication Date: 2021-11-12
广州鲁邦通智能科技有限公司
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] Firstly, in the actual application environment, if we want to modify a certain field on the page, we must modify the bottom layer of the configuration file. For the operator, the workload is relatively large

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
  • Multi-language page conversion method and unit for front-end internationalized multi-language file based on i18n technology
  • Multi-language page conversion method and unit for front-end internationalized multi-language file based on i18n technology

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] Such as figure 1 , a multilingual page conversion method for front-end internationalized multilingual files based on i18n technology, the method is specifically:

[0037] Step 1: According to the user's language selection, obtain the target language configuration file and run it to generate a display page displayed in the target language; the target language configuration file includes multiple nodes corresponding to the text on the page and the corresponding nodes language content in the target language;

[0038] The target language profile is obtained through the following steps:

[0039] Step 10: read the source multilingual configuration file, the source multilingual configuration file includes multiple nodes corresponding to the text on the page, such as the number of the node and the reference language content corresponding to the node;

[0040] The source multilingual configuration file is generally the native language of the developer. For example, if it is Ch...

Embodiment 2

[0056] Such as figure 2 , a multilingual page conversion unit for front-end internationalized multilingual files based on i18n technology, including:

[0057] Target language configuration file module 1: used to obtain and run the target language configuration file according to the user's language selection, and generate a display page displayed according to the target language; the target language configuration file includes multiple texts corresponding to the text on the page. nodes and the target language language content corresponding to the nodes;

[0058] The target language configuration file module includes the following submodules:

[0059] Source multilingual configuration file running sub-module 11: used to read and run the source multilingual configuration file and generate a display page, the source multilingual configuration file includes multiple nodes corresponding to the text on the page and the base language corresponding to the node content;

[0060] Con...

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 belongs to the technical field of communication, and discloses a multi-language page conversion method of a front-end internationalized multi-language file based on an i18n technology, and the method specifically comprises the steps: 1, obtaining a target language configuration file, and operating the target language configuration file; 2, generating a display plug-in corresponding to the node selected by the user, and displaying the display plug-in on a display page in a popup window form; 3, enabling the user to modify the target language content in the pop-up window; and 4, repeating the steps 2-3, and storing the target language configuration file. A mode of displaying the plug-in is additionally adopted to form the pop-up window, data of the pop-up window comes from language content of the node, the configuration file is automatically updated, stored and displayed through modification of an operator on the pop-up window, the operator can visually see whether page modification conforms to expectation or not, meanwhile, the code modification difficulty is reduced, and meanwhile, the invention further discloses a unit based on the method.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a multilingual page conversion method and unit for front-end internationalized multilingual files based on i18n technology. Background technique [0002] In the current web development process, due to the needs of international business, often a website needs a set of codes to support multi-language display, and users can switch the language displayed on the page through the switch button. The i18n framework is usually used to realize the internationalization of the front end. The i18n framework is short for "internationalization". For the program, the corresponding interface can be displayed according to different languages ​​and regions without modifying the internal code. [0003] "https: / / www.jianshu.com / p / ea93efef5155" describes an example of i18n implementing front-end internationalization [0004] This is the most accurate and commonly used framework for translat...

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): G06F9/451
CPCG06F9/454
Inventor 谈宇刚曹连峰陶洋
Owner 广州鲁邦通智能科技有限公司
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