Method, apparatus, and product for supporting a second language
By generating and sending content data sections of the first and second languages, the problems of translation errors and insufficient multilingual support in the prior art are solved, and the coverage of user experience and search results are improved.
Patent Information
- Application Number
- CN201910892924.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-20
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2039-09-20
AI Technical Summary
The prior art is prone to translation errors when supporting a second language and fails to effectively take into account the user's potential proficiency in multiple languages.
By determining the first and second languages associated with the user, a first and second portion of the content data are generated and the two portions of the content data are sent to the user device. The second part of the content data can select keywords and encode them in a second language, as a hidden part that is not displayed until the user interacts.
Improves the usability of translated content to users who are proficient in multiple languages, and expands the scope of search results by searching for multiple language ranges.
Smart Images

Figure CN112633016B_ABST
Abstract
Description
Field of the Invention
[0001] The field of the present invention is data processing, and more particularly, the present invention relates to methods, apparatus, and products for supporting a second language. Background Art
[0002] The development of the Electronic Discrete Variable Automatic Computer (EDVAC) computer system in 1948 is often cited as the beginning of the computer age. Since then, computer systems have evolved into extremely complex devices. Today's computers are much more complex than earlier systems such as the EDVAC. A computer system typically includes a combination of hardware components and software components, applications, operating systems, processors, buses, memories, input / output devices, etc. With the advancement of semiconductor processing and computer architecture, the performance of computers has been pushed to increasingly higher levels, and computer software has also evolved to be more complex in order to utilize the higher-performance hardware; thus, today's computer systems have more powerful computing capabilities than those of just a few years ago.
[0003] A user device may access content data (e.g., a web page) in a first language. For example, a browser application may set the first language as part of the user profile or part of the settings. Also, for example, the language used by a search engine or other website to provide content may depend on the top-level domain used to access the website. Providing content data in the first language may include translating source data from one language into the first language. This approach may result in translation errors, making the content data difficult to understand. In addition, this approach does not take into account that some users may be proficient in multiple languages. Summary of the Invention
[0004] According to one aspect, the present invention provides a method for supporting a second language, characterized in that the method includes: determining a first language related to a user and a second language related to the user; generating a first part of content data based on the first language; generating a second part of the content data based on the second language; and sending the first part of the content data and the second part of the content data to a user device related to the user.
[0005] Optionally, wherein generating the first part of the content data includes translating source content data into the first language, and wherein generating the second part of the content data includes: selecting one or more keywords; and encoding the one or more keywords in the second language as the second part of the content data.
[0006] Optionally, the selecting one or more keywords includes selecting one or more identified keywords.
[0007] Optionally, the selecting one or more keywords includes selecting one or more keywords based on an abnormal translation.
[0008] Optionally, the generating the second part of the content data based on the second language includes: sending the second part of the content data as a hidden part of the content data, wherein the hidden part of the content data is configured to be displayed in response to a user interaction with the content data.
[0009] Optionally, the interaction includes one or more selections or hovers relative to a part of the content data, wherein the part of the content data is encoded in the first language and corresponds to the hidden part of the content data.
[0010] Optionally, the generating the first part of the content data includes generating a first part of search results based on the first language and a search query, and wherein the generating the second part of the content data includes generating a second part of the search results based on the second language and the search query.
[0011] Optionally, according to one aspect, the present invention provides an apparatus, characterized in that the apparatus includes a computer processor and a computer memory coupled to the computer processor, the computer memory including computer program instructions, the computer program instructions when executed by the computer processor cause the apparatus to perform operations, the operations including: determining a first language associated with a user and a second language associated with the user; generating a first part of content data based on the first language; generating a second part of the content data based on the second language; and sending the first part of the content data and the second part of the content data to a user device associated with the user.
[0012] Optionally, wherein generating the first part of the content data includes translating source content data into the first language, and wherein generating the second part of the content data includes: selecting one or more keywords; and encoding the one or more keywords in the second language as the second part of the content data.
[0013] Optionally, the selecting one or more keywords includes selecting one or more identified keywords.
[0014] Optionally, the selecting one or more keywords includes selecting one or more keywords based on an abnormal translation.
[0015] Optionally, the second part of generating the content data based on the second language includes: sending the second part of the content data as a hidden part of the content data, wherein the hidden part of the content data is configured to be displayed in response to user interaction with the content data.
[0016] Optionally, the interaction includes one or more selections or hovers relative to a part of the content data, wherein the part of the content data is encoded in the first language and corresponds to the hidden part of the content data.
[0017] Optionally, the first part of generating the content data includes generating a first part of search results based on the first language and a search query, and wherein the second part of generating the content data includes generating a second part of the search results based on the second language and the search query.
[0018] According to one aspect, the present invention provides a computer program product, characterized in that the product includes a computer-readable medium, the computer-readable medium includes computer program instructions, wherein when the computer program instructions are executed, they cause the computer to perform operations, the operations including: determining a first language related to the user and a second language related to the user; generating a first part of content data based on the first language; generating a second part of the content data based on the second language; and sending the first part of the content data and the second part of the content data to a user device related to the user.
[0019] Optionally, generating the first part of the content data includes translating source content data into the first language, and wherein generating the second part of the content data includes: selecting one or more keywords; and encoding the one or more keywords in the second language as the second part of the content data.
[0020] Optionally, the selecting one or more keywords includes selecting one or more identified keywords.
[0021] Optionally, the second part of generating the content data based on the second language includes: sending the second part of the content data as a hidden part of the content data, wherein the hidden part of the content data is configured to be displayed in response to user interaction with the content data.
[0022] Optionally, the interaction includes one or more selections or hovers relative to a part of the content data, wherein the part of the content data is encoded in the first language and corresponds to the hidden part of the content data.
[0023] Optionally, the first part of the generated content data includes a first part of search results generated based on the first language and the search query, and wherein the second part of the generated content data includes a second part of the search results generated based on the second language and the search query.
[0024] Supporting a second language may include determining a first language associated with the user and a second language associated with the user; generating a first part of content data based on the first language; generating a second part of the content data based on the second language; and sending the first part of the content data and the second part of the content data to a user device associated with the user.
[0025] The above and other objects, features, and advantages of the present invention can be easily understood from the following more specific description of the exemplary embodiments of the present invention shown in the drawings. Brief Description of the Drawings
[0026] Figure 1 is a schematic diagram of an example system for supporting a second language.
[0027] Figure 2 is a schematic block diagram of a computer configured to support a second language.
[0028] Figure 3 is an example user interface for supporting a second language.
[0029] Figure 4 is an example user interface for supporting a second language.
[0030] Figure 5 is an example user interface for supporting a second language.
[0031] Figure 6 is an example user interface for supporting a second language.
[0032] Figure 7 is a flowchart of an example method for supporting a second language.
[0033] Figure 8 is a flowchart of an example method for supporting a second language.
[0034] Figure 9 is a flowchart of an example method for supporting a second language. Detailed Description
[0035] The following describes an exemplary method, apparatus, and product for supporting a second language according to the present invention with reference to the drawings, starting from Figure 1 and proceeding. Figure 1 shows a network schematic diagram of a system configured to support a second language according to an embodiment of the present invention. Figure 1The system includes a user device 102 and a server 104 that communicate via a network 106. It can be understood that the user device 102 can include a notebook computer, a desktop computer, a mobile device (e.g., a smart phone or a tablet), or other computer devices. The server 104 can include one or more servers 104 that are configured to provide content and / or services (e.g., websites, web content, web applications) to the user device 102. The network 106 can include one or more local area networks (LANs), wide area networks (WANs), cellular networks, personal area networks, wired or wireless networks, or combinations thereof.
[0036] The server 104 can be configured to provide content data (e.g., websites) to the user device 102. To this end, the server 104 can determine a first language associated with a user (e.g., the user device 102) and a second language associated with the user (e.g., the user device 102). Determining the first language and the second language can include receiving a set identifier that is associated with the user device 102 and indicates the first language and the second language; the identifier includes browser settings, application settings, profile settings, or configuration settings. Determining the first language and the second language can include accessing a certain setting, preference, or other configuration option; the setting, preference, or other configuration option is related to a session associated with the user device 102 or a username associated with the user device 102. The determination of the first language or the second language can depend on the top-level domain used to access the server 104. For example, the language corresponding to a specific top-level domain (e.g.,.uk for English,.es for Spanish,.jp for Japanese) can be determined as the first language or the second language. The first language or the second language that is not determined based on the top-level domain can then be determined by another method (e.g., browser settings, username settings, etc.).
[0037] The server 104 can thus generate a first part of the content data based on the first language. Generating the first part of the content data based on the first language can include translating the source content data into the first language. A web page or other source content data can be translated from the text of the source content data into the first language by applying a translation algorithm. For example, assuming the first language is set to English, the text of a web page encoded in Spanish can be translated into English. Thus, generating the first part of the content data can include replacing a part of the source content data (e.g., the untranslated text) with the corresponding part translated into the first language. Generating the first part of the content data can also include accessing a language file or version of the source content data encoded in the first language and encoding a part of the accessed version as the first part of the content data. The language file or version of the source content data can include a translation of the user-generated or manually created source content data into the first language.
[0038] The first part of the content data generated based on the first language may include the first part of the search results generated based on the first language and the search query. For example, a search engine may limit the search scope to data (such as websites) written in a specific language or encoded in a specific language. Thus, the first part of the content data generated based on the first language may include the first part of the search results in response to the search query, where the search query is based on the scope defined by the first language. As another example, a search engine may perform natural language processing on the search query or the searchable data based on the first language.
[0039] After that, the server 104 may generate the second part of the content data based on the second language. For example, in the case where the first part of the content data is generated by translating the source content data into the first language or by accessing the language file of the source content data related to the first language, generating the second part of the content data may include selecting one or more keywords (such as selecting from the text in the source content data) and encoding the one or more keywords in the second language as the second part of the content data.
[0040] For example, selecting one or more keywords may include selecting one or more identified keywords. The selection of the one or more keywords may be based on tags, identifiers, or other encodings (such as markup language tags) in the source content data. The one or more keywords may also be selected based on template elements including one or more keywords. For example, the one or more keywords may be selected as keywords in a title or menu.
[0041] Selecting one or more keywords may also include selecting one or more keywords based on a translation exception. The translation exception may be related to translating the source content data into the first language. The translation exception may include a specific keyword that is not included in a dictionary or other word lists in the first language. A translation algorithm may programmatically or dynamically translate the specific keyword to include it in the first part of the content data (such as using natural language processing). Keywords like this may be considered potentially incorrect translations because the same keyword cannot be found in the keyword list.
[0042] One or more selected keywords may also be encoded in a second language as a second part of the content data. Encoding the one or more selected keywords in a second language may include translating the one or more keywords into the second language. Encoding the one or more selected keywords may also include accessing a version of the source content data encoded in the second language (e.g., the version may be another language file). The language file of the source content data or the version of the source content data may include a user-generated or manually crafted translation of the source content data into the second language. The source content data may be encoded in the second language. Thus, generating the second part of the content data may include encoding one or more keywords in the untranslated content data (e.g., encoding one or more keywords in the untranslated content data in the second language).
[0043] Generating the second part of the content data based on the second language may include encoding the second part of the content data as a hidden part of the content data. The hidden part of the content data may include a part of the content data that is not displayed (e.g., not displayed via a browser) upon initial load or initial rendering. The hidden part of the content data may include: that part that is only displayed if the content data is the object of user interaction. In other words, the hidden part of the content data is configured to be displayed in response to user interaction with the content data.
[0044] For example, the second part of the content data may be encoded such that the display of the second part of the content data is responsive to a selection, hover, click, or other interaction with the content data. According to one example, in the case where the second part of the content data corresponds to one or more identified keywords, the second part of the content data (e.g., one or more identified keywords encoded in the second language) may be displayed in response to user interaction; the interaction involves one or more identified keywords in the content data encoded in the first language.
[0045] In the case where generating the first part of the content data based on the first language includes generating a first part of search results based on the first language and a search query, generating the second part of the content data based on the second language may include generating a second part of search results based on the second language and the search query. Thus, the content data includes a first part of search results based on the first language and a second part of search results based on the second language.
[0046] Server 104 may also send a first portion of the content data and a second portion of the content data to the user device. For example, server 104 may send the content data (e.g., the content data may include a first portion of the content data and a second portion of the content data) as a web page or other content. For example, the content data may include a web page that includes: text data of the source content data translated into a first language (e.g., the first portion of the content data) and one or more keywords encoded and / or translated into a second language (e.g., the second portion of the content data). The content data may also include search results in response to a search query, where a first portion of the search results is based on a first language (e.g., the first portion of the content data), and a second portion of the search results is based on a second language (e.g., the second portion of the content data).
[0047] Figure 1 The exemplary system shown, composed of the arrangement of servers and other devices, is for explanation and not for limiting the present solution. As can be understood by those skilled in the art, data processing systems according to various embodiments of the present invention may include Figure 1 additional servers, routers, other devices, and peer architectures not shown. Networks in such data processing systems may support many data communication protocols, including, for example, Transmission Control Protocol (TCP), Internet Protocol (IP), Hypertext Transfer Protocol (HTTP), Wireless Access Protocol (WAP), Handheld Device Transport Protocol (HDTP), and other data communication protocols that can be envisioned by those skilled in the art. In addition to Figure 1 the hardware platform shown, various embodiments of the present invention may also be implemented on various hardware platforms.
[0048] The enhanced usability enhancement of the product submitted according to the present invention is generally implemented by a computer, i.e., by an automated computing machine. Therefore, for further illustration, Figure 2 a block diagram of an automated computing machine is shown, which includes an exemplary computer 200 configured to have enhanced usability enhancement of the product submitted according to an embodiment of the present invention. Figure 2 The computer 200 of includes at least one computer processor 202 or central processing unit (CPU) and a random access memory 204 (RAM), which is connected to the processor 202 and other components of the computer 200 through a high-speed memory bus 206 and a bus adapter 208.
[0049] Stored in the RAM 204 is an operating system 210. The operating system of a computer having enhanced usability enhancement of the product submitted according to an embodiment of the present invention includes UNIX TM , Linux TM , Microsoft WindowsTM , AIX TM , IBM's iOS TM and other operating systems that those skilled in the art can conceive of. Figure 2 The operating system 210 in the example of Figure 2 is shown in the RAM 204, but many components of such software are also typically stored in non-volatile memory, such as on a data memory 212 such as a disk drive. Also stored in the RAM is a second language support module 214, i.e., a module configured to support a second language according to an embodiment of the present invention.
[0050] Figure 2 The computer 200 of Figure 2 includes a disk drive adapter 216 coupled to the processor 202 and other components of the computer 200 via an expansion bus 218 and a bus adapter 208. The disk drive adapter 216 connects the data memory 212 as a non-volatile data memory to the computer 200. The disk drive adapter of a computer with enhanced usability of product enhancements according to an embodiment of the present invention includes an integrated drive electronics (IDE) adapter, a small computer system interface (SCSI) adapter, and other disk drive adapters that those skilled in the art can conceive of. Non-volatile computer memory can also be implemented as an optical disk drive, an electrically erasable programmable read-only memory (so-called EEPROM or "flash" memory), a RAM drive, etc., such as non-volatile computer memory that those skilled in the art can conceive of.
[0051] Figure 2 The example computer 200 of Figure 2 includes one or more input / output (I / O) adapters 220. The I / O adapter enables user-oriented input / output through, for example, software drivers, computer hardware for controlling output to a display device such as a computer display screen, and user input from user input devices 222 such as a keyboard and a mouse. Figure 2 The example computer 200 of Figure 2 includes a video adapter 224, which is an example of an I / O adapter specifically designed for graphical output to a display device 226 (such as a display screen or a computer monitor). The video adapter 224 is connected to the processor 202 via a high-speed video bus 228, a bus adapter 208, and a front-side bus 230; the front-side bus 230 is also a high-speed bus.
[0052] Figure 2Exemplary computer 200 includes a communication adapter 232 for data communication with other computers and for data communication with a data communication network. Such data communication can be performed serially, which can be connected through an RS-232 interface, through an external bus such as a Universal Serial Bus (USB), through a data communication network such as an IP data communication network, and / or through other means conceivable to those skilled in the art. One computer sends data communication to another computer directly or through a data communication network, and the communication adapter implements it at the hardware level of the data communication. Examples of communication adapters of computers with enhanced usability of product enhancements according to embodiments of the present invention include a modem for wired dial-up communication, an Ethernet (IEEE 802.3) adapter for wired data communication, and an 802.11 adapter for wireless data communication.
[0053] Communication adapter 232 is communicatively coupled to network 106, and network 106 also includes one or more user devices 102.
[0054] Figure 3 An example user interface 300 for supporting a second language according to an embodiment of the present invention is shown. User interface 300 includes a language setting 302 that displays a first language and a second language (e.g., determined by server 104). In this example, the first language is determined to be English and is displayed by the flag of the United States, while the second language is determined to be Spanish and is displayed by the flag of Spain. User interface 300 also includes a content pane 304 that displays text data. For example, the text data can correspond to a first part of content data encoded in the first language of English (e.g., sent by server 104 to user device 102). Inside content pane 304 is an icon 306 indicating the second language. Icon 306 corresponds to the keyword "Compliance Policies".
[0055] Figure 4 An example user interface 400 for supporting a second language according to an embodiment of the present invention is shown. User interface 400 is different from Figure 3 user interface 300 of Figure 4 It is also shown that user interface 400 includes a pop-up menu 402. Pop-up menu 402 can be displayed in response to user interaction with icon 306 (e.g., selection, hovering, etc.). Pop-up menu 402 includes a translation of the identified keyword "Compliance Policies" in the second language (e.g., Spanish). In other words, pop-up menu 402 is configured to display a second part of content data encoded in the second language of Spanish in response to user interaction with icon 306. Therefore, the second part of the content data is hidden before the interaction is performed.
[0056] Figure 5 Shows an example user interface 500 that supports a second language according to an embodiment of the present invention. The user interface 500 includes a language setting 502 that displays a first language and a second language (e.g., determined by the server 104). In this example, the first language is determined to be English, as shown by the US flag, and the second language is determined to be Spanish, as shown by the Spanish flag. The user interface 500 also includes a text input field 504 that facilitates the input of a search query.
[0057] Figure 6 Shows an example user interface 600 that supports a second language according to an embodiment of the present invention. The user interface 600 is different from Figure 5 the user interface 500 in that Figure 6 it is also shown that: the user interface 600 includes a content pane 602, and the content pane 602 displays search results (e.g., content data) in English, the first language (e.g., the first part of the content data), and Spanish, the second language (e.g., the second part of the content data).
[0058] For further illustration, Figure 7 Shows a flowchart of an exemplary method for supporting a second language according to an embodiment of the present invention. The method includes determining (e.g., by the server 104) a first language associated with a user (e.g., the user device 102) and a second language associated with the user (e.g., the user device 102) 702. Determining the first language and the second language may include receiving a set metric that is associated with the user device 102 and shows the first language and the second language; the set includes browser settings, application settings, profile settings, or configuration settings. Determining the first language and the second language may include accessing a certain setting, preference, or other configuration option; the setting, preference, or other configuration option is related to a session associated with the user device 102, or related to a user account associated with the user device 102. The determination of the first language or the second language may depend on the top-level domain used to access the server 104. For example, the language corresponding to a specific top-level domain (e.g.,.uk for English,.es for Spanish,.jp for Japanese) may be determined as the first language or the second language. The first language or the second language not determined according to the top-level domain may also be determined by another method (e.g., browser settings, user account settings, etc.).
[0059] Figure 7The method may further include, e.g., by server 104, generating a first portion 704 of content data based on a first language. Generating the first portion of content data based on the first language may include translating source content data into the first language. Generating the first portion of content data based on the first language may include generating a first portion of search results based on the first language and a search query. Generating the first portion of content data may further include accessing a language file or version of source data encoded in the first language and encoding a portion of the accessed version as the first portion of content data. The language file or version of source content data may include a user-generated or manually created translation of the source content data into the first language.
[0060] Figure 7 The method may further include, e.g., by server 104, generating a second portion 706 of content data based on a second language. For example, in the case where the first portion of content data is generated by translating source content data into the first language, generating the second portion of content data may include selecting one or more keywords (e.g., from the text in the source content data) and encoding the one or more keywords in the second language as the second portion of content data. In the case where generating the first portion of content data based on the first language includes generating a first portion of search results based on the first language and a search query, generating the second portion of content data based on the second language may include generating a second portion of search results based on the second language and the search query. Thus, the content data includes a first portion of search results based on the first language and a second portion of search results based on the second language.
[0061] Generating the second portion of content data based on the second language may include encoding the second portion of content data as a hidden portion of the content data. The hidden portion of the content data may include a portion of the content data that is not displayed (e.g., not displayed via a browser) upon initial load or rendering. The hidden portion of the content data may include: that portion which is only displayed when the content data is the object of user interaction. In other words, the hidden portion of the content data is configured to be displayed in response to user interaction with the content data.
[0062] For example, the second portion of the content data may be encoded such that the display of the second portion of the content data is responsive to a selection, hover, click, or other interaction with the content data. According to one example, in the case where the second portion of the content data corresponds to one or more identified keywords, the second portion of the content data (e.g., the one or more identified keywords encoded in the second language) may be displayed in response to user interaction; the interaction involves one or more identified keywords in the content data encoded in the first language.
[0063] Figure 7The method may further include (e.g., by server 104) sending a first portion of content data and a second portion 708 of content data to user device 102. For example, server 104 may send the content data (e.g., including the first portion of content data and the second portion of content data) as a web page or other content. For example, the content data may include a web page that includes: text data of the source content data translated into a first language (e.g., the first portion of content data) and one or more keywords encoded and / or translated into a second language (e.g., the second portion of content data). The content data may also include search results in response to a search query, where a first portion of the search results is based on the first language (e.g., the first portion of content data), and a second portion of the search results is based on the second language (e.g., the second portion of content data).
[0064] For further illustration, Figure 8 FIG. shows a flowchart of an exemplary method for supporting a second language according to an embodiment of the present invention, the method including determining a first language associated with a user and a second language associated with the user 702; generating a first portion of content data based on the first language 704; generating a second portion of content data based on the second language 706; and sending the first portion of content data and the second portion of content data to a user device 708.
[0065] Figure 8 Differing from Figure 7 is that Figure 8 also shows that generating a first portion of content data based on the first language includes translating source content data into the first language 802. A web page or other source content data may be translated from the text of the source content data into the first language by application of a translation algorithm. For example, assuming the first language is set to English, the text of a web page encoded in Spanish may be translated into English. Thus, generating a first portion of content data may include replacing a portion of the source content data (e.g., untranslated text) with the corresponding portion translated into the first language.
[0066] Figure 8 Differing from Figure 7 is also that Figure 8 shows that generating a second portion of content data based on the second language includes selecting one or more keywords 804 (e.g., text in the source content data). For example, selecting one or more keywords may include selecting one or more identified keywords. The selection of one or more keywords may be based on tags, identifiers, or other encodings (e.g., markup language tags) in the source content data. The selection of one or more keywords may also be based on a template element including one or more keywords. For example, one or more keywords may be selected as keywords in a title or menu.
[0067] Selecting one or more keywords may also include selecting one or more keywords based on an anomalous translation. The anomalous translation may be related to a translation from source content data into a first language. The anomalous translation may include specific keywords that are not included in a dictionary or in other word lists in the first language. A translation algorithm may programmatically or dynamically translate the specific keywords to include them in a first portion of the content data (e.g., using natural language processing). Keywords like this may be considered potentially incorrect translations because the same keywords cannot be found in a list of keywords.
[0068] Figure 8 In addition to Figure 7 being different from Figure 8 It is shown that: generating a second portion of the content data based on a second language further includes encoding in the second language as the second portion 806 of the content data. Encoding the selected one or more keywords in the second language may include translating the one or more keywords into the second language. The source content data may be encoded in the second language. Thus, generating the second portion of the content data may include encoding one or more keywords in the untranslated content data (e.g., encoding one or more keywords in the untranslated content data in the second language).
[0069] For further illustration, Figure 9 FIG. shows a flowchart of an exemplary method for supporting a second language according to an embodiment of the present invention. The method includes determining a first language related to a user and a second language related to the user 702; generating a first portion of the content data based on the first language 704; generating a second portion of the content data based on the second language 706; and sending the first portion of the content data and the second portion of the content data to a user device 708.
[0070] Figure 9 In addition to Figure 7 being different from Figure 9 It is shown that: generating a first portion of the content data based on a first language includes generating a first portion 902 of search results based on the first language and a search query. For example, a search engine may limit the search scope to data (e.g., websites) written or encoded in a specific language. Thus, the first portion of the content data generated based on the first language may include a first portion of search results in response to a search query, the search query being based on a scope defined by the first language. For another example, a search engine may perform natural language processing on the search query or searchable data based on the first language.
[0071] Figure 9 In addition to Figure 7 being different from Figure 9Shows that: The second part of the content data generated based on the second language includes a second part 904 that generates search results based on the second language and a search query. Thus, the content data includes a first part of search results based on the first language and a second part of search results based on the second language.
[0072] In view of the explanations set forth above, those skilled in the art can understand that the beneficial effects of supporting a second language according to embodiments of the present invention include:
[0073] · Improving the usability of translated content for users proficient in multiple languages.
[0074] · Expanding the scope of search results by searching multiple language ranges and displaying combined results.
[0075] Exemplary embodiments of the present invention are mainly described in terms of a fully functional computer system configured to support a second language. However, those skilled in the art can understand that the present invention can also be embodied in a computer program product disposed on a computer-readable storage medium and used with any suitable data processing system. Such a computer-readable storage medium can be any storage medium configured to store machine-readable information, including magnetic media, optical media, or other suitable media. Examples of such media include magnetic disks in a hard disk drive or floppy disk, optical discs configured to be used in an optical disc drive, magnetic tapes, and other media that those skilled in the art can conceive of. Those skilled in the art can immediately realize that any computer system with a suitable programming device will be able to execute the methods of the present invention as implemented in a computer program product. Those skilled in the art can also understand that although the description of some exemplary embodiments in this specification refers to software installed on computer hardware and the execution of such software, alternative embodiments implemented as firmware or hardware are also within the scope of the present invention.
[0076] The present invention can be a system, method, and / or computer program product. The computer program product can include a computer-readable storage medium (or multiple computer-readable storage media) having computer-readable program instructions for causing a processor to execute aspects of the present invention.
[0077] A computer-readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. Examples of computer-readable storage media can include, but are not limited to, electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing. A more specific, non-exhaustive list of examples of computer-readable storage media includes: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital versatile discs (DVDs), memory sticks, floppy disks, mechanically encoded devices (such as punch cards or raised structures in grooves that record instructions), and any suitable combination of the foregoing. Computer-readable storage media as referred to herein should not be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through an optical fiber cable), or electrical signals transmitted through wires.
[0078] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium or an external computer or an external storage device to a corresponding computing / processing device via a network, for example, the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium within the corresponding computing / processing device.
[0079] The computer-readable program instructions for carrying out the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state-setting data, or any source code or object code. The source code or object code may be written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" programming language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partly on the user's computer as a stand-alone software package, partly on the user's computer and partly on a remote computer, entirely on the remote computer, or entirely on a remote server. In cases involving a remote computer / server, the remote computer may be connected to the user's computer through any type of network connection, including a LAN or WAN, or may be connected to an external computer (e.g., using an Internet service provider via the Internet). In some embodiments, an electronic circuit (examples of which include a programmable logic circuit, a field-programmable gate array (FPGA), or a programmable logic array (PLA)) may execute the computer-readable program instructions by utilizing the state information of the computer-readable program instructions to personalize the electronic circuit and enable it to execute embodiments of various aspects of the present invention.
[0080] Aspects of the present invention are described herein with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present invention. It will be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.
[0081] These computer-readable program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, through the processor of the computer or other programmable data processing apparatus, create means for implementing the functions / acts specified in the flowchart and / or block diagram blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium, which can direct a computer, a programmable data processing apparatus, and / or other devices to operate in a particular manner, such that the computer-readable storage medium having stored therein instructions comprises an article of manufacture including instructions for implementing the functions / operations of the various aspects specified in the flowchart and / or block diagram blocks.
[0082] The computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices, so that a series of operational steps are performed on the computer, other programmable apparatus, or other devices to produce a computer-implemented procedure, whereby the instructions executed on the computer, other programmable apparatus, or other devices implement the functions / steps specified in the flowchart and / or block diagram.
[0083] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, a segment, or a portion of an instruction, which includes one or more executable instructions for implementing the specified logical function. In some alternative embodiments, the functions recited in the blocks may occur out of the order shown in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will be appreciated that each block of the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustrations, can be implemented by special purpose hardware-based systems that are configured to perform the specified functions or steps, or by combinations of special purpose hardware and computer instructions.
[0084] As can be understood from the foregoing, modifications and changes to various embodiments of the present invention do not necessarily depart from the scope of the present invention. The descriptions in this specification are for illustrative purposes only and should not be construed as restrictive. The scope of the present invention is limited only by the appended claims.
Claims
1. A method for supporting a second language, wherein, the method comprises: determining a first language associated with a user and a second language associated with the user, including receiving a set identifier or accessing settings, preferences or other configuration options, the identifier being associated with a user device and showing the first language and the second language, the identifier including application settings, profile settings or configuration settings, the user device being associated with the user, the settings, preferences or other configuration options being related to a session associated with the user device or related to a username associated with the user device, or the determination of the first language and the second language depending on the top-level domain used to access a server; providing source content data, the language of the source content data being different from the first language and the second language; generating a first part of the content data based on the source content data and the first language; generating a second part of the content data based on the source content data and the second language; and sending the first part of the content data and the second part of the content data to the user device, wherein generating the first part of the content data includes translating the source content data into the first language, and wherein generating the second part of the content data includes: selecting one or more keywords based on an abnormal translation; and encoding the one or more keywords in the second language as the second part of the content data.
2. The method according to claim 1, wherein, the selecting one or more keywords includes selecting one or more identified keywords.
3. The method according to claim 1, wherein, generating the second part of the content data based on the second language includes: sending the second part of the content data as a hidden part of the content data, wherein the hidden part of the content data is configured to be displayed in response to user interaction with the content data.
4. The method according to claim 3, wherein, the interaction includes one or more selections or hovers relative to a part of the content data, wherein the part of the content data is encoded in the first language and corresponds to the hidden part of the content data.
5. The method according to claim 1, wherein, wherein, generating the first part of the content data includes generating a first part of search results based on the first language and a search query, and wherein, generating the second part of the content data includes generating a second part of the search results based on the second language and the search query.
6. An apparatus, wherein, the apparatus includes a computer processor and a computer memory coupled to the computer processor, the computer memory including computer program instructions that, when executed by the computer processor, cause the apparatus to perform operations, the operations including: Determine a first language associated with a user and a second language associated with the user, including receiving a set identifier or accessing settings, preferences, or other configuration options, the identifier being associated with a user device and indicating the first language and the second language, the identifier including application settings, profile settings, or configuration settings, the user device being associated with the user, the settings, preferences, or other configuration options being related to a session associated with the user device or a username associated with the user device, or the determination of the first language and the second language depending on the top-level domain used to access the server; Provide source content data, the language of the source content data being different from the first language and the second language; Generate a first part of the content data based on the source content data and the first language; Generate a second part of the content data based on the source content data and the second language; and Send the first part of the content data and the second part of the content data to the user device, where generating the first part of the content data includes translating the source content data into the first language, and where generating the second part of the content data includes: Select one or more keywords based on an abnormal translation; and Encode the one or more keywords in the second language as the second part of the content data.
7. The apparatus according to claim 6, wherein, the selecting one or more keywords includes selecting one or more identified keywords.
8. The apparatus according to claim 6, wherein, where generating the second part of the content data based on the second language includes: Sending the second part of the content data as a hidden part of the content data, where the hidden part of the content data is configured to be displayed in response to user interaction with the content data.
9. The apparatus according to claim 8, wherein, the interaction includes one or more selections or hovers relative to a part of the content data, where the part of the content data is encoded in the first language and corresponds to the hidden part of the content data.
10. The apparatus according to claim 6, wherein, wherein, generating the first part of the content data includes generating a first part of search results based on the first language and a search query, and wherein, generating the second part of the content data includes generating the second part of the search results based on the second language and the search query.
11. A computer-readable storage medium, wherein, the computer-readable storage medium includes computer program instructions, wherein, when the computer program instructions are executed, they cause the computer to perform operations, the operations including: Determine a first language associated with the user and a second language associated with the user, including receiving a set identifier or accessing settings, preferences, or other configuration options, the identifier being associated with the user device and showing the first language and the second language, the identifier including application settings, profile settings, or configuration settings, the user device being associated with the user, the settings, preferences, or other configuration options being related to a session associated with the user device or a username associated with the user device, or the determination of the first language and the second language depending on the top-level domain used to access the server; Provide source content data, the language of the source content data being different from the first language and the second language; Generate a first part of the content data based on the source content data and the first language; Generate a second part of the content data based on the source content data and the second language; and Send the first part of the content data and the second part of the content data to the user device, where generating the first part of the content data includes translating the source content data into the first language, and where generating the second part of the content data includes: Select one or more keywords based on an abnormal translation; and Encode the one or more keywords in the second language as the second part of the content data.
12. The computer-readable storage medium according to claim 11, wherein, the selecting one or more keywords includes selecting one or more identified keywords.
13. The computer-readable storage medium according to claim 11, wherein, generating the second part of the content data based on the second language includes: Sending the second part of the content data as a hidden part of the content data, where the hidden part of the content data is configured to be displayed in response to user interaction with the content data.
14. The computer-readable storage medium according to claim 13, wherein, the interaction includes one or more selections or hovers relative to a part of the content data, where the part of the content data is encoded in the first language and corresponds to the hidden part of the content data.
15. The computer-readable storage medium according to claim 11, wherein, wherein, generating the first part of the content data includes generating a first part of search results based on the first language and a search query, and wherein, generating the second part of the content data includes generating a second part of the search results based on the second language and the search query.
Citation Information
Patent Citations
Cross-language information retrieval
CN101743544A
Embedded translation-enhanced search
US20060173829A1
Apparatus and methods for multi-lingual user access
US6370498B1