Multi-language translation method and system, mobile terminal and storage medium

By building a multilingual translation system, parsing translation requests and loading translation resources for instant translation, the challenges of multilingual translation systems in the existing technology in terms of translation quality and cultural differences are solved, and better internationalization capabilities and resource management are achieved. Adapt to diverse development environments.

CN118657158APending Publication Date: 2024-09-17CHANGSHA TIMES VALUE INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410764446.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing multilingual translation systems have challenges in terms of translation quality, cultural differences, and resource maintenance. They are difficult to effectively support users in multiple languages ​​and regions, and their application internationalization capabilities are insufficient.

Method used

Build a multi-language translation system that parses translation requests to obtain the text information and target language of the text to be translated, responds to the translation request, determines and loads the corresponding translation resources, and translates the text to be translated based on these resources, supports real-time translation, and integrates international Separate data from application logic for easier management and maintenance.

Benefits of technology

It enhances the internationalization capabilities of applications, improves translation quality and user experience, reduces the complexity of resource maintenance, supports multiple languages ​​and technology stacks, and adapts to diverse development environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657158A
    Figure CN118657158A
Patent Text Reader

Abstract

The invention discloses a multi-language translation method and system, a mobile terminal and a storage medium, and the method comprises the steps: constructing a multi-language translation system which is used for translating language information or text information of multiple languages in real time; analyzing the translation request, and obtaining text information and a target language of the to-be-translated text; in response to the translation request, determining translation resources corresponding to the target language; and translating the to-be-translated text into a target language based on the translation resource. According to the application, the internationalization ability of the application can be enhanced, and the method for logically separating the internationalization data from the application program is convenient to manage and maintain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of natural language processing, and in particular to a multilingual translation method, system, mobile terminal and storage medium. Background Art

[0002] In existing translation software development, multiple applications are often involved, all using different programming languages, technology stacks, and architectures. As the trend of globalization intensifies, software products need to support users in multiple languages ​​and regions and adapt in terms of interface, text, and other content.

[0003] Although multilingual systems can enhance the internationalization capabilities of applications, they still present some challenges and defects in terms of translation quality, cultural differences, and resource maintenance, which need to be paid attention to and addressed during the design and implementation process. Summary of the invention

[0004] In view of the above technical problems, the present invention provides a multi-language translation method, system, mobile terminal and storage medium.

[0005] A first embodiment of the present invention provides a multilingual translation method, the method comprising: constructing a multilingual translation system, the multilingual translation system being used to instantly translate language information or text information in multiple languages; parsing a translation request to obtain text information and a target language of a text to be translated; in response to the translation request, determining a translation resource corresponding to the target language; and translating the text to be translated into the target language based on the translation resource.

[0006] Optionally, the step of determining the translation resource corresponding to the target language in response to the translation request includes: selecting the translation resource corresponding to the target language from the translation resources in the multilingual translation system according to the target language.

[0007] Optionally, the step of selecting the translation resources corresponding to the target language from the translation resources in the multilingual translation system according to the target language includes: when the multilingual translation system is deployed to the client system in the form of a jar package, the multilingual translation system will automatically call the multilingual translation system server to load the corresponding translation resources when it is started, and store them in the memory for use by the client system.

[0008] Optionally, the step of selecting translation resources corresponding to the target language from translation resources in the multilingual translation system according to the target language includes: when the client system sends a request to the multilingual translation system through an http interface, the gateway is first responsible for parsing the request content, and the gateway obtains the translation resources corresponding to the target language from the background server of the multilingual translation system.

[0009] Optionally, the step of translating the text to be translated into a target language based on the translation resource includes: extracting text features of the translation resource, the text features including at least one of the words, grammatical components, grammatical structures and semantics of the translation resource; and translating the text to be translated based on the text features to obtain the target language.

[0010] Optionally, the method further includes: the multilingual translation system includes at least text, labels, and messages translated into a specific language.

[0011] A second embodiment of the present invention provides a multilingual translation system, the system comprising a client system and a server-side device, the client system and the server-side device are respectively connected to a network and communicate through the network, the server terminal device comprising: a multilingual translation system, the multilingual translation system is used to instantly translate language information or text information in multiple languages; an application gateway, the application gateway is connected to the multilingual translation system, is used to parse translation requests, obtain text information to be translated and a target language, and obtain translation resources of the corresponding target language in the multilingual resources from the multilingual translation system; a service provider, the service provider is connected to the application gateway, is used to convert the format of the translation resources, translate them into the target language and provide them to the client system.

[0012] Optionally, the multilingual translation system includes at least texts, labels, and messages translated into specific languages.

[0013] A third embodiment of the present invention provides a mobile terminal, which includes a memory, a processor, and a mobile terminal-based translation program stored in the memory and executable on the processor, wherein the mobile terminal-based translation program implements the steps of any of the multilingual translation methods described above when executed by the processor.

[0014] A fourth embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the steps of any of the above-mentioned multilingual translation methods.

[0015] In the technical solution provided by the embodiment of the present invention, a multilingual translation system is constructed, a translation request is parsed, text information of the text to be translated and the target language are obtained, and in response to the translation request, a translation resource corresponding to the target language is determined; based on the translation resource, the text to be translated is translated into the target language; compared with the prior art, the present invention can enhance the internationalization capability of an application and separate internationalization data from application program logic for ease of management and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1The figure is a flowchart of one embodiment of a multi-language translation method of the present invention.

[0017] Figure 2 The figure is a flow chart of another embodiment of a multi-language translation method of the present invention.

[0018] Figure 3 The figure is a schematic diagram of the structure of a multi-language translation system of the present invention. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0020] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0021] Please refer to Figure 1 As shown, the present invention provides a method for multilingual translation, the method comprising the following steps:

[0022] Step S10: construct a multi-language translation system, wherein the multi-language translation system is used to instantly translate language information or text information in multiple languages.

[0023] It should be noted that the translation languages ​​in the above multilingual translation system can be set by those skilled in the art based on actual conditions, and this embodiment does not specifically limit this. Optionally, the translation languages ​​in the multilingual translation system include but are not limited to Chinese, English, German, Japanese, Korean, French, Russian, Spanish, Portuguese and Arabic.

[0024] Step S20, parsing the translation request to obtain text information and the target language of the text to be translated.

[0025] The text to be translated may refer to a text that needs to be translated. In the embodiment of the present application, the implementation method of obtaining the text to be translated may not be specifically limited. For example, the text to be translated may be obtained by text scanning, or the text to be translated may be obtained by manual entry. Further, when the terminal device obtains the text to be translated, the user's translation request for the text to be translated may be obtained accordingly.

[0026] Step S30: In response to the translation request, determine a translation resource corresponding to the target language.

[0027] In one embodiment of the present invention, the step of determining the translation resource corresponding to the target language in response to the translation request includes:

[0028] A translation resource corresponding to the target language is selected from translation resources in a multilingual translation system according to the target language.

[0029] The translation request includes the target language of the text to be translated. For example, if the translation request includes translating Chinese text into English text, the English text is the target language. According to the target language type, the translation resource corresponding to the target language is selected from the translation resources of multiple different language types. In this way, the translation resource corresponding to the target language is determined from the translation resources of multiple different language types in combination with the target language type, which can meet the actual needs of users and effectively improve the translation effect and user experience.

[0030] Step S40: translating the text to be translated into a target language based on the translation resource.

[0031] In one embodiment of the present invention, please refer to Figure 2 As shown, the step S40 further includes:

[0032] Step S41, extracting text features of the translation resource, wherein the text features include at least one of the words, grammatical components, grammatical structures and semantics of the translation resource;

[0033] Step S42: translating the text to be translated based on the text features to obtain the target language.

[0034] In one embodiment of the present invention, step S30 specifically includes step one or step two.

[0035] Step 1: When the multi-language translation system is deployed to the client system in the form of a jar package, the multi-language translation system will automatically call the multi-language translation system server to load the corresponding translation resources when it is started, and store them in memory for use by the client system. This allows users to switch between different languages, and the multi-language system will load the corresponding translation resources accordingly.

[0036] Step 2: When the client system sends a request to the multilingual translation system through the http interface, the gateway is responsible for parsing the request content first, and then obtaining the translation resources of the corresponding target language from the multilingual translation system backend server. This process ensures that the system can obtain resources such as text, labels, messages, etc. containing specific language translations in order to convert the user interface content into the target language. After obtaining the translation resources, the gateway is responsible for converting the format of these resources and returning them to the external client system.

[0037] In one embodiment of the present invention, the multi-language translation system includes at least texts, labels, and messages translated into specific languages.

[0038] The present invention reduces the need to repeatedly develop and maintain the same functions in each application, and can support different applications and technology stacks, including various operating systems, mobile devices and Web browsers to adapt to diverse development environments. It separates internationalized data from application logic to facilitate management and maintenance.

