Communication translation method, device, equipment and storage medium

By responding to the contact translation request in the terminal, obtaining the communication translation broadcast, and determining the translation strategy based on the database identification information and target communication information, and automatically translating the contact information, the problem of contact information cannot be automatically adjusted and translated in the prior art is solved, and the user experience is improved.

CN119155372BActive Publication Date: 2025-04-01TCL COMM TECH (CHENGDU) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411631279.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2025-04-01
Estimated Expiration
2044-11-15

AI Technical Summary

Technical Problem

In the prior art, terminals cannot automatically adjust and translate specific contact information, resulting in incorrect contact information or inability to update in time, affecting user experience.

Method used

By responding to the contact translation request, the associated communication translation broadcast is obtained, and the target communication translation strategy is determined based on the database identification information and target communication information of the preset target communication database, and finally the target communication translation information is performed according to the target switching language and policy.

Benefits of technology

It realizes automatic translation of contact information when users manually switch system language, reducing user operation burden and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119155372B_ABST
    Figure CN119155372B_ABST
Patent Text Reader

Abstract

The present application provides a communication translation method, device, equipment and storage medium. The communication translation method in the present application includes: responding to a contact translation request, obtaining a communication translation broadcast associated with the contact translation request; determining a target communication translation strategy according to database identification information of a preset target communication database and target communication information; performing communication translation on the target communication information according to the target switching language of the communication translation broadcast and the target communication translation strategy, and obtaining a communication translation result. When the user manually switches the system language, the specified contact information is translated into the corresponding language and displayed, thereby reducing the user's operation burden and improving the user's operation experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of contact information translation, and in particular to a communication translation method, apparatus, device and storage medium. Background Art

[0002] At present, with the rapid development of smart terminals such as mobile phones, in order to facilitate users to use corresponding services, more and more smart terminals such as mobile phones will have specific contact information built into the contact application when they leave the factory. These contact information are usually information such as the service number of the operator. However, the contact information in the existing contact application is usually entered in a specific language, resulting in the inability to automatically adjust and translate the contact information when the user switches the device system language, resulting in contact information errors or failure to update the contact information and language in a timely manner, resulting in the inability of users to use specific services, affecting the user experience. Summary of the invention

[0003] The embodiments of the present application provide a communication translation method, apparatus, device and storage medium, which are intended to solve the technical problem in the prior art that a terminal cannot automatically adjust and translate specific contact information.

[0004] On the one hand, an embodiment of the present application provides a communication translation method, the communication translation method comprising the following steps:

[0005] In response to a contact translation request, obtaining a communication translation broadcast associated with the contact translation request;

[0006] Determine the target communication translation strategy according to the preset database identification information of the target communication database and the target communication information;

[0007] The target communication information is communication translated according to the target switching language of the communication translation broadcast and the target communication translation strategy to obtain a communication translation result.

[0008] In a possible implementation of the present application, the step of determining the target communication translation strategy according to the preset database identification information of the target communication database and the target communication information includes:

[0009] Accessing a preset target communication database to obtain database identification information of the target communication database and the number of target contacts corresponding to the target communication information in the target communication database;

[0010] If the database identification information is the same as the preset target identification information and the number of target contacts corresponding to the target communication information is greater than a preset number threshold, determining the first communication translation strategy as the target communication translation strategy;

[0011] If the database identification information is different from the preset target identification information and / or the number of target contacts corresponding to the target communication information is less than a preset number threshold, the second communication translation strategy is determined as the target communication translation strategy.

[0012] In a possible implementation of the present application, performing communication translation on the target communication information according to the target switching language of the communication translation broadcast and the target communication translation strategy to obtain a communication translation result includes:

[0013] If it is determined that the target communication translation strategy is the first communication translation strategy, setting a background translation task based on the first communication translation strategy;

[0014] The target switching language of the communication translation broadcast is obtained, and the target communication information is subjected to communication translation according to the background translation task and the target switching language to obtain a communication translation result.

[0015] In a possible implementation of the present application, performing communication translation on the target communication information according to the background translation task and the target switching language to obtain a communication translation result includes:

[0016] Determining the language configuration state of the target communication database based on a preset query function, and obtaining current language configuration information of the target communication database;

[0017] The background translation task is driven to perform communication translation on the target communication information according to the current language configuration information and the target language configuration information corresponding to the target switching language to obtain a communication translation result.

