Display method and device applying localized translation and related product

By obtaining and identifying the translated application screen text collection, automatically detecting and modifying the display effect, the problem of high manual testing cost in the application localized translation process is solved, and efficient and accurate automated testing is achieved.

CN120449901APending Publication Date: 2025-08-08TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410178274.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-08
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

The prior art requires a lot of labor costs to test during the application of localized translation, and cannot effectively take into account the problem of text quantity, language and display errors.

Method used

By obtaining the translated application screen and the corresponding first text set, the second text set is generated using text recognition technology, and the differences between the first and second sets are compared, and the display effect is automatically detected and modified.

Benefits of technology

It realizes automated testing without manual participation, reduces labor costs, improves testing efficiency and accuracy, and can quickly discover problems with text quantity, language and display errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120449901A_ABST
    Figure CN120449901A_ABST
Patent Text Reader

Abstract

The invention discloses a display method and device applying localized translation and a related product. The method comprises the steps of obtaining a translated application picture and a first character set corresponding to the translated application picture; and performing text recognition on the translated application picture to obtain a second character set corresponding to the translated application picture, wherein the second character set comprises characters displayed in the application client after the first character set is imported into the application client. And comparing the first character set with the second character set to obtain a comparison result. And if at least one difference in a character quantity level, a language level or a display error level exists between the first character set and the second character set, modifying the display effect of the characters in the first character set in the application client based on the different levels displayed in the comparison result. According to the method provided by the invention, localized translation of the application can be automatically detected, and the labor cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a display method, device, and related products for applying localized translation. Background Art

[0002] With the continuous advancement of technology, the world's connections are becoming increasingly close. Apps, to a greater or lesser extent, often contain text. With the presence of text, translation is necessary during the internationalization process. Localized translation of text plays a crucial role in app internationalization, as apps need to adapt to the languages and cultures of different regions. Localized translation of apps ensures a better experience for users in different regions.

[0003] In the prior art, during the translation process of application localization, the language text is first collected, and then the language text is translated. After the translation is completed, the translated text is imported into the application client. After the translated text is imported into the application client, the application client is subjected to a localization quality assurance (LQA) test. The test of the application client can be performed by a tester, who runs the application client on a test device and tests the translation in the application client. Although this method can relatively comprehensively identify translation problems in application localization, it consumes a lot of labor costs and is relatively costly.

[0004] Therefore, how to reduce the testing cost of application clients has become a technical problem that those skilled in the art urgently need to solve. Summary of the Invention

[0005] The embodiments of the present application provide a method, device, and related products for displaying application localization translation, aiming to reduce the testing cost of application clients.

[0006] In a first aspect, the present application provides a translation method for application localization, comprising:

[0007] Obtaining a translated application screen and a first text set corresponding to the translated application screen, where the text in the first text set is obtained by localizing the original text in the application screen to be translated; the translated application screen is sent by the application client;

[0008] Performing text recognition on the translated application screen to obtain a second text set corresponding to the translated application screen; the second text set includes text displayed in the application client after the first text set is imported into the application client;

[0009] Comparing the first character set and the second character set to obtain a comparison result;

[0010] If the comparison result shows that there is a difference between the first character set and the second character set in at least one of the aspects of the number of characters, language, or display error, then based on the aspect with the difference shown in the comparison result, the display effect of the characters in the first character set in the application client is modified.

[0011] A second aspect of the present application provides a display device for applying localized translation, comprising:

[0012] a receiving module configured to obtain a translated application screen and a first text set corresponding to the translated application screen, wherein the text in the first text set is obtained by localizing the original text in the application screen to be translated; the translated application screen is sent by the application client;

[0013] a text recognition module configured to perform text recognition on the translated application screen to obtain a second text set corresponding to the translated application screen; the second text set comprising text displayed in the application client after the first text set is imported into the application client;

[0014] a comparison module, configured to compare the first character set and the second character set to obtain a comparison result;

[0015] A modification module, which is used to modify the display effect of the characters in the first character set in the application client based on the level of difference shown in the comparison result, if the comparison result shows that there is a difference between the first character set and the second character set in at least one of the levels of character quantity, language or display error.

[0016] A third aspect of the present application provides a display device for applying localized translation, the device comprising a processor and a memory:

[0017] The memory is used to store program code and transmit the program code to the processor;

[0018] The processor is configured to execute the steps of the method for displaying application localized translation provided in the first aspect according to the instructions in the program code.

[0019] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, and the program code is used to execute the steps of the display method of application localization translation provided in the first aspect.

[0020] In a fifth aspect, the present application provides a computer program product, including a computer program or instructions, which, when executed by a display device that applies localized translation, implements the steps of the display method for applying localized translation provided in the first aspect.

[0021] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0022] The technical solution of this application obtains a translated application screen and a first text set corresponding to the application screen. The text in the first text set is obtained by localizing the original text in the application screen to be translated. Text recognition is performed on the translated application screen to obtain a second text set corresponding to the translated application screen. The second text set includes the text displayed on the application client after the first text set is imported into the application client. The method provided by this application compares the first text set with the second text set to obtain a comparison result. The comparison can reveal differences between the first and second text sets in at least one of the following aspects: the number of characters, the language, or the display errors. The method provided by this application can automatically test the application client. By comparing the first and second text sets, problems with the number of characters, the language, and the display errors in the localized translation of the application client can be quickly tested. Because the second text set is obtained by text recognition on the translated application screen, the method provided by this application can track the actual display effect of the localized translation in the application, obtaining more accurate test results. Furthermore, the method provided by this application does not require the participation of testers during the application client testing process, significantly reducing labor costs while obtaining accurate test results. In addition, the method provided in the present application can adaptively modify the display effect of the characters in the first character set in the application client according to the problems shown in the comparison results, so that the modification of the display effect is more targeted. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A scenario architecture diagram of a display method for applying localized translation provided in an embodiment of the present application;

[0024] Figure 2 A flowchart of a method for displaying application localized translation provided in an embodiment of the present application;

[0025] Figure 3 A schematic diagram of a control in an application screen provided in an embodiment of the present application;

[0026] Figure 4 A schematic diagram of another space in an application screen provided in an embodiment of the present application;

[0027] Figure 5A schematic diagram of the operation of a data acquisition plug-in provided in an embodiment of the present application;

[0028] Figure 6 A schematic diagram of a function button after a floating button is expanded according to an embodiment of the present application;

[0029] Figure 7 A schematic diagram of a list of corresponding data of different versions of application clients provided in an embodiment of the present application;

[0030] Figure 8 A detailed display diagram of an application screen provided in an embodiment of the present application;

[0031] Figure 9 A schematic diagram of a comparison result corresponding to a translated application screen provided in an embodiment of the present application;

[0032] Figure 10 A schematic diagram of comparison results corresponding to another translated application screen provided in an embodiment of the present application;

[0033] Figure 11 A schematic diagram of a process for obtaining a translated application screen according to an embodiment of the present application;

[0034] Figure 12 An architectural diagram of an application localization translation provided in an embodiment of the present application;

[0035] Figure 13 A schematic diagram illustrating the principle of displaying an application localization translation provided in an embodiment of the present application;

[0036] Figure 14 A schematic diagram of a comparison result between a first character set and a second character set provided in an embodiment of the present application;

[0037] Figure 15 A schematic diagram of the structure of a display device for applying localized translation provided in an embodiment of the present application;

[0038] Figure 16 A schematic diagram of the structure of the server in the embodiment of the present application;

[0039] Figure 17 This is a structural diagram of a terminal device in an embodiment of the present application. DETAILED DESCRIPTION

[0040] Localization and translation play a crucial role in the process of application expansion and internationalization. Global distribution means that applications need to adapt to the languages and cultures of different countries and regions. Only through localization and translation can applications be understood by users in other regions. The embodiments of this application do not limit the type of application; the application can be a game, a video player, or a search engine. For ease of understanding, the embodiments of this application use a game as an example.

[0041] In related technologies, the translation process for app localization involves collecting language text, which is extracted directly from the application client. After the text is collected, it is translated. Once the translation is complete, the translated text is imported into the application client. After the translated text is imported into the application client, testers need to test the application client. Once the test is complete, the application localization is complete. However, related technologies rely solely on language text for translation. However, most applications are presented visually. Users use controllers such as a mouse, keyboard, and touchscreen. This translation process, based solely on language text, fails to take into account the information presented visually. Consequently, related technologies often encounter numerous errors during the translation process. Furthermore, after the application is localized, due to language differences, the translated text may not display properly once imported into the client. These issues require testers to test the application client, which is labor-intensive.

[0042] In view of the above problems, this application provides a method, device and related products for displaying application localization translations, with the purpose of reducing the labor cost when testing application clients. In the technical solution provided in this application, several terms that may be involved in the embodiments below are first explained.

[0043] App localization is the process of adapting an app to meet the linguistic, cultural, and technical requirements of a specific target audience. It involves translating the app's text, audio, and graphics into the target language, adapting cultural references and idioms to suit the target audience, and ensuring the app's suitability for the target market.

[0044] Localization Quality Assurance (LQA) testing involves importing translated text into an application. Localization personnel then assess the application's scenarios and display conditions to determine if the translation contains any semantic, display, or other issues, and then make corrections.

[0045] Controls, also known as components or building blocks, are reusable functional modules within software, such as complex menus, tables, reports, or user interfaces. They are widely applicable across various software types. If software is like a car, then controls are its instrumentation, engine, and even its exterior. Controls also encapsulate data and methods, and can have their own properties and methods.

[0046] Optical Character Recognition (OCR) is the process by which electronic devices, such as scanners and digital cameras, examine characters, determine their shapes by detecting patterns of light and dark, and then use character recognition methods to translate these shapes into computer text.

[0047] The execution subject of the display method of the application localization translation provided in the embodiment of the present application can be a terminal device. For example, the translated application screen and the first text set corresponding to the application screen are obtained on the terminal device. As an example, the terminal device can specifically include but is not limited to a mobile phone, a computer, an intelligent voice interaction device, a smart home appliance, a car terminal, an aircraft, etc. In addition, the execution subject of the display method of the application localization translation provided in the embodiment of the present application can also be a server, that is, the first text set and the second text set can be compared on the server to obtain a comparison result. If the application is running on the terminal device, the server can receive the translated application screen and the first text set corresponding to the translated application screen sent by the terminal device. For the sake of convenience, the following description uses the terminal device as the execution subject, but the execution subject in the embodiment of the present application can be a terminal device, a server, or a terminal device and a server, and there is no limitation on the implementation subject of the technical solution of the present application.

[0048] Figure 1 This diagram illustrates an exemplary scenario architecture for a display method using localized translation, including a server and various terminal devices. Figure 1 The server shown can be a standalone physical server, a server cluster composed of multiple physical servers, or a distributed system. Furthermore, the server can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0049] Figure 2 This is a flow chart of a method for displaying localized translation of an application provided in an embodiment of the present application. Figure 2 The method for displaying the localized translation of the application includes:

[0050] S201: Obtain a translated application screen and a first text set corresponding to the translated application screen.

[0051] The terminal device obtains the translated application screen and the first text set corresponding to the translated application screen. The text in the first text set is obtained by localizing the original text in the application screen to be translated. The application screen to be translated is the application screen before the application is localized. For example, the application is a game, and the language used in the game before localization is English, and the language of the original text in the application screen to be translated is English. The language of the text in the first text set is different from English. The translated application screen is sent to the terminal device by the application client.

[0052] The text in the first text set can be the text in the translated application screen control, or it can be not in the control of the application screen. The following description assumes that the text in the first text set is the text in the control and the application is a game. Figure 3 This is a schematic diagram of a control in an application screen provided by this application. Figure 3 In the game, character A and character B are having a conversation. The dialog box above character A and the dialog box above character B are both controls in the application screen. Figure 4 This is a schematic diagram of another control in an application screen provided by this application. Figure 4 The figure shows character A and his package. The first slot in character A's package contains a potion, which is also a control in the application screen. The first text set corresponding to the application screen includes text corresponding to the control in the application screen.

[0053] The translated application screen and the first text set can be obtained by a test device running the localized translated application client. In one possible implementation, a data acquisition plug-in can be pre-installed in the localized translated application client, and the translated application screen and the corresponding first text set can be obtained through the data acquisition plug-in during the running of the translated application. Figure 5 This is a schematic diagram of the operation of a data acquisition plug-in provided in this application. The data acquisition plug-in can be controlled by virtual buttons. In one possible implementation, the virtual button can be a transparent floating button. Clicking the floating button can expand the corresponding function button. Figure 6 This is a diagram of the function buttons after the floating button is expanded. Testers can click "Collect Data" to initiate data collection, click "End Test" to stop data collection, and click "Upload Data" to send the collected data to the terminal device.

[0054] In response to the data collection instruction, the test device running the application client takes screenshots of the application client at preset time intervals to obtain alternative screens. The test device running the application client can locate all controls within each application screen. The data acquisition plug-in can determine whether the controls in the translated application client contain text. If the controls contain text, the data acquisition plug-in uses the text corresponding to the controls to generate a first text set corresponding to the alternative screens.

[0055] The data acquisition plug-in can also determine changes in the first text sets corresponding to multiple alternative screens. If the first text set corresponding to the alternative screen obtained at the target time is different from the first text set corresponding to the alternative screen obtained at the previous time, the alternative screen obtained at the target time is used as the translated application screen. In one possible implementation, the data acquisition plug-in obtains 500 alternative screens and the first text sets corresponding to the alternative screens. These 500 alternative screens can be saved according to the time when the pixel capture is performed. Since the first text set corresponding to the first alternative screen in the 500 alternative screens is the first to appear, the first alternative screen can be directly determined as the translated application screen. The first text sets corresponding to the first 10 alternative screens of the 500 alternative screens are all the same, and the first text set corresponding to the 11th alternative screen is different from the first text set corresponding to the 10th alternative screen. In this case, the 11th alternative screen can be determined as the translated application screen. Upon receiving the instruction to upload data, the data acquisition plug-in can send the translated application screen and the corresponding first text set determined in the 500 alternative screens to the terminal device.

