CN111930888A - Multi-language support method based on collaborative idea, server system and storage medium - Google Patents

Multi-language support method based on collaborative idea, server system and storage medium Download PDF

Info

Publication number
CN111930888A
CN111930888A CN202010689441.2A CN202010689441A CN111930888A CN 111930888 A CN111930888 A CN 111930888A CN 202010689441 A CN202010689441 A CN 202010689441A CN 111930888 A CN111930888 A CN 111930888A
Authority
CN
China
Prior art keywords
language
data
translation
client
multilingual
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.)
Pending
Application number
CN202010689441.2A
Other languages
Chinese (zh)
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.)
Shanghai Weaver Network Technology Co ltd
Original Assignee
Shanghai Weaver Network Technology 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 Shanghai Weaver Network Technology Co ltd filed Critical Shanghai Weaver Network Technology Co ltd
Priority to CN202010689441.2A priority Critical patent/CN111930888A/en
Publication of CN111930888A publication Critical patent/CN111930888A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/3332Query translation
    • G06F16/3337Translation of the query language, e.g. Chinese to English
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Machine Translation (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a multi-language support method based on a collaborative idea, which comprises the following steps: opening a browser access data maintenance page; clicking a text input position of a data maintenance page, popping up a translation assembly, and filling translation data in a corresponding language column in the translation assembly; the translation component automatically splices the data in the corresponding language bars into multi-language format data, and submits the spliced multi-language format data as parameter values to the server. The multi-language support method based on the collaborative idea provided by the invention has the following technical effects: providing a multi-language rapid deployment solution for non-intrusive implementations; when a language is newly added, a corresponding language table and a language file do not need to be newly added, and the problem of poor expandability in maintenance is solved; the problem of multi-language field data, content keyword retrieval and data association cooperation support is solved; and multi-language maintenance of user-defined content is supported.

Description

Multi-language support method based on collaborative idea, server system and storage medium
Technical Field
The invention belongs to the technical field of computer systems, and particularly relates to a multi-language support method and system based on a collaborative idea and a storage medium.
Background
For the text elements fixedly used in the program, including but not limited to menus, navigation, basic configuration information of users, etc., it is necessary to select texts in different languages to serve them according to the region and country of the visitor, which is called multilingual.
Most of the current multi-language implementations are based on the following two approaches:
1. and (4) maintaining static data, namely maintaining a default menu and prompt in a site in a language file mode. All page files in the site are uniformly expressed by language variables at the place where fixed language characters need to be output, and the language variables can be endowed with different values according to different languages selected by a user, so that different characters can be output under different language environments. Translations of language variables are often maintained in language files under a particular directory.
2. Dynamic data maintenance and independent table building and storage of different languages. And multiple languages are supported at the table level, and independent tables are respectively established for each language aiming at the same service data. Users in different languages operate different tables, but they are in the same database. When the data is searched, the corresponding table data is searched according to the language of the current user.
The above method has the following problems:
1. for a mature application system, the prior art scheme relates to a large amount of table structure adjustment, query and update service code adjustment, and has the disadvantages of complex implementation, long period and high cost.
2. Every addition of a language also involves the addition of a language table and a language file besides necessary translation, and the expandability is poor.
3. The translation data of the fields are dispersed in different language files or tables, so that the retrieval and data association coordination according to the content are not favorably supported.
4. Generally, information such as default menus, titles or prompts and the like of programs is aimed at, and multi-language maintenance of user-defined contents is not supported.
Disclosure of Invention
To solve the above problems, there is a need to provide a multi-language support method based on a collaborative idea with a non-intrusive implementation.
The invention provides a multi-language support method based on a collaborative idea, which comprises the following steps:
opening a browser access data maintenance page;
clicking a text input position of a data maintenance page, popping up a translation assembly, and filling translation data in a corresponding language column in the translation assembly;
the translation component automatically splices the data in the corresponding language bars into multi-language format data, and submits the spliced multi-language format data as parameter values to a server;
when the client is used, the client requests a server data query interface to query corresponding table field data; and the server extracts and analyzes the spliced multilingual format data according to the language used by the client through the regular matching in the language filter, and sends the language page data used by the client to the client for display.
Further, the multi-language format data is: (prefix + language identification ID + translation) + (connector + language identification ID + translation) [1, n ] + (suffix).
Further, when the client inquires data and displays the page, the client requests the returned data, the data is subjected to regular matching analysis by the multi-language interceptor, and if the content to be analyzed contains multi-language format data, the corresponding translation content data is returned according to the language identification ID of the user of the current client.
The multi-language support method based on the collaborative idea provided by the invention has the following technical effects: providing a multi-language rapid deployment solution for non-intrusive implementations; when a language is newly added, a corresponding language table and a language file do not need to be newly added, and the problem of poor expandability in maintenance is solved; the problem of multi-language field data, content keyword retrieval and data association cooperation support is solved; and multi-language maintenance of user-defined content is supported.
The invention also provides a multi-language support server system based on the collaborative idea, which comprises a storage unit, a multi-language interceptor unit and a data interface unit;
the storage unit is used for storing multi-language format data which are formed by splicing translation components and sent by a client;
the data interface unit is used for receiving the language selected by the client login and returning page data of the user login language supported by the system;
the multilingual interceptor unit user obtains the user ID according to the information sent by the client and obtained by the data interface unit, extracts and analyzes the multilingual format data in the storage unit according to the obtained user ID, and sends the language page data used by the client to the client for display.
Further, the multi-language format data stored in the storage unit is: (prefix + language identification ID + translation) + (connector + language identification ID + translation) [1, n ] + (suffix).
The present invention also provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the collaborative idea based multilingual support method according to any one of the above.
Drawings
FIG. 1 is a timing diagram of the operation of a translation component;
FIG. 2 is a timing diagram of the operation of a multi-language filter.
Disclosure of Invention
The invention is described in detail below with reference to specific embodiments and the attached drawing figures:
the invention provides a multi-language support method based on a collaborative idea, which comprises the following steps:
opening a browser access data maintenance page;
clicking a text input position of a data maintenance page, popping up a translation assembly, and filling translation data in a corresponding language column in the translation assembly;
the translation component automatically splices the data in the corresponding language bars into multi-language format data, and submits the spliced multi-language format data as parameter values to a server;
when the client is used, the client requests a server data query interface to query corresponding table field data; and the server extracts and analyzes the spliced multilingual format data according to the language used by the client through the regular matching in the language filter, and sends the language page data used by the client to the client for display.
Further, the multi-language format data is: (prefix + language identification ID + translation) + (connector + language identification ID + translation) [1, n ] + (suffix).
Further, when the client inquires data and displays the page, the client requests the returned data, the data is subjected to regular matching analysis by the multi-language interceptor, and if the content to be analyzed contains multi-language format data, the corresponding translation content data is returned according to the language identification ID of the user of the current client.
In specific implementation, as shown in fig. 1 and 2: and uniformly binding click events in the text input position of the page. After a user triggers a click event on a client browser, the browser pops up a translation component with a uniform style, the user corresponds to a language field in the translation component and fills in translation data, and translation data of different languages or contents to be translated are automatically translated can be filled in the translation component;
the translation component automatically splices and assembles the data of the corresponding language bar into multi-language format data which is used as a parameter value and submitted to a background server, and the parameter value is stored in a corresponding table field according to a set service logic;
when a client page is displayed, a user firstly requests a server data query interface to query the field data of the corresponding table. When the server interface data is returned through response, the server interface data is subjected to regular matching in the unified multilingual filter. The multi-language filter extracts and analyzes the multi-language format data, analyzes the data according to the language of the current access user to obtain the data of the corresponding language, and finally displays the data to the user.
The method is implemented in a way that translation data of a language field is automatically spliced after multi-language translation is maintained by a translation component at a page input position, and specific multi-language format data is generated as follows:
(prefix + language identification ID + translation) + (connector + language identification ID + translation) [1, n ] + (suffix);
the multi-language format data is persistently stored in the corresponding field in the original table without additionally expanding other tables or fields;
the user inquires data, when the page is displayed, the returned data is requested to be matched and analyzed by the multilingual interceptor, if the content contains multilingual format data, the corresponding translation content data is returned according to the language identification ID of the current user;
during content retrieval and data association query, translation contents are still stored in the original table fields, so that fuzzy query, retrieval according to keywords, association query and the like are easily matched;
under the design model, the user-defined content supports multi-language maintenance through a page uniform translation component, multi-language format data storage and multi-language filter analysis and display mode.
The multi-language support method based on the collaborative idea provided by the invention has the following technical effects: providing a multi-language rapid deployment solution for non-intrusive implementations; when a language is newly added, a corresponding language table and a language file do not need to be newly added, and the problem of poor expandability in maintenance is solved; the problem of multi-language field data, content keyword retrieval and data association cooperation support is solved; and multi-language maintenance of user-defined content is supported.
The invention also provides a multi-language support server system based on the collaborative idea, which comprises a storage unit, a multi-language interceptor unit and a data interface unit;
the storage unit is used for storing multi-language format data which are formed by splicing translation components and sent by a client;
the data interface unit is used for receiving the language selected by the client login and returning page data of the user login language supported by the system;
the multilingual interceptor unit user obtains the user ID according to the information sent by the client and obtained by the data interface unit, extracts and analyzes the multilingual format data in the storage unit according to the obtained user ID, and sends the language page data used by the client to the client for display.
Further, the multi-language format data stored in the storage unit is: (prefix + language identification ID + translation) + (connector + language identification ID + translation) [1, n ] + (suffix).
The present invention also provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the collaborative idea based multilingual support method according to any one of the above.

Claims (6)

1. A multi-language support method based on a collaborative idea is characterized by comprising the following steps:
opening a browser access data maintenance page;
clicking a text input position of a data maintenance page, popping up a translation assembly, and filling translation data in a corresponding language column in the translation assembly;
the translation component automatically splices the data in the corresponding language bars into multi-language format data, and submits the spliced multi-language format data as parameter values to a server;
when the client is used, the client requests a server data query interface to query corresponding table field data; and the server extracts and analyzes the spliced multilingual format data according to the language used by the client through the regular matching in the language filter, and sends the language page data used by the client to the client for display.
2. The multiple language support method based on collaborative idea according to claim 1, wherein: the multi-language format data is: (prefix + language identification ID + translation) + (connector + language identification ID + translation) [1, n ] + (suffix).
3. The multiple language support method based on collaborative idea according to claim 1, wherein: the client inquires data and requests the returned data when the data is displayed on a page, the returned data is matched and analyzed by the multilingual interceptor regularly, and if the content to be analyzed contains multilingual format data, the corresponding translation content data is returned according to the language identification ID of the user of the current client.
4. A multi-language support server system based on a collaborative idea, characterized in that: the system comprises a storage unit, a multilingual interceptor unit and a data interface unit;
the storage unit is used for storing multi-language format data which are formed by splicing translation components and sent by a client;
the data interface unit is used for receiving the language selected by the client login and returning page data of the user login language supported by the system;
the multilingual interceptor unit user obtains the user ID according to the information sent by the client and obtained by the data interface unit, extracts and analyzes the multilingual format data in the storage unit according to the obtained user ID, and sends the language page data used by the client to the client for display.
5. The collaborative idea-based multilingual support server system according to claim 4, wherein: the multi-language format data stored in the storage unit is as follows: (prefix + language identification ID + translation) + (connector + language identification ID + translation) [1, n ] + (suffix).
6. A storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the multiple language support method based on collaborative idea according to any one of claims 1 to 3.
CN202010689441.2A 2020-07-17 2020-07-17 Multi-language support method based on collaborative idea, server system and storage medium Pending CN111930888A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010689441.2A CN111930888A (en) 2020-07-17 2020-07-17 Multi-language support method based on collaborative idea, server system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010689441.2A CN111930888A (en) 2020-07-17 2020-07-17 Multi-language support method based on collaborative idea, server system and storage medium

Publications (1)

Publication Number Publication Date
CN111930888A true CN111930888A (en) 2020-11-13

Family

ID=73313213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010689441.2A Pending CN111930888A (en) 2020-07-17 2020-07-17 Multi-language support method based on collaborative idea, server system and storage medium

Country Status (1)

Country Link
CN (1) CN111930888A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114168590A (en) * 2021-11-08 2022-03-11 北京快乐茄信息技术有限公司 Data processing method, data processing apparatus, server, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289376A (en) * 2011-09-16 2011-12-21 烽火通信科技股份有限公司 Embedded multi-language WEB page realization method and system
CN103793395A (en) * 2012-10-30 2014-05-14 上海勇金懿信息科技有限公司 Mass multi-language resource rapidly searching and reusing method
CN110263351A (en) * 2019-06-17 2019-09-20 深圳前海微众银行股份有限公司 A kind of multi-language translation method of webpage, device and equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289376A (en) * 2011-09-16 2011-12-21 烽火通信科技股份有限公司 Embedded multi-language WEB page realization method and system
CN103793395A (en) * 2012-10-30 2014-05-14 上海勇金懿信息科技有限公司 Mass multi-language resource rapidly searching and reusing method
CN110263351A (en) * 2019-06-17 2019-09-20 深圳前海微众银行股份有限公司 A kind of multi-language translation method of webpage, device and equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114168590A (en) * 2021-11-08 2022-03-11 北京快乐茄信息技术有限公司 Data processing method, data processing apparatus, server, and storage medium

Similar Documents

Publication Publication Date Title
US6405216B1 (en) Internet-based application program interface (API) documentation interface
US9646100B2 (en) Methods and systems for providing content provider-specified URL keyword navigation
US6433794B1 (en) Method and apparatus for selecting a java virtual machine for use with a browser
US8010530B2 (en) Presentation of multilingual metadata
EP1072984A2 (en) Method and system for providing native language query service
US7756849B2 (en) Method of searching for text in browser frames
US20120173565A1 (en) Systems and Methods for Creating and Using Keyword Navigation on the Internet
US20020026441A1 (en) System and method for integrating multiple applications
US20020194300A1 (en) Method and apparatus for integrated, user-directed web site text translation
US9311303B2 (en) Interpreted language translation system and method
WO2001035215A2 (en) Content delivery in a preferred language for a large number of languages
US20050198567A1 (en) Web navigation method and system
CN111259303A (en) System and method for automatically generating front-end page of WEB information system
US8595208B2 (en) Hover translation of search result captions
US10235363B2 (en) Instant translation of user interfaces of a web application
US20080114745A1 (en) Simplified search interface for querying a relational database
WO2007063549A2 (en) Method and apparatus for a personalized web page
JP2000090001A (en) Method and system for conversion of electronic data using conversion setting
US20100037145A1 (en) Method and system for a personalized web page
US7275086B1 (en) System and method for embedding a context-sensitive web portal in a computer application
US20030226104A1 (en) System and method for navigating search results
CN107480262A (en) A kind of general management system of database based on webpage
US20040139200A1 (en) Systems and methods of generating a content aware interface
US20030225891A1 (en) Providing stateful favorites
CN111930888A (en) Multi-language support method based on collaborative idea, server system and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201113