CN108664575B - Conversion method, display method, storage medium and electronic device of session information - Google Patents

Conversion method, display method, storage medium and electronic device of session information Download PDF

Info

Publication number
CN108664575B
CN108664575B CN201810403625.0A CN201810403625A CN108664575B CN 108664575 B CN108664575 B CN 108664575B CN 201810403625 A CN201810403625 A CN 201810403625A CN 108664575 B CN108664575 B CN 108664575B
Authority
CN
China
Prior art keywords
session information
account
session
target
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810403625.0A
Other languages
Chinese (zh)
Other versions
CN108664575A (en
Inventor
沈娜
陈从贵
刘宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810403625.0A priority Critical patent/CN108664575B/en
Publication of CN108664575A publication Critical patent/CN108664575A/en
Application granted granted Critical
Publication of CN108664575B publication Critical patent/CN108664575B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/58Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a conversion method, a display method, a storage medium and an electronic device of session information. Wherein, the method comprises the following steps: acquiring session information of a first account to obtain first session information; under the condition that the type of the first session information is different from the target type, converting the first session information into second session information, wherein the type of the second session information is the same as the target type, the second account and the first account participate in a target session, and the target session has at least two accounts; and sending the second session information to the second account. The invention solves the technical problem that the conversation can not be carried out because the two parties of the conversation adopt languages of different languages.

Description

Conversion method, display method, storage medium and electronic device of session information
Technical Field
The present invention relates to the field of data processing, and in particular, to a conversion method, a display method, a storage medium, and an electronic device for session information.
Background
The conversation already has a language as a basis for communication, and when two parties of the conversation use different languages and cannot understand the language of the other party, the conversation cannot be performed. Such a conversation is not possible whether it is done live or by an application. Generally, a conversation is performed in an application program, users participating in the conversation usually adopt languages of the same language, and when the conversation is performed by using languages of different languages, the languages of the opposite parties cannot be understood by both parties of the conversation, so that the conversation cannot continue and cannot be exchanged.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a conversion method, a display method, a storage medium and an electronic device of session information, which at least solve the technical problem that a session cannot be performed because two parties of the session adopt languages of different languages.
According to an aspect of the embodiments of the present invention, there is provided a method for converting session information, including: acquiring session information of a first account to obtain first session information; under the condition that the type of the first session information is different from the target type, converting the first session information into second session information, wherein the type of the second session information is the same as the target type, the second account and the first account participate in a target session, and the target session has at least two accounts; and sending the second session information to the second account.
According to another aspect of the embodiments of the present invention, there is also provided a method for displaying session information, including: receiving second session information obtained by conversion according to first session information sent by a first account, wherein the type of the first session information is different from a target type, the type of the second session information is the same as the target type, the second account and the first account participate in a target session, and the target session has at least two accounts participating; and displaying the second session information.
According to another aspect of the embodiments of the present invention, there is also provided a conversion apparatus for session information, including: the acquisition unit is used for acquiring the session information of the first account to obtain first session information; a conversion unit, configured to convert the first session information into second session information when a type of the first session information is different from a target type, where the type of the second session information is the same as the target type, the second account and the first account participate in a target session, and the target session has at least two accounts participating; and the sending unit is used for sending the second session information to the second account.
According to another aspect of the embodiments of the present invention, there is also provided a display apparatus of session information, including: a first receiving unit, configured to receive second session information obtained by converting first session information sent according to a first account, where a type of the first session information is different from a target type, the type of the second session information is the same as the target type, the second account and the first account participate in a target session, and the target session has at least two accounts participating; and the first display unit is used for displaying the second session information.
In this embodiment, the first session information that is different from the target type set in the second account is converted into the second session information that is the same as the target type, and the second session information is displayed, so that the technical problem that a session cannot be performed because two parties of the session use languages of different languages is solved, and users using languages of different languages can also perform the session.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of a hardware environment according to an embodiment of the present invention;
fig. 2 is a flowchart of a display method of session information according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a create portal of a conversation interface, according to an embodiment of the invention;
FIG. 4 is a diagram of filling out session names according to an embodiment of the invention;
FIG. 5 is a schematic diagram of inviting others to a session according to an embodiment of the invention;
fig. 6 is a schematic diagram of sharing a two-dimensional code according to an embodiment of the invention;
FIG. 7 is a schematic diagram of scanning a two-dimensional code according to an embodiment of the invention;
FIG. 8 is a schematic diagram of a scanning two-dimensional code joining session according to an embodiment of the invention;
FIG. 9 is a schematic diagram of viewing account information, according to an embodiment of the invention;
FIG. 10 is an interface diagram of an application according to an embodiment of the invention;
fig. 11 is a flowchart of a conversion method of session information according to an embodiment of the present invention;
fig. 12 is a schematic diagram of a conversion apparatus of session information according to an embodiment of the present invention;
fig. 13 is a schematic diagram of a display apparatus of session information according to an embodiment of the present invention;
fig. 14 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of an embodiment of the present invention, a method for displaying session information is provided. In this embodiment, the above-described display method of session information may be applied to a hardware environment formed by the terminal 101 and the server 102 shown in fig. 1. As shown in fig. 1, a terminal 101 is connected to a server 102 via a network, including but not limited to: the terminal 101 may be a mobile phone terminal, or may also be a PC terminal, a notebook terminal, or a tablet terminal.
Fig. 2 is a flowchart of a display method of session information according to an embodiment of the present invention. The display method of the session information may be performed by the terminal shown in fig. 1. As shown in fig. 2, the method for displaying session information includes the following steps:
s202, receiving second session information obtained by conversion according to first session information sent by a first account, wherein the type of the first session information is different from a target type, the type of the second session information is the same as the target type, the second account and the first account participate in a target session, and the target session has at least two accounts participating;
the first account and the second account participate in the target session, and participants of the target session at least comprise the first account, the second account and other accounts such as a third account. At least two accounts participating in the conversation can communicate by adopting different languages, namely, the type of the first conversation information is one language, and the target type is the other language. The target type may be a language preset in the second account, or a language adopted by the terminal system of the second account, or a language adopted by the second account according to a region where the second account is located, where the language is the language adopted by the second account, or a language understandable by the second account.
If the language of the first session information is different from the preset language of the second account, the first session information needs to be converted to obtain second session information, so that the language of the second session information is the same as the language of the second account.
For example, a first account a and a second account B participate in a conversation, the conversation name is "chat 427", the language of the first account is english, the language of the second account is chinese, and after the first account sends out the first conversation information "what a nice day today", the first conversation information is converted into the second conversation information "today's weather is really good". The language of the second session information is Chinese, which is the same as the language of the second account.
And S204, displaying the second session information.
And displaying the second session information on the terminal of the second account.
In this embodiment, the first session information that is different from the target type set in the second account is converted into the second session information that is the same as the target type, and the second session information is displayed, so that the technical problem that a session cannot be performed because two parties of the session use languages of different languages is solved, and users using languages of different languages can also perform the session.
Optionally, the accounts participating in the target session may include a third account that is in a different language than the first account and that is different than the second account. When the third account sends the third session information, the third session information may be converted into fourth session information and displayed on the terminal of the second account. That is, before displaying the second session information or after displaying the second session information, the method further includes: and displaying fourth session information, wherein the fourth session information is obtained by conversion according to third session information sent by a third account, the type of the third session information is different from that of the first session information, the type of the third session information is different from that of the target, and the third account participates in the target session.
For example, the language adopted by the third account is japanese, the first account a, the second account B and the third account C participate in the conversation, the conversation name is "chat 427", the language adopted by the first account a is english, the language adopted by the second account B is chinese, the language adopted by the third account C is japanese, and after the third account sends out the third conversation information "今日はぃぃ天気です", the first conversation information is converted into the fourth conversation information "weather today is really good". The language of the fourth session information is Chinese, which is the same as the language of the second account.
That is, in this embodiment, a plurality of participants may be included in the same session, each participant may use a different language for the session, and the account receiving the session information may see the session in the same language as the account, that is, the information in other languages is translated into the language used by the account for displaying, so that the participants in different languages may perform the session.
Optionally, displaying the second session information comprises: and when the second session information is displayed, the first session information is displayed in an associated manner.
Account a, account B, account C, and account D participate in the conversation "japan 7 days liberty", wherein a converses in chinese, B converses in japanese, C converses in english, and D converses in korean. On the terminal of account A, the conversation messages of other accounts participating in the conversation are translated into Chinese for display, and the original text and the translated text are displayed simultaneously.
Optionally, the associating and displaying the first session information includes: the first session information and the second session information are displayed in the same session message. For example, the conversation message of B displays both chinese translation and japanese original, the conversation message of C displays both chinese translation and english original, and the conversation message of D displays both chinese translation and korean original. The display mode can be that the original text and the translated text are arranged in the up-down sequence, the translated text is highlighted, and the original text is normally displayed, or the translated text is normally displayed, and the original text is faded. Wherein, the normal display is that the display effect is the same as that of the second account.
Optionally, before receiving the second session information converted from the first session information sent by the first account, or after receiving the second session information converted from the first session information sent by the first account, the method further includes: receiving a geographical position sharing request sent by a first account; and sending a viewing instruction according to the geographical position sharing request, wherein the viewing instruction is used for indicating and displaying a target map, the type of the display information of the target map is a target type, and a mark of the geographical position of the first account is displayed on the target map.
The geographic location shared by the first account is the location of the first account. The first account adopts Japanese for conversation, so that Japanese is displayed on a map viewed by the first account; the second account uses Chinese for conversation, so the Chinese is displayed on the map viewed by the second account. In the present embodiment, the language of the information displayed on the map may be changed according to the location. For example, the language displayed is selected based on the geographic location of the viewing account. If the second account travels in Japan, the language adopted by the second account is Chinese.
Optionally, creating a target session; displaying a feature code of the target session, wherein the feature code is used for providing a viewing entrance for viewing the target session for a fourth account, and the target session allows the fourth account to view session content of the target session and accounts participating in the target session through the feature code.
The creation of the session may be performed through the interface shown in fig. 3, and clicking "create" on the interface shown in fig. 3 jumps to the interface shown in fig. 4, prompting to fill in the session name. After the session name is filled in, click "complete creation" and the interface shown in fig. 5 is displayed. The session name created is "seven day trip family of japan aged sir". In the process of creating the session, the creation can be completed by inputting the session name, and the creation flow is simple. After the creation of the session is completed, the "invite others to join" shown in fig. 5 may also be clicked to invite other accounts to join the session. The invitation may be by way of inviting both buddies and non-buddies to join the session. As shown in fig. 6, a two-dimensional code or the like is generated, and a non-friend or a friend joins a session by scanning the two-dimensional code. The creator of the session can also invite friends to join the session by sharing the two-dimensional code in other application programs.
When joining the created session, the session can be joined by "scan two-dimensional code joining session" in the interface shown in fig. 4. Clicking "+" of fig. 4, the scan frame shown in fig. 7 is displayed, and after the two-dimensional code or the barcode is scanned through the scan frame, the interface shown in fig. 8 is displayed. Note that the session is set as an application program, for example, an application program having a translation function. When the terminal is installed with an application program having a translation function and clicks "join session" shown in fig. 8, the session is successfully joined, and a session between members participating in the session is performed. If the terminal does not install the application program with the translation function, the terminal jumps to a webpage interface to allow the session to be viewed.
The feature code may be a two-dimensional code or a bar code, etc. When the fourth account is not in the session and the fourth account does not have a corresponding application program installed, the fourth account can view the session content and account information of the target session by scanning the feature code. The fourth account views account information through a web page, as shown in fig. 9, including viewing the nickname, avatar, and country of the session member. The viewed session content includes historical session information, ongoing session information, and the like. This approach may facilitate users who are unable to install the relevant application to also learn about the content of the session between the members participating in the target session. The session language viewed by the fourth account may be a default language or the same as the language set by the account sharing the feature code.
The application program having the translation function according to this embodiment may be as shown in fig. 10. The application program shown in fig. 10 is a translation application where the user holds "hold-and-speak" to input a chinese voice message and the translation application can translate the voice message into english for display. The user holds "hold to talk" to enter the English voice message, and the translation application may translate the English voice message into Chinese for display.
In front of the "checkword or translated sentence" above the interface shown in fig. 10, chinese-english conversion, chinese-japanese conversion, or the like can be selected. And, the 'multilingual session' can be selected in the menu bar to display the interface shown in fig. 3 for the multilingual session.
The embodiment of the invention also provides a conversion method of the session information. The conversion method of the session information may be performed by the server 102 shown in fig. 1.
Fig. 11 is a flowchart of a conversion method of session information according to an embodiment of the present invention. As shown in fig. 11, the method for converting session information includes the following steps:
s1102, acquiring session information of the first account to obtain first session information;
the first account sends a session message to the server through the terminal logged in by the first account, so that the server obtains the first session information.
S1104, under the condition that the type of the first session information is different from the target type, converting the first session information into second session information, wherein the type of the second session information is the same as the target type, the second account and the first account participate in a target session, and the target session has at least two accounts participating;
The first account and the second account participate in the target session, and participants of the target session at least comprise the first account, the second account and other accounts such as a third account. At least two accounts participating in the conversation can communicate by adopting different languages, namely, the type of the first conversation information is one language, and the target type is the other language. The target type may be a language preset in the second account, or a language adopted by the terminal system of the second account, or a language adopted by the second account according to a region where the second account is located, where the language is the language adopted by the second account, or a language understandable by the second account.
If the language of the first session information is different from the language of the second account, the first session information needs to be converted to obtain second session information, so that the language of the second session information is the same as the language of the second account.
For example, a first account a and a second account B participate in a conversation, the conversation name is "chat 427", the language of the first account is english, the language of the second account is chinese, and after the first account sends out the first conversation information "what a nice day today", the first conversation information is converted into the second conversation information "today's weather is really good". The language of the second session information is Chinese, which is the same as the language of the second account.
S1106, sending the second session information to the second account.
And after converting the first session information into second session information, the server sends the second session information to the second account so as to display the second session information on the terminal logged in through the second account.
In this embodiment, the first session information that is different from the target type set in the second account is converted into the second session information that is the same as the target type, and the second session information is displayed, so that the technical problem that a session cannot be performed because two parties of the session use languages of different languages is solved, and users using languages of different languages can also perform the session.
Optionally, the accounts participating in the target session may include a third account that is in a different language than the first account and the second account. When the third account sends the third session information, the third session information may be converted into fourth session information and displayed on the terminal of the second account. That is, before sending the second session information to the second account, or after sending the second session information to the second account, the method further includes: acquiring session information of a third account to obtain third session information; converting the third session information into fourth session information under the condition that the type of the third session information is different from the target type, wherein the type of the third session information is different from that of the first session information, and the third account participates in the target session; and sending the fourth session information to the second account.
For example, the language adopted by the third account is japanese, the first account a, the second account B and the third account C participate in the conversation, the conversation name is "chat 427", the language adopted by the first account a is english, the language adopted by the second account B is chinese, the language adopted by the third account C is japanese, and after the third account sends out the third conversation information "今日はぃぃ天気です", the first conversation information is converted into the fourth conversation information "weather today is really good". The language of the fourth session information is Chinese, which is the same as the language of the second account.
That is, in this embodiment, a plurality of participants may be included in the same session, each participant may use a different language for the session, and the account receiving the session information may see the session in the same language as the account, that is, translate the information in other languages into the language of the account for display, so that the participants in different languages can perform the session.
Optionally, after obtaining the first session information, the method further includes: and sending the first session information to the second account, wherein the first session information and the second session information are displayed on the second account in a related manner.
Account a, account B, account C, and account D participate in the conversation "japan 7 days liberty", wherein a converses in chinese, B converses in japanese, C converses in english, and D converses in korean. On the terminal of account A, the conversation messages of other accounts participating in the conversation are translated into Chinese for display, and the original text and the translated text are displayed simultaneously.
For example, the conversation message of B displays both the chinese translation and the japanese original, the conversation message of C displays both the chinese translation and the japanese original, and the conversation message of D displays both the chinese translation and the korean original. The display mode can be that the original text and the translated text are arranged in the up-down sequence, the translated text is highlighted, and the original text is normally displayed, or the translated text is normally displayed, and the original text is faded. Wherein, the normal display is that the display effect is the same as that of the second account.
Optionally, in a case that the type of the first session information is different from the target type, converting the first session information into second session information includes: and under the condition that the first session information is the text information, converting the text information into the second session information, wherein the second session information is the text information.
Optionally, in a case that the type of the first session information is different from the target type, converting the first session information into second session information includes: and under the condition that the first session information is voice information, converting the voice information into the second session information.
The first session information input by the first account can be voice information or text information, and under the condition of text information, the first session information can be directly translated into second session information of a target type; and under the condition that the first session information is voice information, converting the voice information into character information, and translating the character information obtained by conversion into second session information of a target type. No matter the first conversation information is character information or voice information, the converted second conversation information can be displayed as character information, and the character information is convenient to view and compare.
In this embodiment, the second session information may also be voice information, that is, the first session information is translated after being converted into text information, and the translated text is converted into voice information to be output.
Optionally, before sending the second session information to the second account, or after sending the second session information to the second account, the method further includes: acquiring a geographical position sharing request sent by the first account; searching a map matched with the target type according to the geographic position sharing request to obtain a target map, wherein the type of the target map display information is the target type; and sending the target map to the second account, wherein a mark of the geographical position of the first account is displayed on the target map.
The geographic location shared by the first account is the location of the first account. The first account adopts Japanese for conversation, so that Japanese is displayed on a map viewed by the first account; the second account uses Chinese for conversation, so the Chinese is displayed on the map viewed by the second account. In the present embodiment, the language of the information displayed on the map may be changed according to the location. For example, the language displayed is selected based on the geographic location of the viewing account. If the second account travels in Japan, the language adopted by the second account is Chinese.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
According to another aspect of the embodiments of the present invention, there is also provided a conversion apparatus of session information for implementing the above conversion method of session information, where the apparatus may be a server, and as shown in fig. 12, the apparatus includes:
an obtaining unit 1202, configured to obtain session information of a first account to obtain first session information;
a converting unit 1204, configured to convert the first session information into second session information when the type of the first session information is different from a target type, where the type of the second session information is the same as the target type, the second account and the first account participate in a target session, and the target session has at least two accounts;
a sending unit 1206, configured to send the second session information to the second account.
The first account sends a session message to the server through the terminal logged in by the first account, so that the server obtains the first session information.
The first account and the second account participate in the target session, and participants of the target session at least comprise the first account, the second account and other accounts such as a third account. At least two accounts participating in the conversation can communicate by adopting different languages, namely, the type of the first conversation information is one language, and the target type is the other language. The target type may be a language preset in the second account, or a language adopted by the terminal system of the second account, or a language adopted by the second account according to a region where the second account is located, where the language is the language adopted by the second account, or a language understandable by the second account.
If the language of the first session information is different from the language of the second account, the first session information needs to be converted to obtain second session information, so that the language of the second session information is the same as the language of the second account.
For example, a first account a and a second account B participate in a conversation, the conversation name is "chat 427", the language of the first account is english, the language of the second account is chinese, and after the first account sends out the first conversation information "what a nice day today", the first conversation information is converted into the second conversation information "today's weather is really good". The language of the second session information is Chinese, which is the same as the language of the second account.
And after converting the first session information into second session information, the server sends the second session information to the second account so as to display the second session information on the terminal logged in through the second account.
In this embodiment, the first session information that is different from the target type set in the second account is converted into the second session information that is the same as the target type, and the second session information is displayed, so that the technical problem that a session cannot be performed because two parties of the session use languages of different languages is solved, and users using languages of different languages can also perform the session.
Optionally, the conversion unit includes: and the first conversion module is used for converting the text information into the second session information under the condition that the first session information is the text information.
Optionally, the conversion unit includes: and the second conversion module is used for converting the voice information into the second session information under the condition that the first session information is the voice information.
The first session information input by the first account can be voice information or text information, and under the condition of text information, the first session information can be directly translated into second session information of a target type; and under the condition that the first session information is voice information, converting the voice information into character information, and translating the character information obtained by conversion into second session information of a target type. No matter the first conversation information is character information or voice information, the converted second conversation information can be displayed as character information, and the character information is convenient to view and compare.
In this embodiment, the second session information may also be voice information, that is, the first session information is translated after being converted into text information, and the translated text is converted into voice information to be output.
According to still another aspect of the embodiments of the present invention, there is also provided a display apparatus of session information for implementing the above display method of session information, as shown in fig. 13, the apparatus including:
a first receiving unit 1302, configured to receive second session information obtained by converting first session information sent by a first account, where a type of the first session information is different from a target type, the type of the second session information is the same as the target type, the target type is a type of a second account, the second account and the first account participate in a target session, and the target session has at least two accounts participating; the first account and the second account participate in the target session, and participants of the target session at least comprise the first account, the second account and other accounts such as a third account. At least two accounts participating in the conversation can be communicated by adopting different languages, namely, the type of the first conversation information is one language, and the target type is the other language. The target type may be a language preset in the second account, or a language adopted by the terminal system of the second account, or a language adopted by the second account according to a region where the second account is located, where the language is the language adopted by the second account, or a language understandable by the second account.
If the language of the first session information is different from the preset language of the second account, the first session information needs to be converted to obtain second session information, so that the language of the second session information is the same as the preset language of the second account.
For example, a first account a and a second account B participate in a conversation, the conversation name is "chat 427", the language of the first account is english, the language of the second account is chinese, and after the first account sends out the first conversation information "what a nice day today", the first conversation information is converted into the second conversation information "today's weather is really good". The language of the second session information is Chinese, which is the same as the language preset in the second account.
A first display unit 1304, configured to display the second session information.
And displaying the second session information on the terminal of the second account.
In this embodiment, the first session information that is different from the target type set in the second account is converted into the second session information that is the same as the target type, and the second session information is displayed, so that the technical problem that a session cannot be performed because two parties of the session use languages of different languages is solved, and users using languages of different languages can also perform the session.
Optionally, the apparatus further comprises: and the second display unit is used for displaying fourth session information before displaying the second session information or after displaying the second session information, wherein the fourth session information is obtained by conversion according to third session information sent by a third account, the type of the third session information is different from that of the first session information, the type of the third session information is different from that of the target type, and the third account participates in the target session.
Optionally, the first display unit includes: and the display module is used for displaying the first session information in a correlated manner when the second session information is displayed.
Optionally, the display module comprises: and the display sub-module is used for displaying the first session information and the second session information in the same session message.
Optionally, the apparatus further comprises: a creating unit configured to create a target session; the sharing unit is used for displaying the feature code of the target session, wherein the feature code is used for providing a viewing entrance for viewing the target session for a fourth account, and the target session allows the fourth account to view the session content of the target session and the accounts participating in the target session through the feature code.
Optionally, the apparatus further comprises: the second receiving unit is used for receiving the geographic position sharing request sent by the first account before receiving second session information obtained by converting the first session information sent by the first account, or after receiving the second session information obtained by converting the first session information sent by the first account; and the viewing unit is used for sending a viewing instruction according to the geographical position sharing request, wherein the viewing instruction is used for indicating and displaying a target map, the type of the display information of the target map is the target type, and a mark of the geographical position of the first account is displayed on the target map.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the foregoing method, the foregoing division of each functional module is merely exemplified. In practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the display method of session information, as shown in fig. 14, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor is configured to execute the steps in any one of the method embodiments through the computer program.
Alternatively, fig. 14 is a block diagram of an electronic device according to an embodiment of the invention. As shown in fig. 14, the electronic device may include: one or more (only one shown) processors 1401, at least one communication bus 1402, a user interface 1403, at least one transmitting means 1404, and a memory 1405. The communication bus 1402 is used to realize connection communication between these components. The user interface 1403 may include, among other things, a display 1406 and a keypad 1407. The transmission means 1404 may optionally include standard wired and wireless interfaces.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
S1, obtaining the session information of the first account to obtain the first session information;
s2, converting the first session information into second session information under the condition that the type of the first session information is different from the target type, wherein the type of the second session information is the same as the target type, the second account and the first account participate in the target session, and the target session has at least two accounts;
s3, sending the second session information to the second account.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 14 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 14 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 14, or have a different configuration than shown in FIG. 14.
The memory 1405 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for displaying session information in the embodiment of the present invention, and the processor 1401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 1405, that is, implements the above-described method for displaying session information. The memory 1405 may include high-speed random access memory, but may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 1405 may further include memory located remotely from processor 1401, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmitting device 1404 is used for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1404 includes a Network adapter (NIC) that can be connected to a router via a Network line to communicate with the internet or a local area Network. In one example, the transmitting device 1404 is a Radio Frequency (RF) module configured to communicate with the internet via wireless.
Among them, the memory 1405 is used to store the callback information, in particular.
In this embodiment, the first session information that is different from the target type set in the second account is converted into the second session information that is the same as the target type, and the second session information is displayed, so that the technical problem that a session cannot be performed because two parties of the session use languages of different languages is solved, and users using languages of different languages can also perform the session.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
receiving second session information obtained by conversion according to first session information sent by a first account, wherein the type of the first session information is different from a target type, the type of the second session information is the same as the target type, the second account and the first account participate in a target session, and the target session has at least two accounts participating; and displaying the second session information.
Optionally, the storage medium is further arranged to store a computer program for performing the steps of:
and displaying fourth session information, wherein the fourth session information is obtained by conversion according to third session information sent by a third account, the type of the third session information is different from that of the first session information, the type of the third session information is different from that of the target, and the third account participates in the target session.
Optionally, the storage medium is further arranged to store a computer program for performing the steps of:
and when the second session information is displayed, the first session information is displayed in an associated manner.
Optionally, the storage medium is further arranged to store a computer program for performing the steps of:
displaying the first session information and the second session information in the same session message.
Optionally, the storage medium is further arranged to store a computer program for performing the steps of:
receiving a creation instruction for instructing creation of the target session; displaying prompt information according to the creation instruction, wherein the prompt information is used for prompting to fill in the name of the target session; and after detecting that the name is completely filled, successfully creating the target session.
Optionally, the storage medium is further arranged to store a computer program for performing the steps of:
and sharing a feature code of the target session with a fourth account, wherein the feature code is used for providing a viewing entrance for viewing the target session for the fourth account, and the target session allows the fourth account to view session content of the target session and accounts participating in the target session.
Optionally, the storage medium is further arranged to store a computer program for performing the steps of: receiving a geographical position sharing request sent by the first account; sending a viewing instruction according to the geographical position sharing request, wherein the viewing instruction is used for indicating and displaying a target map, the type of the target map display information is the target type, and a mark of the geographical position of the first account is displayed on the target map.
Optionally, the storage medium is further configured to store a computer program for executing the steps included in the method in the foregoing embodiment, which is not described in detail in this embodiment.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (12)

1. A method for converting session information, comprising:
acquiring session information of a first account to obtain first session information;
under the condition that the type of the first session information is different from the target type, converting the first session information into second session information, wherein the type of the second session information is the same as the target type, a second account and the first account participate in a target session, the target session has at least two accounts participating, and the target type is a language adopted by a terminal system of the second account;
Sending the second session information to the second account;
before sending the second session information to the second account, or after sending the second session information to the second account, the method further includes:
acquiring a geographical position sharing request sent by the first account;
searching a map matched with the target type according to the geographic position sharing request to obtain a target map, wherein the type of the target map display information is the target type;
sending the target map to the second account, wherein a mark of the geographic position of the first account is displayed on the target map, when the target map includes the mark of the geographic position of the first account shared by the first account, when the target map is viewed by the first account, display information of the target map is in a language corresponding to the first account, and when the target map is viewed by the second account, the display information of the target map is in a language adopted by a terminal system of the second account;
before sending the second session information to the second account, or after sending the second session information to the second account, the method further includes:
Acquiring session information of a third account to obtain third session information;
converting the third session information into fourth session information under the condition that the type of the third session information is different from the target type, wherein the type of the third session information is different from that of the first session information, and the third account participates in the target session;
and sending the fourth session information to the second account, wherein when the fourth session information and the second session information are simultaneously displayed, the first session information and the third session information are respectively displayed in an associated manner.
2. The method of claim 1, wherein after obtaining the first session information, the method further comprises:
and sending the first session information to the second account, wherein the first session information and the second session information are displayed on the second account in a related manner.
3. The method of claim 1, wherein in the case that the type of the first session information is different from a target type, converting the first session information into second session information comprises:
and converting the text information into the second session information under the condition that the first session information is the text information.
4. The method of claim 1, wherein in the case that the type of the first session information is different from a target type, converting the first session information into second session information comprises:
and under the condition that the first session information is voice information, converting the voice information into the second session information.
5. A method for displaying session information, comprising:
receiving second session information obtained by conversion according to first session information sent by a first account, wherein the type of the first session information is different from a target type, the type of the second session information is the same as the target type, the second account and the first account participate in a target session, the target session has at least two accounts participating, and the target type is a language adopted by a terminal system of the second account;
displaying the second session information;
before receiving second session information converted according to the first session information sent by the first account, or after receiving second session information converted according to the first session information sent by the first account, the method further includes:
Receiving a geographical position sharing request sent by the first account;
sending a viewing instruction according to the geographical position sharing request, wherein the viewing instruction is used for indicating and displaying a target map, the type of the target map display information is the target type, and a mark of the geographical position of the first account is displayed on the target map;
before displaying the second session information or after displaying the second session information, the method further comprises:
and displaying fourth session information, wherein the fourth session information is obtained by conversion according to third session information sent by a third account, the type of the third session information is different from that of the first session information, the type of the third session information is different from that of the target, the third account participates in the target session, and the first session information and the third session information are respectively displayed in a correlated manner when the fourth session information and the second session information are simultaneously displayed.
6. The method of claim 5, wherein displaying the second session information comprises:
and when the second session information is displayed, the first session information is displayed in an associated manner.
7. The method of claim 5, wherein displaying the first session information in association comprises:
displaying the first session information and the second session information in the same session message.
8. The method of claim 5, wherein before receiving the second session information converted from the first session information sent by the first account, the method further comprises:
creating a target session;
displaying a feature code of the target session, wherein the feature code is used for providing a viewing entrance for viewing the target session for a fourth account, and the target session allows the fourth account to view session content of the target session and accounts participating in the target session through the feature code.
9. An apparatus for converting session information, comprising:
the acquisition unit is used for acquiring the session information of the first account to obtain first session information;
a conversion unit, configured to convert the first session information into second session information when the type of the first session information is different from a target type, where the type of the second session information is the same as the target type, a second account and the first account participate in a target session, the target session has at least two accounts participating, and the target type is a language adopted by a terminal system of the second account;
A sending unit, configured to send the second session information to the second account;
the apparatus is further configured to:
before sending the second session information to the second account, or after sending the second session information to the second account, acquiring a geographic position sharing request sent by the first account;
searching a map matched with the target type according to the geographic position sharing request to obtain a target map, wherein the type of the target map display information is the target type;
sending the target map to the second account, wherein a mark of the geographic position of the first account is displayed on the target map, when the target map includes the mark of the geographic position of the first account shared by the first account, when the target map is viewed by the first account, display information of the target map is in a language corresponding to the first account, and when the target map is viewed by the second account, the display information of the target map is in a language adopted by a terminal system of the second account;
the apparatus is further configured to: before sending the second session information to the second account, or after sending the second session information to the second account, obtaining session information of a third account to obtain third session information; converting the third session information into fourth session information under the condition that the type of the third session information is different from the target type, wherein the type of the third session information is different from that of the first session information, and the third account participates in the target session; and sending the fourth session information to the second account, wherein when the fourth session information and the second session information are simultaneously displayed, the first session information and the third session information are respectively displayed in an associated manner.
10. A display apparatus for conversation information, comprising:
a first receiving unit, configured to receive second session information obtained by converting first session information sent according to a first account, where a type of the first session information is different from a target type, the type of the second session information is the same as the target type, a second account and the first account participate in a target session, the target session has at least two accounts participating, and the target type is a language adopted by a terminal system of the second account;
a first display unit configured to display the second session information;
before receiving the second session information converted from the first session information sent by the first account, or after receiving the second session information converted from the first session information sent by the first account, the apparatus is further configured to:
receiving a geographical position sharing request sent by the first account;
sending a viewing instruction according to the geographical position sharing request, wherein the viewing instruction is used for indicating and displaying a target map, the type of the target map display information is the target type, and a mark of the geographical position of the first account is displayed on the target map;
The apparatus is further configured to: before displaying the second session information, or after displaying the second session information, displaying fourth session information, wherein the fourth session information is obtained by converting third session information sent by a third account, the type of the third session information is different from that of the first session information, the type of the third session information is different from that of the target, the third account participates in the target session, and when the fourth session information and the second session information are displayed at the same time, the first session information and the third session information are respectively displayed in a correlated manner.
11. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 4 when executed.
12. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 4 by means of the computer program.
CN201810403625.0A 2018-04-28 2018-04-28 Conversion method, display method, storage medium and electronic device of session information Active CN108664575B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810403625.0A CN108664575B (en) 2018-04-28 2018-04-28 Conversion method, display method, storage medium and electronic device of session information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810403625.0A CN108664575B (en) 2018-04-28 2018-04-28 Conversion method, display method, storage medium and electronic device of session information

Publications (2)

Publication Number Publication Date
CN108664575A CN108664575A (en) 2018-10-16
CN108664575B true CN108664575B (en) 2022-07-29

Family

ID=63781533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810403625.0A Active CN108664575B (en) 2018-04-28 2018-04-28 Conversion method, display method, storage medium and electronic device of session information

Country Status (1)

Country Link
CN (1) CN108664575B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965824A (en) * 2015-06-11 2015-10-07 胡开标 Real-time text and speech translation system
CN105335355A (en) * 2014-08-08 2016-02-17 掌赢信息科技(上海)有限公司 Method, apparatus and system for automatically translating text message in instant communication software
CN106682967A (en) * 2017-01-05 2017-05-17 胡开标 Online translation and chat system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072168B (en) * 2007-06-22 2011-11-02 腾讯科技(深圳)有限公司 Multi-language instant communication terminal and its system and method
KR101632435B1 (en) * 2015-10-20 2016-06-21 이요훈 IP network based Social Network Services and chat application software system GUI layout and the communication method using them.

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335355A (en) * 2014-08-08 2016-02-17 掌赢信息科技(上海)有限公司 Method, apparatus and system for automatically translating text message in instant communication software
CN104965824A (en) * 2015-06-11 2015-10-07 胡开标 Real-time text and speech translation system
CN106682967A (en) * 2017-01-05 2017-05-17 胡开标 Online translation and chat system

Also Published As

Publication number Publication date
CN108664575A (en) 2018-10-16

Similar Documents

Publication Publication Date Title
US11075865B2 (en) Method and apparatus for transmitting business object
CN103931165A (en) Phone with multi-portal access for display during incoming and outgoing calls
US10863312B2 (en) Moving track sharing method and apparatus, and storage medium
CN103067248A (en) Method and device for displaying chaining summary information in instant messaging software window
US20150180981A1 (en) Communications Server Apparatus, Calling Device And Methods Of Operation Thereof
EP2914013A1 (en) Method and terminal for sharing program in interactive network television system
US20160127292A1 (en) Method and system for controlling polling in message conversations across multiple devices
CN106713438B (en) Position sharing processing method and device
CN104219269A (en) Synchronous remote consultation method and synchronous remote consultation system
US20160359774A1 (en) Instant messaging with non subscriber users
CN114327205A (en) Picture display method, storage medium and electronic device
CN113067711A (en) Conference participating method and device of teleconference, storage medium and electronic device
CN112817671A (en) Image processing method, device, equipment and computer readable storage medium
US9749828B2 (en) Communication system and method for making telephone calls over the internet
KR101420379B1 (en) Method and apparatus for sharing content
CN104184771A (en) Call record calling method and device
CN108664575B (en) Conversion method, display method, storage medium and electronic device of session information
CN103856395A (en) Method and system for calling friends and making discussion on webpage
CN106302080A (en) A kind of network social intercourse system based on campus
US8983850B2 (en) Translation system and method for multiple instant message networks
CN102123159A (en) Social website cross-platform sharing method and hand-held electronic device
CN110620672B (en) Multi-person session data processing method and device, computer equipment and storage medium
WO2015168408A1 (en) Method and system for message conversation view customization
KR100686006B1 (en) Method for Providing Messaging Many Languages of Instant Messenger
JP2004240932A (en) Establishment method of private chat room

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant