| CPC G06F 40/58 (2020.01) [G06F 3/0482 (2013.01); G06F 3/0488 (2013.01); G06F 2203/04803 (2013.01)] | 20 Claims |

|
1. A translation method, applied to an electronic device configured to execute an application, the method comprising:
displaying a first interface of the application, wherein the first interface comprises a first text;
responsive to receiving a first operation of a user on the first text, displaying a first control, wherein the first control comprises a copy option and a translation option;
responsive to receipt of a copy operation of the user on the copy option, writing the first text into a clipboard of the electronic device and displaying a first floating ball control in the first interface;
responsive to receipt of a floating ball operation of the user on the first floating ball control, displaying a floating window in the first interface, wherein the floating window comprises the first text in a first language and a first translation in a second language corresponding to the first text, and the floating window is displayed in a first state; and
responsive to receipt of a translation operation of the user on the translation option, displaying the floating window in the first interface, wherein the floating window is displayed in a second state.
|