[0018] In a possible implementation of the present application, the driving background translation task performs communication translation on the target communication information according to the current language configuration information and the target language configuration information corresponding to the target switching language to obtain a communication translation result, including:

[0019] Obtaining target language configuration information corresponding to the target switching language;

[0020] If the language region information of the current language configuration information does not match the target region information corresponding to the target language configuration information, driving the background translation task to update the language region information to obtain updated language region information;

[0021] The translation resource information corresponding to the updated language region information is obtained, and the target communication information is translated by using the translation resource information to obtain a communication translation result.

[0022] In a possible implementation of the present application, performing communication translation on the target communication information by using the translation resource information to obtain a communication translation result includes:

[0023] Querying the target communication database to determine the target translation field of the target communication information and the target query cursor corresponding to the target translation field;

[0024] The target translation field is translated according to the translation resource information and the target query cursor to obtain a communication translation result of the target communication information.

[0025] In a possible implementation of the present application, before responding to the contact translation request and obtaining the communication translation broadcast associated with the contact translation request, the method further includes:

[0026] In response to a system language switching request, obtaining a target switching language corresponding to the system language switching request;

[0027] A communication translation broadcast is generated based on the target switching language and a preset broadcast template, and the communication translation broadcast is transmitted to a target broadcast receiver.

[0028] On the other hand, the present application provides a communication translation device, the communication translation device comprising:

[0029] An information acquisition module, configured to respond to a contact translation request and acquire a communication translation broadcast associated with the contact translation request;

[0030] A strategy generation module is configured to determine a target communication translation strategy based on database identification information of a preset target communication database and target communication information;

[0031] The communication translation module is configured to perform communication translation on the target communication information according to the target switching language of the communication translation broadcast and the target communication translation strategy to obtain a communication translation result.

[0032] On the other hand, the present application also provides a communication translation device, the communication translation device comprising:

[0033] one or more processors;

[0034] Memory; and

[0035] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps of the communication translation method.

[0036] On the other hand, the present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is loaded by a processor to execute the steps in the communication translation method.

[0037] In this application, by responding to a contact translation request, a communication translation broadcast associated with the contact translation request is obtained; a target communication translation strategy is determined according to the database identification information of the preset target communication database and the target communication information; the target communication information is translated according to the target switching language of the communication translation broadcast and the target communication translation strategy to obtain a communication translation result. This is achieved by triggering a communication translation broadcast when the system language is switched, determining the target communication translation strategy according to the database identification information and the target communication information, and translating the target communication information in the communication application according to the specified target communication translation strategy, so that when the user manually switches the system language, the specified contact information is translated into the corresponding language and displayed, thereby reducing the user's operating burden and improving the user's operating experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0039] Figure 1 A schematic diagram of a scenario of a communication translation method according to an embodiment of the present application;

[0040] Figure 2 A flowchart of an embodiment of a communication translation method in an embodiment of the present application;

[0041] Figure 3 A flowchart of an embodiment of translating target communication information in a communication translation method provided in an embodiment of the present application;

[0042] Figure 4 A flow chart of an embodiment of generating a communication translation broadcast in a communication translation method provided in an embodiment of the present application;

[0043] Figure 5 A schematic diagram of the structure of an embodiment of a communication translation device provided in an embodiment of the present application;

[0044] Figure 6 A structural diagram of an embodiment of a communication translation device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. 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.

[0046] In the description of the present invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0047] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any person skilled in the art to implement and use the invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the invention can be implemented without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.

[0048] At present, with the rapid development of smart terminals such as mobile phones, in order to facilitate users to use corresponding services, more and more smart terminals such as mobile phones will have specific contact information built into the contact application when they leave the factory. These contact information are usually information such as the service number of the operator. However, the contact information in the existing contact application is usually entered in a specific language, resulting in the inability to automatically adjust and translate the contact information when the user switches the device system language, resulting in contact information errors or failure to update the contact information and language in a timely manner, resulting in the inability of users to use specific services, affecting the user experience.

[0049] Based on this, the present application proposes a communication translation method, device, equipment and computer-readable storage medium to solve the technical problem in the prior art that the terminal cannot automatically adjust and translate specific contact information.

[0050] The communication translation method in the embodiment of the present invention is applied to a communication translation device, which is arranged in a communication translation device. The communication translation device is provided with one or more processors, a memory, and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the communication translation method; wherein the communication translation device can be an intelligent terminal, such as a mobile phone, a tablet computer, a network device, and a smart computer; optionally, the communication translation device can also be a server, or a service cluster composed of multiple servers.