[0056] The method provided in the present application obtains data by running a test device of a translated application client. When the test device of the translated application client obtains data, the first thing obtained is the alternative screen and the first text set corresponding to the alternative screen. The test device of the translated application client determines the translated application screen in the alternative screen. If the first text set corresponding to the alternative screen is the same, then the test device of the translated application client only needs to send the determined translated application screen and the corresponding first text set. The texts in the multiple first text sets sent by the test device of the translated application client to the terminal device are not completely identical or completely different. In the test device of the translated application client, multiple alternative screens and the corresponding first text sets are screened, and finally the screened translated application screens and the corresponding first text set are sent to the terminal device. When sending data, it is not necessary to send all the data, which increases the data transmission speed and reduces the resources occupied when transmitting data. Since the texts in each first text set received by the terminal device are not completely identical or completely different, the speed of testing the localized translation of the application can be increased.

[0057] S202: Perform text recognition on the translated application screen to obtain a second text set corresponding to the translated application screen.

[0058] The terminal device performs text recognition on the translated application screen to obtain a second text set corresponding to the translated application screen. This application does not limit the method of text recognition. In one possible implementation, text recognition can be optical character recognition (OCR). The second text set includes text displayed in the application client after the first text set is imported into the application client.

[0059] The test performed on the translated application client is mainly to determine whether the first text set corresponding to the translated application screen is displayed normally in the application client. In one possible implementation, the terminal device performs optical character recognition scanning on the translated application screen to obtain the second text set corresponding to the translated application screen.

[0060] S203: Compare the first character set and the second character set to obtain a comparison result.

[0061] The terminal device can compare the first text set corresponding to the translated application screen with the second text set to obtain a comparison result. The first text set is obtained by a translator or a translation device translating the original text of the application screen to be translated. The second text set is the text in the first text set obtained through text recognition and displayed in the application client when the application client is running.

[0062] In one possible implementation, the comparison between the first text set and the second text set corresponding to the translated application screen may be a comparison of the number of characters. The terminal device compares the number of characters in the first text set and the number of characters in the second text set corresponding to the translated application screen to obtain a first comparison result of the translated application screen.

[0063] In one possible implementation, the comparison of the number of characters may be a comparison of the number of all characters in the first character set with the number of all characters in the second character set. For example, if the first character set contains 100 characters and the second character set contains 80 characters, the terminal device may obtain a first comparison result that the first character set contains 20 more characters than the second character set.

[0064] In another possible implementation, the comparison of the number of characters can be carried out item by item. There are multiple character entries in the first character set, and corresponding character entries in the second character set. The terminal device can compare the number of characters of the character entries with corresponding relationships in the first character set and the second character set. For example, there is a control A in the translated application screen, and the corresponding character entry of control A is "The sun is close to the mountains". After importing the first character set into the application client, the text of control A displayed when the application client runs is "The sun is closet". The terminal device obtains the second character set through text scanning, and the character entry corresponding to control A in the second character set is "The sun is close t". The terminal device can compare the number of characters of the character entries corresponding to control A in the first character set and the second character set to obtain the first comparison result.

[0065] In one possible implementation, the comparison of the first character set and the second character set corresponding to the translated application screen can be a comparison of languages. The word "Hello" exists in the first character set corresponding to the translated application screen. After importing the first character set into the application client, the word "你好" exists in the second character set obtained by text recognition of the application client. The languages in the first character set and the second character set corresponding to the translated application screen are different. The language in the second character set is Chinese, and the language in the first character set is English. At this time, the difference in languages can be displayed through the second comparison result.

[0066] In one possible implementation, the comparison of the first character set and the second character set corresponding to the translated application screen can be a comparison of display errors. The traditional Chinese character "幫幫我" exists in the first character set corresponding to the translated application screen. After importing the first character set into the application client, the text recognition of the translated application screen results in the second character set containing "口口我". There are display errors in the characters in the second character set compared to the characters in the first character set corresponding to the translated application screen. The traditional Chinese character "幫" in the first character set cannot be displayed correctly in the translated application client. In the translated application client, the traditional Chinese character "幫" is displayed as the error garbled character "口".

[0067] S204: If the comparison result shows that there are differences between the first character set and the second character set at least in one of the aspects of the number of characters, language, or display errors, then based on the aspect with differences shown in the comparison result, modify the display effect of the characters in the first character set in the application client.

[0068] The difference in the number of characters between the first character set and the second character set can be that the number of characters is different. For example, the number of characters in the first character set is more than that in the second character set, or the number of characters in the first character set is less than that in the second character set. The difference in the language type between the first character set and the second character set can be that the languages are different. For example, the language of the characters in the first character set is Chinese, and the language of the characters in the second character set is English. The difference in the display error level between the first character set and the second character set can be that the translated application client displays the characters incorrectly. For example, the character "我" in the first character set is displayed as a garbled character "口" in the translated application client. If the comparison result shows that there is a difference in at least one of the number of characters level, language type level, or display error level between the first character set and the second character set, the terminal device modifies the display effect of the characters in the first character set in the application client based on the level with the difference shown in the comparison result.

[0069] In a possible implementation manner, if the first comparison result shows that there is a difference in the number of characters between the first character set and the second character set, the terminal device modifies the display effect of the characters in the first character set in the application client based on the level with the difference shown in the comparison result. For example, the first comparison result shows that the number of characters in the second character set is less than the number of characters in the first character set, and the application client does not fully display the characters in the first character set. At this time, the modifier or the modification device can expand the size of the control used to display the characters in the translated application screen according to the first comparison result, and the expanded size of the control can adapt to the number of characters in the first translated character set, so as to display completely.

[0070] The comparison of the first character set and the second character set corresponding to the translated application screen provided by this application can be a comparison of the number of characters, and the obtained first comparison result can reveal whether the control size in the translated application client is appropriate. If the control size is too small and the characters in the first character set cannot be fully displayed, the first comparison result can guide the modification of expanding the control size of the application client. The modified control can fully display the characters in the first character set. Through the first comparison result, when a display error occurs in the translated game client, the application screen with the error and the control with the error can be located faster, reducing the troubleshooting time for the control with the error. Through the first comparison result, the modification of the control size in the application client can be guided more precisely.

[0071] In a possible implementation, if the second comparison result shows that there are differences at the language level between the first text set and the second text set. Specifically, the language of the second text set is Chinese, and the language of the first text set is English. If the second comparison result shows that the languages of the first text set corresponding to the translated application screen and the second text set are different, the terminal device obtains the storage address of the text corresponding to the translated application screen in the application client, and imports the first text set corresponding to the translated application screen into this storage address. The second comparison result shows that the languages of the second text set and the first translated text set are different, which proves that the first text set is imported to the wrong position during the process of importing the first text set into the application client. At this time, the terminal device can obtain the storage address of the text corresponding to the translated application screen in the application client, and import the first translated text set corresponding to the translated application screen into this storage address.

[0072] The method provided in this application can compare the first text set and the second text set corresponding to the translated application screen in terms of languages. The obtained second comparison result can show whether the first text set is correctly imported into the application client, and errors in the import aspect can be detected through the second comparison result. Detecting the import of the first text set is much more complex than comparing languages. The method provided in this application can more simply determine whether the import of the first text set is correct, simplifying the steps of application localization translation.