[0039] The present invention also provides a multi-language translation system, please refer to Figure 3 As shown, the system includes a client system 100 and a server-side device 200, wherein the client system 100 and the server-side device 200 are respectively connected to a network and communicate through the network, wherein the server terminal device 200 includes a multi-language translation system 210, an application gateway 220 and a service provider 230, wherein the multi-language translation system 210 is used to instantly translate language information or text information in multiple languages; the application gateway 220 is connected to the multi-language translation system 210, and is used to parse the translation request, obtain the text information to be translated and the target language, and obtain the translation resource of the corresponding target language in the multi-language resources from the multi-language translation system 210; the service provider 230 is connected to the application gateway 220, and is used to convert the format of the translation resource, and translate it into the target language and provide it to the client system 100.

[0040] The present invention also provides a mobile terminal, which includes a memory, a processor, and a mobile terminal-based translation program stored in the memory and executable on the processor, wherein the mobile terminal-based translation program implements the steps of any of the multilingual translation methods described above when executed by the processor.

[0041] Mobile terminals may include various forms. For example, the terminals described in the present invention may include mobile terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.

[0042] The memory can be used to store software programs and various data. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0043] The processor is the control center of the mobile terminal. It uses various interfaces and lines to connect the various parts of the entire mobile terminal. It performs various functions of the mobile terminal and processes data by running or executing software programs and / or modules stored in the memory and calling data stored in the memory, thereby monitoring the mobile terminal as a whole.

[0044] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the steps of any of the multilingual translation methods described above.

[0045] It should be pointed out here that the description of the above storage medium embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment.

[0046] It should be understood that the "one embodiment" mentioned in the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the "one embodiment" appearing in various places throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0047] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0048] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A multilingual translation method, It is characterized in that The method comprises: Constructing a multi-language translation system, wherein the multi-language translation system is used to instantly translate language information or text information in multiple languages; Parse the translation request to obtain the text information and target language of the text to be translated; In response to the translation request, determining a translation resource corresponding to a target language; The text to be translated is translated into a target language based on the translation resource.

2. The multilingual translation method according to claim 1, It is characterized in that The step of determining the translation resource corresponding to the target language in response to the translation request comprises: A translation resource corresponding to the target language is selected from translation resources in a multilingual translation system according to the target language.

3. The multilingual translation method according to claim 2, It is characterized in that The step of selecting a translation resource corresponding to the target language from translation resources in a multilingual translation system according to the target language comprises: When the multilingual translation system is deployed to the client system in the form of a jar package, the multilingual translation system will automatically call the multilingual translation system server to load the corresponding translation resources when it is started, and store them in the memory for use by the client system.

4. The multilingual translation method according to claim 2, It is characterized in that The step of selecting a translation resource corresponding to the target language from translation resources in a multilingual translation system according to the target language comprises: When the client system sends a request to the multi-language translation system through the http interface, the gateway is first responsible for parsing the request content, and the gateway obtains the translation resources corresponding to the target language from the multi-language translation system backend server.

5. The multilingual translation method according to claim 1, It is characterized in that The step of translating the text to be translated into a target language based on the translation resource comprises: Extracting text features of the translation resource, wherein the text features include at least one of the words, grammatical components, grammatical structures and semantics of the translation resource; The text to be translated is translated based on the text features to obtain the target language.

6. The multilingual translation method according to claim 1, It is characterized in that The method further comprises: The multi-language translation system includes at least texts, labels, and messages translated into specific languages.

7. A multi-language translation system, It is characterized in that The system includes a client system and a server-side device, wherein the client system and the server-side device are respectively connected to a network and communicate through the network, and the server terminal device includes: A multi-language translation system, which is used to instantly translate language information or text information in multiple languages; An application gateway, which is connected to a multilingual translation system and is used to parse a translation request, obtain text information to be translated and a target language, and obtain translation resources of the corresponding target language from the multilingual resources from the multilingual translation system; The service provider is connected to the application gateway and is used to convert the format of the translation resources, translate them into the target language and provide them to the client system.

8. A multilingual translation system according to claim 7, It is characterized in that The multilingual translation system includes at least texts, labels, and messages translated into specific languages.

9. A mobile terminal, It is characterized in that The mobile terminal includes a memory, a processor, and a mobile terminal-based translation program stored in the memory and executable on the processor. When the mobile terminal-based translation program is executed by the processor, the steps of the multi-language translation method as described in any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the steps of the multi-language translation method according to any one of claims 1 to 6.