[0051] like Figure 1 As shown, Figure 1 This is a scenario diagram of the communication translation method in an embodiment of the present application. The communication translation scenario in the embodiment of the present invention includes a communication translation device 100 (a communication translation apparatus is integrated in the communication translation device 100), and a computer-readable storage medium corresponding to the communication translation method is running in the communication translation device 100 to execute the steps of the communication translation method.

[0052] Understandably, Figure 1 The communication translation equipment in the communication translation method scenario shown, or the devices included in the communication translation equipment, does not constitute a limitation on the embodiments of the present invention, that is, the number of devices and types of devices of the communication translation equipment included in the communication translation method scenario, or the number of devices and types of devices included in each device, do not affect the overall implementation of the technical solution in the embodiments of the present invention, and can all be regarded as equivalent replacements or derivatives of the technical solution claimed to be protected by the embodiments of the present invention.

[0053] The communication translation device 100 in the embodiment of the present invention is mainly used to: respond to a contact translation request and obtain a communication translation broadcast associated with the contact translation request;

[0054] Determine the target communication translation strategy according to the preset database identification information of the target communication database and the target communication information;

[0055] The target communication information is communication translated according to the target switching language of the communication translation broadcast and the target communication translation strategy to obtain a communication translation result.

[0056] The communication translation device 100 in the embodiment of the present invention can be an independent communication translation device, such as a smart terminal such as a mobile phone, a tablet computer, a network device, a server, and a smart computer, or it can be a communication translation network or a communication translation cluster composed of multiple communication translation devices.

[0057] The embodiments of the present application provide a communication translation method, apparatus, device, and computer-readable storage medium, which are described in detail below.

[0058] It can be understood by those skilled in the art that Figure 1 The application environment shown in is only one of the application scenarios related to the present application solution and does not constitute a limitation on the application scenario of the present application solution. Other application environments may also include Figure 1 More or fewer communication translation devices shown, or communication translation network connection relationships, such as Figure 1 Only one communication translation device is shown. It can be understood that the scenario of the communication translation method can also include one or more communication translation devices, which is not limited here. The communication translation device 100 can also include a memory for storing communication data and other data.

[0059] It should be noted that Figure 1 The scenario diagram of the communication translation method shown is only an example. The scenario of the communication translation method described in the embodiment of the present invention is to more clearly illustrate the technical solution of the embodiment of the present invention, and does not constitute a limitation on the technical solution provided by the embodiment of the present invention.

[0060] Based on the scenario of the above communication translation method, various embodiments of the communication translation method disclosed in the present invention are proposed.

[0061] like Figure 2 As shown, Figure 2 This is a flow chart of an embodiment of a communication translation method in an embodiment of the present application. The communication translation method includes the following steps 201 to 203:

[0062] Step 201: respond to a contact translation request and obtain a communication translation broadcast associated with the contact translation request;

[0063] The communication translation method in this embodiment is applied to a communication translation device, and the type and quantity of the communication translation device are not specifically limited, that is, the communication translation device can be one or more intelligent terminals or servers. In a specific embodiment, the communication translation device is a smart phone.

[0064] Specifically, the communication translation device can have at least one or more target communication information built into the communication application when it leaves the factory. These target communication information are usually special contact information built into the communication application when it leaves the factory. The communication information usually includes the contact name and contact number, etc. Optionally, in a specific embodiment, the communication information can be a specific service number pre-customized by the mobile phone manufacturer, or the target communication information can also be the service number of the operator. For example, the communication information can be the service hotline of a designated mobile phone manufacturer, or the service hotline of a designated operator. Optionally, in other embodiments, the communication information can also be contact data that is pre-labeled and classified by the user according to actual needs.

[0065] Specifically, when the communication translation device is in operation, the user can modify the system language of the communication translation device and switch the system language to the target switching language, so that the operating system of the communication translation device displays the text display data corresponding to the target switching language when displaying. When the user modifies the system language of the communication translation device, the communication translation device can automatically trigger a contact translation request, wherein the contact translation request is an operation request for driving the communication translation device to translate the target communication information in the address book application to update the display text and other data of the target communication information. In addition, the contact translation request can also be actively triggered by the user, for example, the user actively triggers the contact translation request by clicking the communication translation button in the address book application setting interface or other setting interface in the communication translation device.

