Method and device for multi-language translation, processor and multi-language translation unit
AIGC translation components and interfaces are used to process user-defined text translation in multi-language systems, solving the problem of cumbersome translation operations in existing systems and improving user experience.
Patent Information
- Application Number
- CN202410862655.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-29
AI Technical Summary
Existing multi-language systems have problems with cumbersome operations and poor user experience when translating text content customized by users, and cannot effectively handle text content with high randomness.
Using the AIGC translation component and AIGC multi-language translation interface, by obtaining the text to be translated and the target language, calling the multi-language translation interface for translation, and displaying the translation results after obtaining the translation status information, simplifying the user translation process.
It improves the user experience of multi-language systems, simplifies the translation process for users to translate texts, and enhances the operational convenience of the system.
Smart Images

Figure CN118862902A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of multi-language translation, and in particular to a method, device, processor and multi-language translation unit for multi-language translation. Background Art
[0002] In a multilingual system, for text with relatively fixed content, it can be quantified and translated into entry data of each language. When the user selects a language, the multilingual system will obtain the entry data of the selected language for display, so that the multilingual system can meet the user's needs for converting the language of the text content. However, for text content that is customized by the user, due to the high randomness of the text content, it is impossible to quantify and translate it into specific entries in multiple languages, resulting in obstacles to information transmission in the multilingual system. If a third-party translation tool is used to translate the text content, the operation is relatively cumbersome, which can easily lead to a poor user experience in the multilingual system. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a method, device, processor and multilingual translation unit for multilingual translation, so as to solve the problem of poor user experience of existing multilingual systems.
[0004] In order to achieve the above-mentioned purpose, the first aspect of the embodiment of the present application provides a method for multilingual translation, which is applied to a multilingual translation unit, wherein the multilingual translation unit includes an AIGC translation component at the front end and an AIGC multilingual translation interface at the back end, and the method includes:
[0005] Obtain the text to be translated and the target translation language through the AIGC translation component;
[0006] In response to a translation start instruction input by a user, the AIGC multilingual translation interface is called to translate the text to be translated based on the target translation language through the AIGC multilingual translation interface;
[0007] Determine whether the translation status information returned by the AIGC multilingual translation interface is obtained;
[0008] When the translation status information returned by the AIGC multi-language translation interface is obtained, the text translation result is obtained from the AIGC multi-language translation interface;
[0009] The text translation results are displayed through the AIGC translation component.
[0010] In an embodiment of the present application, the multilingual translation unit also includes an input box scene component and an inline element scene component, and obtains the text to be translated and the target translation language through the AIGC translation component, including: when a translation component opening instruction input by the user is obtained, obtaining the text to be translated from the input box scene component or the inline element scene component through the AIGC translation component; and obtaining the preset translation language of the multilingual translation unit through the AIGC translation component to determine the preset translation language as the target translation language.
[0011] In an embodiment of the present application, the method further includes: in the case of obtaining a translation language change instruction input by a user, determining a target translation language according to the translation language change instruction; and / or in the case of obtaining a text editing instruction input by a user, updating the text to be translated according to the text editing instruction.
[0012] In an embodiment of the present application, the multilingual translation unit also includes a database, and the method also includes: when a translation start instruction is obtained, obtaining user information of the user and the sending time of the translation start instruction; storing the user information, sending time, text to be translated, target translation language and translation status information in the database.
[0013] In an embodiment of the present application, the method further includes: in the case where the translation status information returned by the AIGC multilingual translation interface is not obtained, sending a status information acquisition request to the database according to the primary key identifier corresponding to the text to be translated at preset time intervals within a preset time period until the translation status information returned by the AIGC multilingual translation interface is obtained from the database, or a translation component closing instruction input by the user is obtained.
[0014] In an embodiment of the present application, the text translation result is any one of the target language text and the translation error log, and displaying the text translation result through the AIGC translation component includes: when the translation status information displays a successful translation status, displaying the target language text through the AIGC translation component; when the translation status information displays a failed translation status, displaying the translation error log through the AIGC translation component.
[0015] In an embodiment of the present application, the multilingual translation unit also includes a translation feedback interface at the back end, and the multilingual translation unit communicates with the AIGC application service through the translation feedback interface. When the translation status information is displayed as a successful translation status, the method also includes: when user feedback information input by the user is obtained, calling the translation feedback interface so that the AIGC application service is updated according to the user feedback information.
[0016] A second aspect of an embodiment of the present application provides a processor configured to execute the above-mentioned method for multi-language translation.
[0017] According to a third aspect of an embodiment of the present application, there is provided an apparatus for multilingual translation, comprising: a data acquisition module, configured to acquire a text to be translated and a target translation language through an AIGC translation component; a translation module, configured to call an AIGC multilingual translation interface in response to a translation start instruction input by a user, so as to translate the text to be translated based on the target translation language through the AIGC multilingual translation interface; a judgment module, configured to judge whether translation status information returned by the AIGC multilingual translation interface is obtained; a translation result acquisition module, configured to acquire a text translation result from the AIGC multilingual translation interface when the translation status information returned by the AIGC multilingual translation interface is obtained; and a translation result display module, configured to display the text translation result through the AIGC translation component.
[0018] A fourth aspect of an embodiment of the present application provides a multilingual translation unit, including: an AIGC translation component; an AIGC multilingual translation interface; a processor or a device for multilingual translation.
[0019] The above technical solution obtains the text to be translated and the target translation language through the AIGC translation component, and when receiving the translation start instruction input by the user, calls the AIGC multilingual translation interface to translate the text to be translated based on the target translation language through the AIGC multilingual translation interface. Then, it is determined whether the translation status information returned by the AIGC multilingual translation interface is obtained, and when the translation status information returned by the AIGC multilingual translation interface is obtained, the text translation result is obtained from the AIGC multilingual translation interface, and finally the text translation result is displayed through the AIGC translation component. The present application obtains the text to be translated and the target translation language of the multilingual system through the AIGC translation component at the front end, and translates the text to be translated through the AIGC multilingual translation interface at the back end, which can simplify the process of users translating the text to be translated in the multilingual system and improve the user experience of the multilingual system.
[0020] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:
[0022] Figure 1 A schematic diagram of a process for multi-language translation according to an embodiment of the present application is shown;
[0023] Figure 2A schematic diagram of a process flow of a method for multi-language translation according to a specific embodiment of the present application is shown;
[0024] Figure 3 The schematic diagram shows a structure of a device for multi-language translation according to an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0026] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0027] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0028] Figure 1 The flowchart of a method for multilingual translation according to an embodiment of the present application is schematically shown. Figure 1 As shown, the embodiment of the present application provides a method for multilingual translation, which is applied to a multilingual translation unit. The multilingual translation unit includes a front-end AIGC translation component and a back-end AIGC multilingual translation interface. The method is applied to a processor in the multilingual translation unit as an example for explanation. The method may include the following steps:
[0029] Step S101: obtaining the text to be translated and the target translation language through the AIGC translation component.
[0030] Step S102: In response to a translation start instruction input by a user, the AIGC multi-language translation interface is called to translate the text to be translated based on the target translation language through the AIGC multi-language translation interface.
[0031] Step S103: Determine whether the translation status information returned by the AIGC multi-language translation interface is obtained.
[0032] Step S104: when the translation status information returned by the AIGC multi-language translation interface is obtained, the text translation result is obtained from the AIGC multi-language translation interface.
[0033] Step S105: Display the text translation result through the AIGC translation component.
[0034] In view of the problem that the text translation process in the multilingual system is relatively complicated, resulting in a poor user experience, the embodiment of the present application can simplify the process of translating the text to be translated by the user by accessing the multilingual translation unit in the multilingual system. It can be understood that the text to be translated is the text content that the multilingual translation unit needs to translate, and the target translation language is the language required to be used after the text to be translated is successfully translated. The AIGC multilingual translation interface is a communication interface between the multilingual system and the AIGC application service. The multilingual translation unit may include an artificial intelligence generated content (AI-Generated Content, AIGC) translation component at the front end and an AIGC multilingual translation interface at the back end. Through the AIGC translation component at the front end, the processor can obtain the text to be translated and the target translation language. After receiving the translation start instruction input by the user, the processor can call the AIGC multilingual translation interface at the back end to send the text to be translated and the target translation language to the AIGC application service through the AIGC multilingual translation interface, so that the AIGC application service translates the text to be translated according to the target translation language. When calling the AIGC multilingual translation interface, it can be called in an asynchronous manner.
[0035] During the translation process, the AIGC multilingual translation interface can feedback translation status information. The processor can determine whether to obtain the translation status information returned by the AIGC multilingual translation interface. When the translation status information (translation success status or translation failure status) returned by the AIGC multilingual translation interface is obtained, it is determined that the translation is completed at this time, and the processor can obtain the text translation result from the AIGC multilingual translation interface, and display the text translation result through the AIGC translation component. In addition, the AIGC multilingual translation interface can also obtain the text translation result from the AIGC application service and send it to the database so that the processor can obtain the text translation result from the database.
[0036] The above technical solution obtains the text to be translated and the target translation language through the AIGC translation component, and when receiving the translation start instruction input by the user, calls the AIGC multilingual translation interface to translate the text to be translated based on the target translation language through the AIGC multilingual translation interface. Then, it is determined whether the translation status information returned by the AIGC multilingual translation interface is obtained, and when the translation status information returned by the AIGC multilingual translation interface is obtained, the text translation result is obtained from the AIGC multilingual translation interface, and finally the text translation result is displayed through the AIGC translation component. The present application obtains the text to be translated and the target translation language of the multilingual system through the AIGC translation component at the front end, and translates the text to be translated through the AIGC multilingual translation interface at the back end, which can simplify the process of users translating the text to be translated in the multilingual system and improve the user experience of the multilingual system.
[0037] In an embodiment of the present application, the multilingual translation unit also includes an input box scene component and an inline element scene component. Obtaining the text to be translated and the target translation language through the AIGC translation component may include: when a translation component opening instruction input by the user is obtained, obtaining the text to be translated from the input box scene component or the inline element scene component through the AIGC translation component; and obtaining the preset translation language of the multilingual translation unit through the AIGC translation component to determine the preset translation language as the target translation language.
[0038] Specifically, the multilingual translation unit may also include an input box scene component and an inline element scene component at the front end. The input box scene component is an input box scene oriented to a hypertext markup language. The inline element scene component is an inline element scene oriented to a hypertext markup language. When the translation component opening instruction input by the user is obtained, the processor may obtain the text to be translated input by the user from the input box scene component through the AIGC translation component, or obtain the text to be translated in the multilingual system from the inline element scene component. At the same time, the processor may also obtain the preset translation language of the multilingual translation unit through the AIGC translation component to determine the preset translation language as the target translation language. The preset translation language may be set according to the actual translation requirements, or the default language of the multilingual system may be used as the preset translation language. In this way, when the user opens the AIGC translation component, the current text to be translated and the target translation language may be displayed.
[0039] In an embodiment of the present application, the method may further include: in the case of obtaining a translation language change instruction input by a user, determining a target translation language according to the translation language change instruction; and / or in the case of obtaining a text editing instruction input by a user, updating the text to be translated according to the text editing instruction.
[0040] After opening the AIGC translation component, the user can modify the text to be translated and the target translation language displayed when the AIGC translation component is opened. Specifically, through the AIGC translation component, the translation language change instruction and text editing instruction input by the user can be obtained. In this way, when the translation language change instruction is received, the target translation language can be changed according to the translation language change instruction. In the case of obtaining the text editing instruction input by the user, the text to be translated can be updated according to the content of the text editing instruction. In the case of obtaining the translation language change instruction and text editing instruction input by the user, the target translation language can be changed according to the translation language change instruction, and the text to be translated can be updated according to the content of the text editing instruction.
[0041] In an embodiment of the present application, the multilingual translation unit also includes a database, and the method may further include: when a translation start instruction is obtained, obtaining user information of the user and the sending time of the translation start instruction; storing the user information, sending time, text to be translated, target translation language and translation status information in the database.
[0042] The processor can persist the data and related information of the current request for translation. Specifically, when obtaining the translation start instruction, the processor can obtain the user information of the user and the sending time of the translation start instruction, and store the user information, sending time, text to be translated, target translation language and translation status information in the database, thereby recording the user information, sending time, text to be translated, target translation language and translation status information through the database. In addition, the database also stores a primary key identifier, and there is a corresponding relationship between user information, sending time, text to be translated, target translation language, translation status information and primary key identifier, so that data are queried. It should be noted that the data stored in the database are not limited to the user information, sending time, text to be translated, target translation language, translation status information and primary key identifier of the aforementioned description, and can also be used to store other data generated in the translation process according to actual needs.
[0043] In an embodiment of the present application, the method may further include: in the case where the translation status information returned by the AIGC multilingual translation interface is not obtained, sending a status information acquisition request to the database according to the primary key identifier corresponding to the text to be translated at preset time intervals within a preset time period until the translation status information returned by the AIGC multilingual translation interface is obtained from the database, or a translation component closing instruction input by the user is obtained.
[0044] Specifically, in the process of translating the text to be translated, the AIGC multilingual translation interface can synchronize the translation status information to the database in real time. When the translation status information is displayed as a successful translation state or a failed translation state, the database returns the translation status information. When the translation status information is displayed as an uncompleted translation state, it is not necessary to return the translation status information. Thus, when the translation status information is not obtained, the processor can send a status information acquisition request to the database at intervals of a preset time length within a preset time period through the AIGC translation component to query the translation completion status. The status information acquisition request includes a primary key identifier corresponding to the text to be translated. Through the primary key identifier, the translation status information corresponding to the primary key identifier can be queried from the database. When any of the following situations occurs, the translation status information returned by the AIGC multilingual translation interface is obtained from the database, the translation component shutdown instruction input by the user is received, and the preset time period ends, the status information acquisition request is stopped.
[0045] In an embodiment of the present application, the text translation result is any one of the target language text and the translation error log. Displaying the text translation result through the AIGC translation component may include: when the translation status information displays a successful translation status, displaying the target language text through the AIGC translation component; when the translation status information displays a failed translation status, displaying the translation error log through the AIGC translation component.
[0046] Specifically, if the processor obtains the translation status information returned by the AIGC multilingual translation interface, it can be determined that the translation is completed. At this time, according to the translation status information, the text translation result corresponding to the translation status information can be obtained from the AIGC multilingual translation interface. The text translation result is any one of the target language text and the translation error log. The translation status information includes a successful translation state and a failed translation state. When the translation status information is displayed as a successful translation state, the target language text can be displayed by the AIGC translation component. When the translation status information is displayed as a failed translation state, the translation error log can be displayed by the AIGC translation component.
[0047] In an embodiment of the present application, the multilingual translation unit also includes a translation feedback interface at the back end, and the multilingual translation unit communicates with the AIGC application service through the translation feedback interface. When the translation status information is displayed as a successful translation status, the method may also include: when user feedback information input by the user is obtained, calling the translation feedback interface so that the AIGC application service is updated according to the user feedback information.
[0048] Specifically, when the translation status information is displayed as a successful translation state, the user can provide feedback on the target language text displayed after the translation is successful through the AIGC translation component. When the processor obtains the user feedback information input by the user, the translation feedback interface can be called to send the user feedback information to the AIGC application service, so that the AIGC application service is updated according to the user feedback information. In addition, the processor can update the user feedback information to the database according to the corresponding primary key identifier.
[0049] Figure 2 The following schematically shows a flow chart of a method for multilingual translation according to a specific embodiment of the present application. Figure 2 As shown, in a specific embodiment of the present application, when the user clicks the icon of the AIGC translation component, the processor can obtain the text to be translated from the input box scene component or the inline element scene component through the AIGC translation component, and determine the preset translation language of the multilingual translation unit as the target translation language. Subsequently, the AIGC translation component is rendered and displayed, that is, the AIGC translation box pops up to display the text to be translated and the target translation language. The user can enter a translation language change instruction or a text editing instruction to modify the text to be translated and the target translation language. When the user clicks on the translation, the processor receives a translation start instruction, and the text to be translated and the target translation language can be passed to the back end, that is, the AIGC multilingual translation interface is called in an asynchronous manner, and the data of the current translation request is persisted at the same time. The AIGC multilingual translation interface can return data such as translation status information and text translation results to the database, so that the processor can query the translation status information stored in the database through the AIGC translation component. When the processor obtains the translation status information, it can be displayed as a translation success state or a translation failure state according to the translation status information to display the corresponding text translation result. When the translation status information shows a successful translation status, user feedback information may be obtained to update the database, and the processor may also call a translation feedback interface to enable the AIGC application service to be updated according to the user feedback information.
[0050] The embodiment of the present application also provides a processor configured to execute the above-mentioned method for multi-language translation.
[0051] Figure 3 The structure diagram of a device for multi-language translation according to an embodiment of the present application is schematically shown. Figure 3 As shown, the embodiment of the present application also provides a device 300 for multilingual translation, including:
[0052] The data acquisition module 310 is used to acquire the text to be translated and the target translation language through the AIGC translation component.
[0053] The translation module 320 is used to call the AIGC multi-language translation interface in response to a translation start instruction input by the user, so as to translate the text to be translated based on the target translation language through the AIGC multi-language translation interface.
[0054] The judgment module 330 is used to judge whether the translation status information returned by the AIGC multi-language translation interface is obtained.
[0055] The translation result acquisition module 340 is used to acquire the text translation result from the AIGC multi-language translation interface when the translation status information returned by the AIGC multi-language translation interface is acquired.
[0056] The translation result display module 350 is used to display the text translation result through the AIGC translation component.
[0057] The above technical solution obtains the text to be translated and the target translation language through the AIGC translation component, and when receiving the translation start instruction input by the user, calls the AIGC multilingual translation interface to translate the text to be translated based on the target translation language through the AIGC multilingual translation interface. Then, it is determined whether the translation status information returned by the AIGC multilingual translation interface is obtained, and when the translation status information returned by the AIGC multilingual translation interface is obtained, the text translation result is obtained from the AIGC multilingual translation interface, and finally the text translation result is displayed through the AIGC translation component. The present application obtains the text to be translated and the target translation language of the multilingual system through the AIGC translation component at the front end, and translates the text to be translated through the AIGC multilingual translation interface at the back end, which can simplify the process of users translating the text to be translated in the multilingual system and improve the user experience of the multilingual system.
[0058] In one embodiment, the data acquisition module 310 is also used to: when a translation component opening instruction input by the user is obtained, obtain the text to be translated from the input box scene component or the inline element scene component through the AIGC translation component; and obtain the preset translation language of the multilingual translation unit through the AIGC translation component to determine the preset translation language as the target translation language.
[0059] In one embodiment, the data acquisition module 310 is further used to: determine the target translation language according to the translation language change instruction when a translation language change instruction input by the user is acquired; and / or update the text to be translated according to the text editing instruction when a text editing instruction input by the user is acquired.
[0060] In one embodiment, the device 300 for multilingual translation also includes a data storage module, which is used to: when a translation start instruction is obtained, obtain the user information of the user and the sending time of the translation start instruction; store the user information, sending time, text to be translated, target translation language and translation status information in a database.
[0061] In one embodiment, the device 300 for multilingual translation also includes a status information request module, which is used to: if the translation status information returned by the AIGC multilingual translation interface is not obtained, send a status information acquisition request to the database according to the primary key identifier corresponding to the text to be translated at intervals of a preset time within a preset time period until the translation status information returned by the AIGC multilingual translation interface is obtained from the database, or a translation component closing instruction input by the user is obtained.
[0062] In one embodiment, the translation result display module 350 is further used to: display the target language text through the AIGC translation component when the translation status information shows a successful translation state; and display the translation error log through the AIGC translation component when the translation status information shows a failed translation state.
[0063] In one embodiment, the apparatus 300 for multilingual translation further includes an updating module, which is used to: upon obtaining user feedback information input by a user, call a translation feedback interface so that the AIGC application service is updated according to the user feedback information.
[0064] The embodiment of the present application also provides a multi-language translation unit, including: an AIGC translation component; an AIGC multi-language translation interface; a processor or a device for multi-language translation.
[0065] An embodiment of the present application also provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the above-mentioned method for multilingual translation.
[0066] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0067] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0068] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0069] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0070] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0071] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0072] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0073] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0074] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for multilingual translation, characterized in that: Applied to a multi-language translation unit, the multi-language translation unit includes a front-end AIGC translation component and a back-end AIGC multi-language translation interface, the method includes: Acquire the text to be translated and the target translation language through the AIGC translation component; In response to a translation start instruction input by a user, calling the AIGC multilingual translation interface to translate the text to be translated based on the target translation language through the AIGC multilingual translation interface; Determine whether the translation status information returned by the AIGC multilingual translation interface is obtained; When the translation status information returned by the AIGC multi-language translation interface is obtained, obtaining the text translation result from the AIGC multi-language translation interface; The text translation result is displayed through the AIGC translation component.
2. The method according to claim 1, characterized in that The multilingual translation unit further includes an input box scene component and an inline element scene component. The step of obtaining the text to be translated and the target translation language through the AIGC translation component includes: When the translation component opening instruction input by the user is obtained, the text to be translated is obtained from the input box scene component or the inline element scene component through the AIGC translation component; and The preset translation language of the multilingual translation unit is obtained through the AIGC translation component to determine the preset translation language as the target translation language.
3. The method according to claim 2, characterized in that The method further comprises: In case of acquiring the translation language change instruction input by the user, determining the target translation language according to the translation language change instruction; and / or When the text editing instruction input by the user is obtained, the text to be translated is updated according to the text editing instruction.
4. The method according to claim 1, characterized in that: The multilingual translation unit further includes a database, and the method further includes: When the translation start instruction is obtained, obtaining the user information of the user and the sending time of the translation start instruction; The user information, the sending time, the text to be translated, the target translation language and the translation status information are stored in the database.
5. The method according to claim 4, characterized in that The method further comprises: In the case where the translation status information returned by the AIGC multilingual translation interface is not obtained, a status information acquisition request is sent to the database according to the primary key identifier corresponding to the text to be translated at preset time intervals within a preset time period until the translation status information returned by the AIGC multilingual translation interface is obtained from the database, or the translation component closing instruction input by the user is obtained.
6. The method according to claim 1, characterized in that The text translation result is any one of a target language text and a translation error log, and displaying the text translation result by the AIGC translation component includes: When the translation status information indicates a successful translation, displaying the target language text through the AIGC translation component; When the translation status information indicates a translation failure state, the translation error log is displayed through the AIGC translation component.
7. The method according to claim 6, characterized in that The multilingual translation unit further includes a translation feedback interface at the back end, and the multilingual translation unit communicates with the AIGC application service through the translation feedback interface. When the translation status information is displayed as a successful translation status, the method further includes: When the user feedback information input by the user is obtained, the translation feedback interface is called to enable the AIGC application service to be updated according to the user feedback information.
8. A processor, characterized in that: The method is configured to perform the method for multi-language translation according to any one of claims 1 to 7.
9. A device for multilingual translation, characterized in that: include: A data acquisition module, used to acquire the text to be translated and the target translation language through the AIGC translation component; A translation module, configured to call the AIGC multilingual translation interface in response to a translation start instruction input by a user, so as to translate the text to be translated based on the target translation language through the AIGC multilingual translation interface; A judgment module, used to judge whether the translation status information returned by the AIGC multilingual translation interface is obtained; A translation result acquisition module, configured to acquire a text translation result from the AIGC multilingual translation interface when the translation status information returned by the AIGC multilingual translation interface is acquired; The translation result display module is used to display the text translation result through the AIGC translation component.
10. A multi-language translation unit, characterized in that: include: AIGC translation component; AIGC multi-language translation interface; The processor according to claim 8 or the apparatus for multi-language translation according to claim 9.
