Mail translation method and electronic equipment

文档序号:1191914 发布日期:2020-08-28 浏览:27次 中文

阅读说明:本技术 一种邮件翻译的方法及电子设备 (Mail translation method and electronic equipment ) 是由 李辰淑 李玉 王权权 于 2018-07-27 设计创作,主要内容包括:一种邮件翻译的方法及电子设备,涉及终端技术领域,该方法包括显示第一用户界面。第一用户界面包括邮件撰写区域,邮件撰写区域包括用户撰写的内容。响应于对用户撰写的内容的翻译操作,在第一用户界面增加第一邮件翻译区域。第一邮件翻译区域包括第一结果预览区和功能栏。第一结果预览区包括用户撰写的内容的翻译结果。功能栏包括替换按钮。响应于对替换按钮的操作,将邮件撰写区域包括的用户撰写的内容替换为翻译结果,并显示翻译结果。这种技术方案有助于简化了操作方式,提高了操作效率。(A mail translation method and electronic equipment relate to the technical field of terminals. The first user interface includes a mail composition area that includes content composed by the user. In response to a translation operation for content written by a user, a first mail translation area is added to a first user interface. The first mail translation area includes a first result preview area and a function bar. The first result preview area includes translation results of content written by the user. The function bar includes a replacement button. In response to an operation of the replacement button, the user-written content included in the mail writing area is replaced with the translation result, and the translation result is displayed. The technical scheme is beneficial to simplifying the operation mode and improving the operation efficiency.)

A method for translating mail, the method comprising:

displaying a first user interface, the first user interface including a mail composition area, the mail composition area including user composed content;

in response to a translation operation by the user on the written content, adding a first mail translation area at the first user interface, the first mail translation area comprising a first result preview area and a function bar, the first result preview area comprising a translation result of the user-written content, the function bar comprising a replacement button;

and replacing the user-written content included in the mail writing area with the translation result in response to the user's operation of the replacement button, and displaying the translation result.

The method of claim 1, wherein replacing, in response to the user operating the replace button, user-composed content included in the mail composition area with the translation result includes:

responding to the operation of the replacement button, and popping up a first prompt box, wherein the first prompt box comprises first prompt information and a first consent button, and the first prompt information is used for prompting whether the user agrees to replace the content drafted by the user with the translation result;

replacing user-composed content included in the mail composition area with the translation result in response to the user's operation of the first consent button.

A method for translating mail, the method comprising:

displaying a first user interface, the first user interface including a mail composition area, the mail composition area including user composed content;

in response to a translation operation by the user on the written content, adding a first mail translation area at the first user interface, the first mail translation area comprising a first result preview area and a function bar, the first result preview area comprising a translation result of the user-written content, the function bar comprising an insert button;

and responding to the operation of the user on the insert button, adding the translation result to the mail composition area, and displaying the translation result and the content composed by the user.

The method of claim 3, wherein the translation result in the mail composition area is located below the content composed by the user; or the translation result in the mail writing area is positioned above the content written by the user.

The method of any of claims 1-4, wherein the first mail translation area further comprises a settings bar, the settings bar comprising a language button;

adding a language setting column to the first mail translation area in response to the user's operation of the language button, the language setting column including a source language setting button and a target language setting button;

the source language setting button is used for setting the language of the content to be translated; the target language setting button is used for setting the language after the content to be translated is translated.

The method of claim 5, wherein after the first mail translation region is populated with the language setting bar, the method further comprises:

hiding the language setting bar in response to the user's operation of the language button.

The method of claim 5 or 6, wherein the setup bar further comprises at least one of the following buttons: a close button and a pull-up button;

closing the first mail translation area in response to the user's operation of the close button;

responding to the operation of the user on the pull-up button, displaying the first mail translation area in a full screen mode, and hiding the pull-up button and displaying a pull-down button on the setting bar;

and responding to the operation of the user on the pull-down button, quitting the full screen display of the first mail translation area, hiding the pull-down button in the setting bar, and displaying the pull-up button.

The method of any of claims 1 to 7, wherein adding a first mail translation area in the first user interface in response to the user's translation of content written by the user comprises:

responding to the translation operation of the user on the content written by the user, and popping up a second prompt box, wherein the second prompt box comprises second prompt information and a second consent button, and the second prompt information is used for prompting whether the user agrees to upload the content written by the user to a cloud server for translation;

in response to operation of the second consent button by the user, add the first mail translation area at the first user interface.

The method of any of claims 1 to 8, wherein the first user interface further comprises a hover button;

in response to a translation operation by the user of content composed by the user, comprising:

in response to the user's operation of the hover button.

The method of claim 9, wherein the method further comprises:

responding to the operation of the user for viewing the mails in the inbox, and displaying a second user interface, wherein the second user interface comprises a mail preview area and the suspension button, and the mail preview area comprises the content of the mail text;

and responding to the operation of the user on the floating button, and adding a second mail translation area in the second user interface, wherein the second mail translation area comprises a second result preview area, and the second result preview area comprises a translation result of the mail text content.

The method of claim 10, wherein the method further comprises:

and under the condition that the language used by the text content of the mail is different from the preset system language, responding to the operation of the user for viewing the mail in the inbox, and popping up a third prompt box, wherein the third prompt box comprises third prompt information, and the third prompt information is used for prompting the user that the suspension button is used for translation.

An electronic device, comprising:

a display for displaying a user interface;

a memory storing one or more computer programs;

one or more processors for invoking one or more computer programs stored in the memory to perform the method of any of claims 1-11.

A computer storage medium, in which one or more computer programs are stored, which, when executed by an electronic device, implement the method of any one of claims 1 to 11.

A computer program product, characterized in that, when run on an electronic device, causes the electronic device to perform the method according to any of claims 1 to 11.

45页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:读取装置、读取方法以及读取程序、和结算处理方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!