[0073] In a possible implementation, if the third comparison result shows that there are differences at the display error level between the first text set and the second text set. Specifically, the traditional Chinese character "幫" in the first translated text set cannot be normally displayed in the translated application client. In the translated application client, the traditional Chinese character "幫" is displayed as the incorrect garbled character "口". If the third check result indicates that the text in the second text set has a display error, a patch for correctly displaying the text in the first translated text set is installed for the application client.

[0074] The method provided in this application can compare the first text set and the second text set corresponding to the translated application screen in terms of display errors. The obtained third comparison result can show whether the application client can normally display the text in the first text set. Guided by the third comparison result to install a patch for correctly displaying the text in the first text set for the application client can more conveniently update the application client and more quickly repair the errors that occur in the application client.

[0075] The method provided in an embodiment of the present application obtains a translated application screen and a first text set corresponding to the application screen. The text in the first text set is obtained by performing a localized translation of the original text in the application screen to be translated. Text recognition is performed on the translated application screen to obtain a second text set corresponding to the translated application screen. The second text set includes the text displayed on the application client after the first text set is imported into the application client. The method provided in the present application compares the first text set with the second text set to obtain a comparison result. The comparison can reveal differences between the first and second text sets in at least one of the following: text quantity, language, or display errors. The method provided in the present application can automatically test the application client. By comparing the first and second text sets, problems with the localized translation text quantity, language, and display errors in the application client can be quickly detected. Because the second text set is obtained by performing text recognition on the translated application screen, the method provided in the present application can track the actual display effect of the localized translation in the application, resulting in more accurate test results. Furthermore, the method provided in the present application does not require the participation of testers during the application client testing process, significantly reducing labor costs while obtaining accurate test results. In addition, the method provided in the present application can adaptively modify the display effect of the characters in the first character set in the application client according to the problems shown in the comparison results, so that the modification of the display effect is more targeted.

[0076] The text in the first text set is obtained by localizing the original text in the application screen to be translated. In order to obtain a more accurate first text set, an embodiment of the present application provides a method for translating the application screen to be translated. The terminal device first obtains the original text set corresponding to the application screen to be translated, and the application screen to be translated obtained by the terminal device carries a timestamp. Based on the timestamp of the application screen to be translated, the terminal device determines at least one of at least one application screen to be translated before the application screen to be translated and at least one application screen to be translated after the application screen to be translated as a reference application screen. Based on the reference application screen and the application screen to be translated, the terminal device translates the original text set corresponding to the application screen to be translated to obtain the first text set.

[0077] Specifically, the terminal device can obtain multiple application screens to be translated through the application client to be translated, and the application screens to be translated have corresponding original text sets. When translating the original text set, the translator or translation device can refer to the information in the application screen to be translated. In one possible implementation, a leader is giving instructions in the application screen to be translated. In this case, the translator or translation device can adopt a stronger tone and use stronger words when translating the original text set. In another possible implementation, the third-person pronouns used in the language corresponding to the original text set are gender-neutral. In this case, the dialog box (control) in the application screen to be translated is a woman speaking, and the third person indicated in the dialogue sentence of this woman is also a woman in the application screen to be translated. At this time, combined with the information in the application screen to be translated, the translator or translation device can translate the third-person pronoun in the original text set as "she".

[0078] The terminal device can also determine at least one of at least one application screen to be translated before the application screen to be translated and at least one application screen to be translated after the application screen to be translated as a reference application screen based on the timestamp of the application screen to be translated. In one possible implementation, for character A, in the application screen to be translated before the timestamp of the application screen to be translated, that is, the reference application screen, character A is walking on the road normally. However, in the application screen to be translated, character A triggered a trap and was severely injured. Character A has a corresponding dialog box (control) in the application screen to be translated. At this time, when translating the original text set corresponding to the application screen to be translated, the dialog box corresponding to character A in the original text set can be translated using a more surprised and panicked tone and wording.

[0079] When translating the original text set corresponding to the application screen to be translated, the method provided by the present application can determine at least one of at least one application screen to be translated before the application screen to be translated and at least one application screen to be translated after the application screen to be translated as a reference application screen based on the timestamp of the application screen to be translated. , The original text set can be translated more accurately in combination with the information in the reference application screen. Multiple application screens to be translated and the corresponding original text sets are saved using timestamps. After determining the application screen to be translated, the reference application screen can be determined. Combining the information in the reference application screen can speed up the translation of the original text set corresponding to the application screen to be translated. When translating the localized application, with the assistance of information in multiple application screens to be translated, a first text set that is more in line with the context can be obtained, thereby reducing errors in the translation process of the localized application.

[0080] The translation process for application localization is not a one-time process, and the application itself will also undergo version upgrades. During the application version upgrade process, the text corresponding to the same control in the same translated application screen will change. In one possible implementation, a translated application screen exists in the first version of the application client, and character A has a corresponding dialog box (control) in the translated application screen. The dialog box corresponding to character A has ten texts, and each text has a corresponding entry ID. The text with entry ID 10 is "Goodbye". The same translated application screen exists in the second version of the application client, and a corresponding dialog box (control) exists in the translated application screen. The dialog box corresponding to character A has eleven texts, and each text has a corresponding entry ID. The text with entry ID 11 is "Let's have a drink next time we meet." The first ten texts are the same as the text in the first version of the application client. Since the application client has undergone a version upgrade, specifically by adding new text entries, the corresponding translated text should also be updated accordingly.

[0081] The terminal device can generate a first identification ID using the language of the translated application screen corresponding to the first text set and the entry ID corresponding to the application screen translated by the first version of the application client. The terminal device obtains a third text set, and the third text set and the first text set are translated from the same application screen to be translated in different versions of the application client. A first verification ID is generated using the language corresponding to the third text set and the entry ID corresponding to the application screen translated by the second version of the application client. If the first verification ID is different from the first identification ID, the text entry portion corresponding to the entry ID in the third text set is imported into the application client.

[0082] In one possible implementation, the controls on the translated application screen in the first version of the application client correspond to ten characters, and the entry IDs of these ten characters are AJ respectively. The character type corresponding to the first character set is Chinese. The terminal device uses the entry ID "J" and the corresponding Chinese identifier zh to generate the first identification ID "zhJ". The same control in the same translated application screen in the second version of the application client corresponds to eleven characters, and the entry IDs of these eleven characters are AH respectively. The character type corresponding to the third character set is also Chinese. The terminal device uses the entry ID "H" and the corresponding Chinese identifier zh to generate the first verification ID "zhH". The first verification IDs generated for the first ten of the eleven characters corresponding to the same control in the same translated application screen in the second version of the application client can all be found in the first version of the application client. However, the first verification ID of "zhH" cannot be generated using the first version of the application client. The first verification ID "zhH" is different from any first identification ID. At this time, the terminal device can import the translation part corresponding to the entry ID "H" in the third character set into the application client.

[0083] The method provided in the present application fully takes into account the situation where the text in the application increases as the application version is updated. The method provided in the present application generates a first identification ID using the text type corresponding to the first text set and the entry ID of the control in the application screen after translation in the first version of the application client. After the application version is updated, the first verification ID is generated using the text type corresponding to the third text set and the entry ID of the control in the application screen after translation by the second version of the application client. The method provided in the present application can determine the translated part that needs to be imported into the application client through the first verification ID and the first identification ID. The method provided in the present application does not need to re-import all the translated content into the application client when the application version is updated. In the translation process of application localization, the update time of the translated content when the application version is updated is reduced.