[0066] Specifically, after obtaining the contact translation request, the communication translation device also obtains the communication translation broadcast associated with the contact translation request, and triggers the contact translation process by parsing the communication translation broadcast. The communication translation broadcast is a system broadcast information and / or an application system internal broadcast triggered based on the system language modification or the user's active modification of the specified application language.

[0067] Specifically, a broadcast receiver component is provided in the communication translation device, and a language change unit is provided in the broadcast receiver component. When the system language of the communication translation device is modified or the user actively modifies the specified application language, the language change unit inherited from the broadcast receiver can receive the communication translation broadcast triggered by the system language modification or the user actively modifying the specified application language, and parse the communication translation broadcast to determine the target switching language in the communication translation broadcast. The target switching language is a language type that characterizes the system language or application language of the communication translation device after modification. For example, in a specific embodiment, when the system language is modified from Simplified Chinese to English, the target switching language of the communication translation broadcast is English.

[0068] Step 202: determining a target communication translation strategy according to the preset database identification information of the target communication database and the target communication information;

[0069] Specifically, after the communication translation device obtains the communication translation broadcast and starts the communication translation process, it also determines the target communication translation strategy according to the database identification information of the preset target communication database and the target communication information. The target communication database is a database associated with the address book application to be switched in language, and stores various communication information in the address book application. The communication information is the contact data stored in the address book application.

[0070] Specifically, after acquiring the communication translation broadcast, the communication translation device also accesses the target communication database associated with the address book application and acquires the database identification information of the target communication database. In addition, the communication translation device also counts the number of target contacts associated with the target communication information to be translated in the target communication database. In a specific embodiment, each target communication information corresponds to one target contact number.

[0071] Wherein, the database identification information is a flag bit identification characterizing the database status of the target communication database. Optionally, in a specific embodiment, the database identification information includes a first database identification, a second database identification, a third database identification and a fourth database identification. Wherein, the first database identification is identification information characterizing that the target communication database is in a normal operating state. The second database identification is identification information characterizing that the target communication database is in a database upgrade state. The third database identification is identification information characterizing that the target communication database is in a regional setting change state. Wherein, the communication translation device sets the first database identification as the default target identification information.

[0072] Specifically, after obtaining the database identification information of the target communication database and the number of target contacts, the communication translation device also determines whether to execute the contact dynamic translation process according to the database identification information and the number of target contacts, and then determines the target communication translation strategy. The target communication translation strategy is a translation strategy for translating the target communication information in the specified address book. The target communication translation strategy includes a first communication translation strategy and a second translation strategy. The first communication translation strategy is a translation strategy that represents the translation of the target communication information. The second translation strategy is a translation strategy that does not translate the target communication information.

[0073] Optionally, if the communication translation device determines that the database identification information is the same as the target identification information, that is, the communication translation device determines that the database identification information of the current target communication database is the first database identification, the communication translation device further determines the comparison result between the number of target contacts and the preset number threshold, and after determining that the number of target contacts is greater than or equal to the preset number threshold, determines the first communication translation strategy as the target communication translation strategy. In a specific embodiment, the preset number threshold is 1.

[0074] Optionally, if the communication translation device determines that the database identification information and the target identification information are not the same, that is, the communication translation device determines that the database identification information of the current target communication database is identification information other than the first database identification, and / or the communication translation device determines that the number of target contacts of the target communication database is less than a preset number threshold, then the communication translation device determines that there is no need to perform a communication translation operation on the target communication database, and determines the second communication translation strategy as the target communication translation strategy.

[0075] Step 203: Perform communication translation on the target communication information according to the target switching language of the communication translation broadcast and the target communication translation strategy to obtain a communication translation result.

[0076] Specifically, in this embodiment, after determining the first communication translation strategy as the target communication translation strategy, the communication translation device also performs communication translation on the target communication information in the target communication database according to the target switching language of the communication translation broadcast and the target communication translation strategy to obtain a communication translation result.

[0077] Specifically, after determining the first communication translation strategy as the target communication translation strategy, the communication translation device also sets a background translation task for each target communication information based on the first communication translation strategy. That is, the communication translation device sets a background scheduled translation task for each target communication information according to the first communication translation strategy, and starts the contact translation process for each target communication information.