[0084] There is another situation in the translation process of application localization, which is the modification of text. In another possible implementation, there is a character A in the translated application screen of the first version of the application client, and the character A in the translated application screen corresponds to a dialog box (control). The dialog box corresponding to character A has ten texts, and each text has a corresponding entry ID. The text with entry ID 1 is "Hello". The same translated application screen exists in the second version of the application client, and the character A in the translated application screen corresponds to a dialog box (control). The dialog box corresponding to character A also corresponds to ten texts, and each text has a corresponding entry ID. The text with entry ID 1 is "Hello, character B". The remaining nine texts are the same as the text in the first version of the application client. Since the application client has undergone a version upgrade, specifically the content of the text has been modified, the corresponding translated text should also be upgraded accordingly.

[0085] The terminal device can generate a second identification ID using the text in the original text set, the language corresponding to the first text set, and the entry ID corresponding to the translated application screen in the first version of the application client. The terminal device generates a second verification ID using the text in the third text set, the language corresponding to the third text set, and the entry ID corresponding to the translated application screen in the second version of the application client. If the first verification ID is the same as the first identification ID and the second verification ID is different from the second identification ID, the terminal device imports the text entry portion corresponding to the entry ID in the third text set into the application client.

[0086] In one possible implementation, the controls on the translated application screen in the first version of the application client correspond to ten texts, and the entry IDs of these ten texts are AJ respectively. The language corresponding to the first text set is Chinese, and the text with entry ID "A" in the first text set is "Hello". The terminal device generates a second identification ID "zhA Hello". The same control on the same translated application screen in the second version of the application client also corresponds to ten texts, and the entry IDs of these ten texts are AJ respectively. The language corresponding to the third text set is also Chinese, and the text with entry ID "A" in the third text set is "Hello, character B". The terminal device generates a second verification ID "zhA Hello, character B". The second verification IDs corresponding to the remaining nine texts of the same control on the same translated application screen in the second version of the application client can all be found in the first version of the application client with the same second identification ID. The terminal device can import the translated part corresponding to the entry ID "A" in the third text set into the application client.

[0087] The method provided in the present application fully takes into account the situation of text modification in the application as the application version is updated. The method provided in the present application generates a second identification ID using the text in the first text set, the language corresponding to the first text set, and the entry ID of the control in the application screen after the first version of the application client translates it. After the application version is updated, the text in the third text set, the language corresponding to the third text set, and the entry ID of the control in the application screen after the second version of the application client translates it generates a second verification ID. The method provided in the present application can determine the translated part that needs to be imported into the application client through the second verification ID and the second identification ID. When the application version is updated, especially when the text in the application is modified, the method provided in the present application can confirm the modification of the text during the application version update through the second identification ID and the second verification ID. In the translation process of application localization, the update time of the translated content is reduced when the application version is updated.

[0088] In a possible implementation, the terminal device can receive and save the translated application screens corresponding to different versions of the application client and the first text set corresponding to the controls in the translated application screens. Figure 7 A schematic diagram of a list of corresponding data for different versions of application clients provided in this application. Figure 7 On the far left are the different versions of the application client. "#cos-iOS-088", "#cos-android-077", "#cos-android-0770" and "#cos-iOS-080" are the version numbers corresponding to different application versions. Each version of the application client has a corresponding language, en corresponds to English, zh corresponds to Chinese, and ja corresponds to Japanese. Each different application version will receive a corresponding number of translated application screens and a corresponding first text set. The terminal device corresponding to the application client with version number "#cos-iOS-088" received 50 translated application screens, and the first text sets corresponding to the 50 translated application screens included a total of 500 text entries. The test time for the data corresponding to the application client with version number "#cos-iOS-088" is 2023-07-01. In the data corresponding to the application client with version number "#cos-iOS-088", the comparison results show that 6 data items have defects. Click the View button at the end to view the defective data or view all data. Click the Delete button to delete the data corresponding to the application client with version number "#cos-iOS-088".

[0089] Clicked Figure 7 Click the View button to view the data in detail. Figure 8 This is a detailed display diagram of an application screen provided by this application. The version corresponding to the viewed data can be displayed at the top of the interface. Figure 8 The corresponding application version is ***. Application version *** corresponds to a total of 16 translated application screens. Figure 8 In the APP, the translated app screens are represented by solid rectangles. Four of the 16 translated app screens are problematic. The 16 translated app screens are displayed by timestamp. When the cursor is moved over a screen, the first text set of the corresponding screen is displayed. Problematic screens can be highlighted with a rectangular frame. By checking the "Detail problematic screens" checkbox, the interface will only display the problematic screens highlighted with a rectangular frame.

[0090] Figure 9 A schematic diagram of the comparison results corresponding to a translated application screen provided in this application. The comparison result will show which translated application screen has a problem, and the problem is ****. The comparison result will also show the problematic translated application screen. The solid rectangle in the figure represents the problematic translated application screen. The corresponding application version is *** and the corresponding language is Chinese on the right side of the problematic translated application screen. The corresponding first and second text sets are displayed on the right side of the translated application screen. The defect situation and the cause of the problem will also be displayed on the right side of the translated application screen. The defect situation and the cause of the problem can be used to guide the modification of the application client.

[0091] Figure 10 This is a schematic diagram of the comparison results corresponding to another translated application screen provided by this application. Figure 10 There are no detailed screenshots of the problem. Figure 10 The comparison results for the translated app screens shown are generated by comparing the text in the first text set with the text in the second text set for all translated app screens in the selected version. The leading "en" indicates English translation, and "ja" indicates Japanese translation. The entry is the text entry with the problem, and the corresponding translated app screen is displayed on the right. The specific problem and possible cause are displayed below the corresponding entry.

[0092] Figure 11A flow chart of obtaining a translated application screen provided for the present application. A data acquisition plug-in is built into the application client, and the data acquisition plug-in can obtain all controls of the translated application screen and the text corresponding to the controls when it is started. The test device running the application client can then determine the text changes of each frame of the application image update, and take screenshots and save images of the application screen where the text changes. The test device running the application client can associate the translated application screen with the corresponding first text set. Upon receiving the instruction to upload data, the test device running the application client uploads the data to the background. The uploaded data includes the translated application screen, the first text set corresponding to the translated application screen, the association information between the first text set and the translated application screen, the version number of the application client, the test language and the test version, etc.

[0093] Figure 12 This is an architectural diagram of the application localization translation provided in this application. The terminal device first receives data and collects reports from the plug-in. The terminal device then stores the received data in a database. The terminal device performs application localization translation based on the stored data in the database. Application screens, text collections, and comparison reports can be displayed through a web front-end.