[0078] Specifically, the communication translation device also obtains the target switching language of the communication translation broadcast, and performs communication translation on the target communication information according to the background translation task and the target switching language to obtain a communication translation result.

[0079] Specifically, the communication translation device obtains the preset query function in the first communication translation strategy, and uses the background translation task and the preset query function to query the language configuration state of the target communication database to obtain the current language configuration information of the target communication database. The preset query function may be the initForDefaultLocale function.

[0080] Specifically, after determining the current language configuration information of the target communication database, the communication translation device also drives the background translation task to perform communication translation on the target communication information according to the current language configuration information and the target language configuration information corresponding to the target switching language, so as to translate the target communication information into the language text and other information corresponding to the target switching language (for example, synchronously updating the contact number corresponding to the target communication information, etc.), and obtain the communication translation result.

[0081] In this embodiment, the communication translation device obtains the communication translation broadcast associated with the contact translation request by responding to the contact translation request; determines the target communication translation strategy according to the database identification information of the preset target communication database and the target communication information; performs communication translation on the target communication information according to the target switching language of the communication translation broadcast and the target communication translation strategy to obtain the communication translation result. This is achieved by triggering the communication translation broadcast when the system language is switched, determining the target communication translation strategy according to the database identification information and the target communication information, and translating the target communication information in the communication application according to the specified target communication translation strategy, so as to achieve the translation of the specified contact information into the corresponding language and display it when the user manually switches the system language, thereby reducing the user's operation burden and improving the user's operation experience.

[0082] like Figure 3 As shown, Figure 3 This is a flow chart of an embodiment of translating target communication information in the communication translation method provided in the embodiment of the present application. Specifically, in this embodiment, the communication translation method further includes steps 301 to 303:

[0083] Step 301: Obtain target language configuration information corresponding to the target switching language;

[0084] Step 302: If the language region information of the current language configuration information does not match the target region information corresponding to the target language configuration information, drive the background translation task to update the language region information to obtain updated language region information;

[0085] Step 303: Obtain translation resource information corresponding to the updated language region information, and use the translation resource information to perform communication translation on the target communication information to obtain a communication translation result.

[0086] Based on the above embodiments, in this embodiment, after determining the current language configuration information of the target communication database, the communication translation device also drives the background translation task to perform communication translation on the target communication information according to the current language configuration information and the target language configuration information corresponding to the target switching language, so that the target communication information is translated into the language text and other information corresponding to the target switching language (for example, synchronously updating the contact number corresponding to the target communication information, etc.), and obtaining the communication translation result.

[0087] Specifically, the communication translation device obtains the target language configuration information corresponding to the target switching language, and compares the target language configuration information with the current language configuration information, and then determines whether the target communication database has correctly configured the current language configuration information.

[0088] Optionally, if the language area information of the current language configuration information matches the target area information corresponding to the target language configuration information, that is, the language area information and the target area information are the same, the communication translation device determines that the target communication database has correctly configured the current language configuration information and there is no need to update the current language configuration information.

[0089] Optionally, if the language area information of the current language configuration information and the target area information corresponding to the target language configuration information do not match, that is, the language area information and the target area information are different, the communication translation device determines that the target communication database has not correctly configured the current language configuration information, and drives the background translation task to update the language area information to obtain updated language area information, wherein the updated language area information is the same as the target area information.

[0090] Specifically, the communication translation device also obtains the translation resource information of the updated language configuration information, or the translation resource information of the correctly configured current language information, and uses the translation resource information to perform communication translation on the target communication information to obtain a communication translation result.

[0091] Specifically, the communication translation device queries the target communication database to determine the target translation field of the target communication information and the target query cursor corresponding to the target translation field. After determining the target query cursor corresponding to the target translation field, the communication translation device also performs translation processing on the target translation field according to the translation resource information and the target query cursor to obtain the communication translation result of the target communication information.

[0092] In this embodiment, the communication translation device obtains the target language configuration information corresponding to the target switching language; if the language area information of the current language configuration information does not match the target area information corresponding to the target language configuration information, the background translation task is driven to update the language area information to obtain the updated language area information; the translation resource information corresponding to the updated language area information is obtained, and the target communication information is translated using the translation resource information to obtain the communication translation result. The language configuration information of the communication database is automatically updated, and the contact information is translated according to the translation resource information of the language configuration information to improve the translation accuracy of the contact information.

[0093] like Figure 4 As shown, Figure 4 This is a flow chart of an embodiment of generating a communication translation broadcast in the communication translation method provided in the embodiment of the present application. Specifically, in this embodiment, the communication translation method further includes steps 401 to 402:

[0094] Step 401: respond to a system language switching request and obtain a target switching language corresponding to the system language switching request;

[0095] Step 402: Generate a communication translation broadcast based on the target switching language and a preset broadcast template, and transmit the communication translation broadcast to a target broadcast receiver.

[0096] Based on the above embodiment, in this embodiment, the communication translation device further responds to a system language switching request before translating the target communication information, wherein the system language switching request is an operation instruction that drives the communication translation device to switch the system language to the target switching language.

[0097] Specifically, after obtaining the system language switching request, the communication translation device also obtains the target switching language corresponding to the system language switching request, and switches the system language according to the target switching language.

[0098] Specifically, after switching the system language, the communication translation device also generates a communication translation broadcast based on the target switching language and a preset broadcast template, and transmits the communication translation broadcast to the target broadcast receiver, so that the communication translation device can trigger the communication translation process of the target communication information based on the communication translation broadcast.

[0099] In this embodiment, the communication translation device responds to the system language switching request, obtains the target switching language corresponding to the system language switching request, generates a communication translation broadcast based on the target switching language and a preset broadcast template, and transmits the communication translation broadcast to the target broadcast receiver. This enables the terminal to automatically translate the specified communication information in the address book when the system language is switched, thereby optimizing the user experience.

[0100] In order to better implement the communication translation method in the embodiment of the present application, based on the communication translation method, the embodiment of the present application also provides a communication translation device, such as Figure 5 As shown, Figure 5 The structure diagram of the communication translation device provided in the embodiment of the present application is as follows. Specifically, the communication translation device 500 includes:

[0101] The information acquisition module 501 is configured to respond to a contact translation request and acquire a communication translation broadcast associated with the contact translation request;

[0102] A strategy generating module 502 is configured to determine a target communication translation strategy according to database identification information of a preset target communication database and target communication information;

[0103] The communication translation module 503 is configured to perform communication translation on the target communication information according to the target switching language of the communication translation broadcast and the target communication translation strategy to obtain a communication translation result.

[0104] In a possible implementation of this embodiment, the communication translation device determines the target communication translation strategy according to the preset database identification information of the target communication database and the target communication information, including:

[0105] Accessing a preset target communication database to obtain database identification information of the target communication database and the number of target contacts corresponding to the target communication information in the target communication database;

[0106] If the database identification information is the same as the preset target identification information and the number of target contacts corresponding to the target communication information is greater than a preset number threshold, determining the first communication translation strategy as the target communication translation strategy;

[0107] If the database identification information is different from the preset target identification information and / or the number of target contacts corresponding to the target communication information is less than a preset number threshold, the second communication translation strategy is determined as the target communication translation strategy.

[0108] In a possible implementation of this embodiment, the communication translation device performs communication translation on the target communication information according to the target switching language of the communication translation broadcast and the target communication translation strategy to obtain a communication translation result, including:

[0109] If it is determined that the target communication translation strategy is the first communication translation strategy, setting a background translation task based on the first communication translation strategy;

[0110] The target switching language of the communication translation broadcast is obtained, and the target communication information is subjected to communication translation according to the background translation task and the target switching language to obtain a communication translation result.

[0111] In a possible implementation of this embodiment, the communication translation device performs communication translation on the target communication information according to the background translation task and the target switching language to obtain a communication translation result, including:

[0112] Determining the language configuration state of the target communication database based on a preset query function, and obtaining current language configuration information of the target communication database;

[0113] The background translation task is driven to perform communication translation on the target communication information according to the current language configuration information and the target language configuration information corresponding to the target switching language to obtain a communication translation result.

[0114] In a possible implementation of this embodiment, the communication translation device drives the background translation task to perform communication translation on the target communication information according to the current language configuration information and the target language configuration information corresponding to the target switching language, and obtains a communication translation result, including:

[0115] Obtaining target language configuration information corresponding to the target switching language;

[0116] If the language region information of the current language configuration information does not match the target region information corresponding to the target language configuration information, driving the background translation task to update the language region information to obtain updated language region information;

[0117] The translation resource information corresponding to the updated language region information is obtained, and the target communication information is translated by using the translation resource information to obtain a communication translation result.