[0094] In one possible implementation, the user can view any translated application screen and the corresponding first text set through the web front-end. Since the translated application screen and the first text set have a corresponding relationship, the terminal device can use the corresponding relationship between the application screen and the first text set to establish an indexing strategy. The terminal device binds the translated application screen and the first text set corresponding to the translated application screen, and uses the corresponding relationship between the translated application screen and the first text set to establish at least one of the following indexing rules: using the translated application screen to query the first text set, using the first text set to query the translated application screen, and using the text entries in the first text set to query the translated application screen. For example, the terminal device can establish an index pic_id:set(sentent1, sentent2,...), where pic_id corresponds to the translated application screen, set() represents the first text set corresponding to the translated application screen, sentent1 and sentent2 are text entries in the first text set, and the index can directly index the corresponding first text set through the translated application screen. For another example, the terminal device may create an index set(sentent1, sentent2, ...):pic_id, which can directly index the corresponding translated application screen through the first text set. For another example, the terminal device may create an index sentent1:pic id, which can directly index the corresponding translated application screen through the text entry.

[0095] The method provided in the present application is to establish an index based on the correspondence between the translated application screen and the first text set corresponding to the translated application screen, and to establish an index based on the indexing rules. Indexing can be performed through any one of the translated application screen, the first text set, and the text entry. The bidirectional index established in the embodiment of the present application can accurately and quickly locate the other two items as long as any one of the application screen, the first text set, and the text entry is used. The established bidirectional index can make the testing of the application client faster.

[0096] When testing localization quality assurance, testers simply view the translated app screens in timestamp order using the web front-end and check the first text set corresponding to the translated screens. This eliminates the need for traditional localization quality assurance testing. Using the web front-end to view the app screens in timestamp order can reduce the time required for localization quality assurance testing.

[0097] In one possible implementation, the application is a game. Figure 13 A schematic diagram of the principle of displaying an application localization translation provided in an embodiment of the present application, wherein the server receives data sent by a test device, collects data reported by a data acquisition plug-in, and stores the data reported by the data acquisition plug-in in a database. The server can process the data in the database. For example, it can manage the first text set and the translated application screen based on the data in the database; it can also check the correctness of the text in the first text set; it can determine whether there are additions, deletions, and changes in the translation of the text set corresponding to the same translated application screen of different versions of the application client; it can also determine whether the additions, deletions, and changes in the translation are effective in the application; it can generate LQA test cases; and it can also retrieve images and text based on established index rules. The processing of the data in the database by the server can be displayed through the web front end. Figure 14 A schematic diagram of the comparison results of a first text set and a second text set provided in an embodiment of the present application, wherein each row in the figure corresponds to a different version of an application client, en indicates that the language is English, the text corresponds to the text in the first text set, the upload time is the time when the translated application screen and the corresponding first text set are uploaded to the server, the number of associated screens refers to the number of application screens associated with the text, and the ORC matching status indicates the display status of the text in the associated application screen. A match indicates normal display, and a mismatch indicates abnormal display.

[0098] Based on the display method of application localization translation provided in the above embodiment, this application also provides a display device of application localization translation. Figure 15 Provide explanation. Figure 15This is a schematic diagram of the structure of a display device for application localization translation provided in an embodiment of the present application. Figure 15 The display device 1500 for applying localized translation includes:

[0099] Receiving module 1501, configured to obtain a translated application screen and a first text set corresponding to the translated application screen, where the text in the first text set is obtained by localizing the original text in the application screen to be translated; the translated application screen is sent by the application client;

[0100] a text recognition module 1502 configured to perform text recognition on the translated application screen to obtain a second text set corresponding to the translated application screen; the second text set includes text displayed in the application client after the first text set is imported into the application client;

[0101] A comparison module 1503 is configured to compare the first character set with the second character set to obtain a comparison result;

[0102] Modification module 1504, if the comparison result shows that there is a difference between the first character set and the second character set in at least one of the aspects of the number of characters, language or display error, is used to modify the display effect of the characters in the first character set in the application client based on the level with differences shown in the comparison result.

[0103] In a possible implementation, the comparison module is specifically configured to:

[0104] Comparing the number of characters in the first character set and the number of characters in the second character set corresponding to the translated application screen to obtain a first comparison result of the translated application screen;

[0105] The modification module is specifically used for:

[0106] If the first comparison result shows that the number of characters in the first text set corresponding to the translated application screen is different from the number of characters in the second text set, then based on the difference in the number of characters, the size of the control for displaying the characters in the first translated text set in the translated application screen is modified to a size that is suitable for the number of characters in the first translated text set.

[0107] In a possible implementation, the comparison module is specifically configured to:

[0108] performing a language comparison between the language of the first character set and the language of the second character set corresponding to the translated application screen to obtain a second comparison result of the translated application screen;

[0109] The modification module is specifically used for:

[0110] If the second comparison result shows that the language of the first character set corresponding to the translated application screen is different from the language of the second character set, obtaining a text storage address corresponding to the translated application screen based on the difference in languages;

[0111] Importing the first character set corresponding to the translated application screen into the text storage address.

[0112] In a possible implementation, the comparison module is specifically configured to:

[0113] performing a display error comparison between the characters in the first character set and the characters in the second character set corresponding to the translated application screen to obtain a third comparison result of the translated application screen;

[0114] The modification module is specifically used for:

[0115] If the third comparison result shows that the characters in the second character set are displayed incorrectly, a patch for correctly displaying the characters in the first character set is installed for the application client.

[0116] In a possible implementation, the apparatus further includes an index creation module, wherein the index creation module is specifically configured to:

[0117] Binding the translated application screen and the first text set corresponding to the translated application screen;

[0118] At least one of the following indexing rules is established using the correspondence between the translated application screen and the first text set: using the translated application screen to query the first text set, using the first text set to query the translated application screen, and using text entries in the first text set to query the translated application screen.

[0119] In a possible implementation, the apparatus further includes a translation module, wherein the translation module is specifically configured to:

[0120] Obtaining an original text set corresponding to the application screen to be translated, wherein the application screen to be translated carries a timestamp;

[0121] determining, based on the timestamp of the application screen to be translated, at least one of at least one application screen to be translated before the application screen to be translated and at least one application screen to be translated after the application screen to be translated as a reference application screen;

[0122] Based on the reference application screen and the application screen to be translated, the original text set corresponding to the application screen to be translated is translated to obtain the first text set.

[0123] In a possible implementation, the text entry corresponding to the translated application screen has an entry ID, and the apparatus further includes a first determination module, the first determination module being specifically configured to:

[0124] Generate a first identification ID using the language of the first character set corresponding to the translated application screen and the entry ID corresponding to the translated application screen of the first version of the application client;

[0125] Obtaining a third character set, where the third character set and the first character set are obtained by translating the same application screen to be translated in different versions of the application client;

[0126] Generate a first verification ID using the language corresponding to the third character set and the corresponding entry ID in the application screen translated by the second version of the application client;

[0127] If the first verification ID is different from the first identification ID, the text entry portion corresponding to the entry ID in the third text set is imported into the application client.

[0128] In a possible implementation, the text entry corresponding to the translated application screen has an entry ID, and the apparatus further includes a second determination module, the second determination module being specifically configured to:

[0129] generating a second identification ID using characters in the original character set, a language corresponding to the first character set, and an entry ID corresponding to the translated application screen in the first version application client;

[0130] Generate a second verification ID using the characters in the third character set, the language corresponding to the third character set, and the entry ID corresponding to the translated application screen in the second version application client;

[0131] If the first verification ID is the same as the first identification ID and the second verification ID is different from the second identification ID, the text entry portion corresponding to the entry ID in the third text set is imported into the application client.