[0118] In a possible implementation of this embodiment, the communication translation device uses the translation resource information to perform communication translation on the target communication information to obtain a communication translation result, including:

[0119] Querying the target communication database to determine the target translation field of the target communication information and the target query cursor corresponding to the target translation field;

[0120] The target translation field is translated according to the translation resource information and the target query cursor to obtain a communication translation result of the target communication information.

[0121] In a possible implementation of this embodiment, the communication translation device responds to the contact translation request, and before obtaining the communication translation broadcast associated with the contact translation request, further includes:

[0122] In response to a system language switching request, obtaining a target switching language corresponding to the system language switching request;

[0123] A communication translation broadcast is generated based on the target switching language and a preset broadcast template, and the communication translation broadcast is transmitted to a target broadcast receiver.

[0124] In this embodiment, the communication translation device obtains the communication translation broadcast associated with the contact translation request by responding to the contact translation request; determines the target communication translation strategy according to the database identification information of the preset target communication database and the target communication information; performs communication translation on the target communication information according to the target switching language of the communication translation broadcast and the target communication translation strategy to obtain the communication translation result. This is achieved by triggering the communication translation broadcast when the system language is switched, determining the target communication translation strategy according to the database identification information and the target communication information, and translating the target communication information in the communication application according to the specified target communication translation strategy, so as to achieve the translation of the specified contact information into the corresponding language and display it when the user manually switches the system language, thereby reducing the user's operation burden and improving the user's operation experience.

[0125] The embodiment of the present invention also provides a communication translation device, such as Figure 6 As shown, Figure 6 This is a schematic diagram of the structure of an embodiment of the communication translation device provided in the embodiments of the present application.

[0126] The communication translation device integrates any one of the communication translation devices provided in the embodiments of the present invention, and the communication translation device includes:

[0127] one or more processors;

[0128] Memory; and

[0129] One or more applications, wherein the one or more applications are stored in the memory and are configured to enable the processor to execute the steps of the communication translation method described in any of the above communication translation method embodiments.

[0130] Specifically, the communication translation device may include one or more processing core processors 601, one or more computer-readable storage media memories 602, a power supply 603, an input unit 604 and other components. Those skilled in the art will understand that Figure 6 The communication translation device structure shown in the figure does not constitute a limitation on the communication translation device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:

[0131] The processor 601 is the control center of the communication translation device. It uses various interfaces and lines to connect the various parts of the entire communication translation device. By running or executing the software programs and / or modules stored in the memory 602 and calling the data stored in the memory 602, it executes various functions of the communication translation device and processes data, thereby monitoring the communication translation device as a whole. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 601.

[0132] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the communication translation device, etc. In addition, the memory 602 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. Accordingly, the memory 602 can also include a memory controller to provide the processor 601 with access to the memory 602.

[0133] The communication translation device also includes a power supply 603 for supplying power to each component. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 603 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0134] The communication translation device may further include an input unit 604, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0135] Although not shown, the communication translation device may also include a display unit, etc., which will not be described in detail here. Specifically in this embodiment, the processor 601 in the communication translation device will load the executable files corresponding to the processes of one or more applications into the memory 602 according to the following instructions, and the processor 601 will run the application stored in the memory 602 to achieve various functions, as follows:

[0136] In response to a contact translation request, obtaining a communication translation broadcast associated with the contact translation request;

[0137] Determine the target communication translation strategy according to the preset database identification information of the target communication database and the target communication information;

[0138] The target communication information is communication translated according to the target switching language of the communication translation broadcast and the target communication translation strategy to obtain a communication translation result.

[0139] To this end, an embodiment of the present invention provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any communication translation method provided in an embodiment of the present invention. For example, the computer program may be loaded by a processor to execute the following steps:

[0140] In response to a contact translation request, obtaining a communication translation broadcast associated with the contact translation request;

[0141] Determine the target communication translation strategy according to the preset database identification information of the target communication database and the target communication information;

[0142] The target communication information is communication translated according to the target switching language of the communication translation broadcast and the target communication translation strategy to obtain a communication translation result.

[0143] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.

[0144] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.

[0145] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0146] The above is a detailed introduction to a communication translation method provided in an embodiment of the present application. Specific embodiments are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A communication translation method, characterized in that: The communication translation method comprises: In response to a contact translation request, obtaining a communication translation broadcast associated with the contact translation request; Determining a target communication translation strategy according to database identification information of a preset target communication database and target communication information, wherein the target communication information is preset manufacturer service number contact information or operator service hotline contact information; According to the target switching language of the communication translation broadcast and the target communication translation strategy, the target communication information is translated into a language text corresponding to the target switching language, and the contact number corresponding to the target communication information is synchronously updated to obtain a communication translation result; Wherein, the step of determining the target communication translation strategy according to the preset database identification information of the target communication database and the target communication information includes: If the database identification information is the same as the preset target identification information and the number of target contacts corresponding to the target communication information is greater than a preset number threshold, determining the first communication translation strategy as the target communication translation strategy; If the database identification information is different from the preset target identification information and / or the number of target contacts corresponding to the target communication information is less than a preset number threshold, the second communication translation strategy is determined as the target communication translation strategy.

2. The communication translation method according to claim 1, characterized in that: The target communication information is translated into a language text corresponding to the target switching language according to the target switching language of the communication translation broadcast and the target communication translation strategy, and the contact number corresponding to the target communication information is synchronously updated to obtain a communication translation result, including: If it is determined that the target communication translation strategy is the first communication translation strategy, setting a background translation task based on the first communication translation strategy; The target switching language of the communication translation broadcast is obtained, and the target communication information is subjected to communication translation according to the background translation task and the target switching language to obtain a communication translation result.

3. The communication translation method according to claim 2, characterized in that: The performing communication translation on the target communication information according to the background translation task and the target switching language to obtain a communication translation result includes: Determining the language configuration state of the target communication database based on a preset query function, and obtaining current language configuration information of the target communication database; The background translation task is driven to perform communication translation on the target communication information according to the current language configuration information and the target language configuration information corresponding to the target switching language to obtain a communication translation result.

4. The communication translation method according to claim 3, characterized in that: The driving background translation task performs communication translation on the target communication information according to the current language configuration information and the target language configuration information corresponding to the target switching language to obtain a communication translation result, including: Obtaining target language configuration information corresponding to the target switching language; If the language region information of the current language configuration information does not match the target region information corresponding to the target language configuration information, driving the background translation task to update the language region information to obtain updated language region information; The translation resource information corresponding to the updated language region information is obtained, and the target communication information is translated by using the translation resource information to obtain a communication translation result.

5. The communication translation method according to claim 4, characterized in that: The using the translation resource information to perform communication translation on the target communication information to obtain a communication translation result includes: Querying the target communication database to determine the target translation field of the target communication information and the target query cursor corresponding to the target translation field; The target translation field is translated according to the translation resource information and the target query cursor to obtain a communication translation result of the target communication information.

6. The communication translation method according to any one of claims 1 to 5, characterized in that: Before responding to the contact translation request and obtaining the communication translation broadcast associated with the contact translation request, the method further includes: In response to a system language switching request, obtaining a target switching language corresponding to the system language switching request; A communication translation broadcast is generated based on the target switching language and a preset broadcast template, and the communication translation broadcast is transmitted to a target broadcast receiver.

7. A communication translation device, characterized in that: The communication translation device comprises: An information acquisition module, configured to respond to a contact translation request and acquire a communication translation broadcast associated with the contact translation request; A strategy generation module is configured to determine a target communication translation strategy according to database identification information of a preset target communication database and target communication information, wherein the target communication information is preset manufacturer service number contact information or operator service hotline contact information; A communication translation module is configured to translate the target communication information into a language text corresponding to the target switching language according to the target switching language of the communication translation broadcast and the target communication translation strategy, and synchronously update the contact number corresponding to the target communication information to obtain a communication translation result; Wherein, the step of determining the target communication translation strategy according to the preset database identification information of the target communication database and the target communication information includes: If the database identification information is the same as the preset target identification information and the number of target contacts corresponding to the target communication information is greater than a preset number threshold, determining the first communication translation strategy as the target communication translation strategy; If the database identification information is different from the preset target identification information and / or the number of target contacts corresponding to the target communication information is less than a preset number threshold, the second communication translation strategy is determined as the target communication translation strategy.

8. A communication translation device, characterized in that: The communication translation device comprises: one or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and are configured to be executed by the processor to implement the steps of the communication translation method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps of the communication translation method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Contact person analysis method and device as well as contact person generation method and device

    CN102932512A

  • Terminal equipment control method, terminal equipment and storage medium

    CN111143010A