[0132] In a possible implementation, the data received by the receiving module is sent by a sending module, and the sending module is specifically configured to:

[0133] In response to the instruction to collect data, capturing the screen of the application client at every preset time interval to obtain an alternative screen;

[0134] Obtaining text corresponding to the alternative screen in the application client;

[0135] Generating a first text set corresponding to the candidate screen using the acquired text;

[0136] If the first character set corresponding to the candidate screen obtained at the target time is different from the first character set corresponding to the candidate screen obtained at the previous time, the candidate screen obtained at the target time is used as the translated application screen.

[0137] The following describes the structure of the display device for applying localized translation in terms of server form and terminal device form respectively.

[0138] Figure 16 : This is a schematic diagram of a server structure provided by an embodiment of the present application. The server 900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPUs) 922 (for example, one or more processors) and memories 932, and one or more storage media 930 (for example, one or more mass storage devices) for storing application programs 942 or data 944. Among them, the memories 932 and the storage media 930 can be temporary storage or permanent storage. The program stored in the storage medium 930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 922 can be configured to communicate with the storage medium 930 to execute a series of instruction operations in the storage medium 930 on the server 900.

[0139] The server 900 may also include one or more power supplies 926, one or more wired or wireless network interfaces 950, one or more input and output interfaces 958, and / or one or more operating systems 941, such as Windows Server 2003 or Windows Server 2003R. TM , Mac OS X TM , Unix TM ,Linux TM , FreeBSD TM etc.

[0140] The CPU 922 is configured to execute the following steps:

[0141] Obtaining a translated application screen and a first text set corresponding to the translated application screen, where the text in the first text set is obtained by localizing the original text in the application screen to be translated; the translated application screen is sent by the application client;

[0142] Performing text recognition on the translated application screen to obtain a second text set corresponding to the translated application screen; the second text set includes text displayed in the application client after the first text set is imported into the application client;

[0143] Comparing the first character set and the second character set to obtain a comparison result;

[0144] If the comparison result shows that there is a difference between the first character set and the second character set in at least one of the aspects of the number of characters, language, or display error, then based on the aspect with the difference shown in the comparison result, the display effect of the characters in the first character set in the application client is modified.

[0145] The present application also provides another display device for applying localized translation, such as Figure 17 For ease of explanation, only the parts related to the embodiments of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiments of the present application. The terminal can be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (English full name: Personal Digital Assistant, English abbreviation: PDA), a sales terminal (English full name: Point of Sales, English abbreviation: POS), a car computer, etc., taking the mobile phone as an example:

[0146] Figure 17 The block diagram shows a partial structure of a mobile phone related to the terminal provided in the embodiment of the present application. Figure 15 The mobile phone includes components such as a radio frequency (RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (WiFi) module 1070, a processor 1080, and a power supply 1090. Those skilled in the art will appreciate that Figure 17 The mobile phone structure shown in the figure does not constitute a limitation to the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0147] The following combination Figure 17 A detailed introduction to the various components of a mobile phone:

[0148] RF circuitry 1010 can be used to receive and transmit signals during information transmission or calls. Specifically, it receives downlink information from the base station and transmits it to processor 1080 for processing. It also transmits uplink data to the base station. Typically, RF circuitry 1010 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier (LNA), a duplexer, and more. RF circuitry 1010 can also communicate with the network and other devices via wireless communications. The above-mentioned wireless communications may use any communication standard or protocol, including but not limited to Global System of Mobile Communications (Global System of Mobile communication, English abbreviation: GSM), General Packet Radio Service (English full name: General Packet Radio Service, GPRS), Code Division Multiple Access (English full name: Code Division Multiple Access, English abbreviation: CDMA), Wideband Code Division Multiple Access (English full name: Wideband Code Division Multiple Access, English abbreviation: WCDMA), Long Term Evolution (English full name: Long Term Evolution, English abbreviation: LTE), email, Short Messaging Service (English full name: Short Messaging Service, SMS), etc.

[0149] The memory 1020 can be used to store software programs and modules. The processor 1080 executes the various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function (such as a sound playback function, an image playback function, etc.); the data storage area may store data created based on the use of the mobile phone (such as audio data, a phone book, etc.). In addition, the memory 1020 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state memory device.

[0150] The input unit 1030 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032. The touch panel 1031, also known as a touch screen, can collect user touch operations on or near it (such as operations performed by the user using any suitable object or accessory such as a finger, stylus, etc. on or near the touch panel 1031) and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 1031 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction and detects the signal caused by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 1080. It can also receive commands sent by the processor 1080 and execute them. In addition, the touch panel 1031 can be implemented using various types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch panel 1031, the input unit 1030 may further include other input devices 1032. Specifically, the other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick.

[0151] The display unit 1040 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 1040 may include a display panel 1041. Optionally, the display panel 1041 may be configured in the form of a liquid crystal display (English full name: Liquid Crystal Display, English abbreviation: LCD), an organic light-emitting diode (English full name: Organic Light-Emitting Diode, English abbreviation: OLED), etc. Further, the touch panel 1031 may cover the display panel 1041. When the touch panel 1031 detects a touch operation on or near it, it is transmitted to the processor 1080 to determine the type of touch event. Subsequently, the processor 1080 provides corresponding visual output on the display panel 1041 according to the type of touch event. Although in Figure 15 In the embodiment, the touch panel 1031 and the display panel 1041 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 1031 and the display panel 1041 can be integrated to realize the input and output functions of the mobile phone.

[0152] The mobile phone may also include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 1041 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that the mobile phone can also be configured with, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be described here.

[0153] Audio circuit 1060, speaker 1061, and microphone 1062 provide an audio interface between the user and the phone. Audio circuit 1060 converts received audio data into electrical signals and transmits them to speaker 1061, which then converts them into sound signals for output. Microphone 1062, on the other hand, converts collected sound signals into electrical signals, which are then received by audio circuit 1060 and converted into audio data. The audio data is then processed by processor 1080 and transmitted to, for example, another phone via RF circuit 1010, or stored in memory 1020 for further processing.

[0154] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse the web and access streaming media through the WiFi module 1070. It provides users with wireless broadband Internet access. Figure 15 A WiFi module 1070 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.

[0155] Processor 1080 is the control center of the phone, connecting all parts of the phone using various interfaces and circuits. By running or executing software programs and / or modules stored in memory 1020 and accessing data stored in memory 1020, it executes various phone functions and processes data, thereby collecting data and information about the phone as a whole. Optionally, processor 1080 may include one or more processing units; preferably, processor 1080 may integrate an application processor and a modem processor, where the application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 1080.

[0156] The mobile phone also includes a power supply 1090 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 1080 through a power management system, thereby managing charging, discharging, and power consumption through the power management system.

[0157] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.

[0158] In the embodiment of the present application, the processor 1080 included in the terminal further has the following functions:

[0159] Obtaining a translated application screen and a first text set corresponding to the translated application screen, where the text in the first text set is obtained by localizing the original text in the application screen to be translated; the translated application screen is sent by the application client;

[0160] Performing text recognition on the translated application screen to obtain a second text set corresponding to the translated application screen; the second text set includes text displayed in the application client after the first text set is imported into the application client;

[0161] Comparing the first character set and the second character set to obtain a comparison result;

[0162] If the comparison result shows that there is a difference between the first character set and the second character set in at least one of the aspects of the number of characters, language, or display error, then based on the aspect with the difference shown in the comparison result, the display effect of the characters in the first character set in the application client is modified.

[0163] An embodiment of the present application further provides a computer-readable storage medium for storing program code, wherein the program code is used to execute any one of the implementation methods of the display method of application localization translation described in the aforementioned embodiments.

[0164] An embodiment of the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any one of the implementations of the display method for application localization translation described in the aforementioned embodiments.

[0165] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems and devices can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0166] In the several embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the division of the system is merely a logical function division. In actual implementation, there may be other division methods, such as multiple systems can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0167] The systems described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the objectives of this embodiment as needed.

[0168] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0169] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English full name: Read-Only Memory, English abbreviation: ROM), random access memory (English full name: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program code.

[0170] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for displaying application localization translation, characterized in that: include: Obtaining a translated application screen and a first text set corresponding to the translated application screen, where the text in the first text set is obtained by localizing the original text in the application screen to be translated; The translated application screen is sent by the application client; Performing text recognition on the translated application screen to obtain a second text set corresponding to the translated application screen; the second text set includes text displayed in the application client after the first text set is imported into the application client; Comparing the first character set and the second character set to obtain a comparison result; If the comparison result shows that there is a difference between the first character set and the second character set in at least one of the aspects of the number of characters, language, or display error, then based on the aspect with the difference shown in the comparison result, the display effect of the characters in the first character set in the application client is modified.

2. The method according to claim 1, characterized in that The comparing the first character set and the second character set to obtain a comparison result includes: Comparing the number of characters in the first character set and the number of characters in the second character set corresponding to the translated application screen to obtain a first comparison result of the translated application screen; If the comparison result shows that there is a difference between the first character set and the second character set in at least one of the aspects of the number of characters, the language, or the display error, then, based on the aspect of the difference shown in the comparison result, modifying the display effect of the characters in the first character set in the application client includes: If the first comparison result shows that the number of characters in the first character set corresponding to the translated application screen is different from the number of characters in the second character set, then based on the difference in the number of characters, the size of the control for displaying the characters in the first translated character set in the translated application screen is modified to a size that is suitable for the number of characters in the first translated character set.

3. The method according to claim 1, characterized in that The comparing the first character set and the second character set to obtain a comparison result includes: performing a language comparison between the language of the first character set and the language of the second character set corresponding to the translated application screen to obtain a second comparison result of the translated application screen; If the comparison result shows that there is a difference between the first character set and the second character set in at least one of the aspects of the number of characters, the language, or the display error, then, based on the aspect of the difference shown in the comparison result, modifying the display effect of the characters in the first character set in the application client includes: If the second comparison result shows that the language of the first character set corresponding to the translated application screen is different from the language of the second character set, obtaining a text storage address corresponding to the translated application screen based on the difference in languages; Importing the first character set corresponding to the translated application screen into the text storage address.

4. The method according to claim 1, wherein The comparing the first character set and the second character set to obtain a comparison result includes: performing a display error comparison between the characters in the first character set and the characters in the second character set corresponding to the translated application screen to obtain a third comparison result of the translated application screen; If the comparison result shows that there is a difference between the first character set and the second character set in at least one of the aspects of the number of characters, the language, or the display error, then, based on the aspect of the difference shown in the comparison result, modifying the display effect of the characters in the first character set in the application client includes: If the third comparison result shows that the characters in the second character set are displayed incorrectly, a patch for correctly displaying the characters in the first character set is installed for the application client.

5. The method according to claim 1, wherein The method further comprises: Binding the translated application screen and the first text set corresponding to the translated application screen; At least one of the following indexing rules is established using the correspondence between the translated application screen and the first text set: using the translated application screen to query the first text set, using the first text set to query the translated application screen, and using text entries in the first text set to query the translated application screen.

6. The method according to claim 1, characterized in that The method further comprises: Obtaining an original text set corresponding to the application screen to be translated, wherein the application screen to be translated carries a timestamp; determining, based on the timestamp of the application screen to be translated, at least one of at least one application screen to be translated before the application screen to be translated and at least one application screen to be translated after the application screen to be translated as a reference application screen; Based on the reference application screen and the application screen to be translated, the original text set corresponding to the application screen to be translated is translated to obtain the first text set.

7. The method according to claim 6, characterized in that The text entry corresponding to the translated application screen has an entry ID, and the method further includes: Generate a first identification ID using the language of the first character set corresponding to the translated application screen and the entry ID corresponding to the translated application screen of the first version of the application client; Obtaining a third character set, where the third character set and the first character set are obtained by translating the same application screen to be translated in different versions of the application client; Generate a first verification ID using the language corresponding to the third character set and the corresponding entry ID in the application screen translated by the second version of the application client; If the first verification ID is different from the first identification ID, the text entry portion corresponding to the entry ID in the third text set is imported into the application client.

8. The method according to claim 7, characterized in that The method further comprises: generating a second identification ID using characters in the original character set, a language corresponding to the first character set, and an entry ID corresponding to the translated application screen in the first version application client; Generate a second verification ID using the characters in the third character set, the language corresponding to the third character set, and the entry ID corresponding to the translated application screen in the second version application client; If the first verification ID is the same as the first identification ID and the second verification ID is different from the second identification ID, the text entry portion corresponding to the entry ID in the third text set is imported into the application client.

9. The method according to any one of claims 1 to 8, characterized in that The method for obtaining the translated application screen and the first text set corresponding to the translated application screen is: In response to the instruction to collect data, capturing the screen of the application client at every preset time interval to obtain an alternative screen; Obtaining text corresponding to the alternative screen in the application client; Generating a first text set corresponding to the candidate screen using the acquired text; If the first character set corresponding to the candidate screen obtained at the target time is different from the first character set corresponding to the candidate screen obtained at the previous time, the candidate screen obtained at the target time is used as the translated application screen.

10. A display device using localized translation, characterized in that: include: a receiving module configured to obtain a translated application screen and a first text set corresponding to the translated application screen, wherein the text in the first text set is obtained by performing a localized translation of the original text in the application screen to be translated; The translated application screen is sent by the application client; a text recognition module configured to perform text recognition on the translated application screen to obtain a second text set corresponding to the translated application screen; the second text set comprising text displayed in the application client after the first text set is imported into the application client; a comparison module, configured to compare the first character set and the second character set to obtain a comparison result; A modification module, which is used to modify the display effect of the characters in the first character set in the application client based on the level of difference shown in the comparison result, if the comparison result shows that there is a difference between the first character set and the second character set in at least one of the levels of character quantity, language or display error.

11. A display device using localized translation, characterized in that: The device includes a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is configured to execute the steps of the method for displaying application localized translation according to any one of claims 1 to 9 according to the instructions in the program code.

12. A computer-readable storage medium, characterized in that The computer-readable storage medium is used to store program codes, and the program codes are used to execute the steps of the display method for applying localized translation according to any one of claims 1 to 9.

13. A computer program product, characterized in that The present invention comprises a computer program or an instruction, which, when executed by an application localization translation device, implements the steps of the display method for application localization translation according to any one of claims 1 to 9.