US 12,481,842 B2
Translation method and electronic device
Junfeng Liu, Beijing (CN); and Chaojie Yan, Beijing (CN)
Assigned to HONOR DEVICE CO., LTD., Shenzhen (CN)
Appl. No. 18/004,797
Filed by Honor Device Co., Ltd., Shenzhen (CN)
PCT Filed Aug. 18, 2022, PCT No. PCT/CN2022/113390
§ 371(c)(1), (2) Date Jan. 9, 2023,
PCT Pub. No. WO2023/030030, PCT Pub. Date Mar. 9, 2023.
Claims priority of application No. 202111028829.9 (CN), filed on Sep. 2, 2021; and application No. 202210023045.5 (CN), filed on Jan. 10, 2022.
Prior Publication US 2024/0127007 A1, Apr. 18, 2024
Int. Cl. G06F 40/58 (2020.01); G06F 3/0482 (2013.01); G06F 3/0488 (2022.01)
CPC G06F 40/58 (2020.01) [G06F 3/0482 (2013.01); G06F 3/0488 (2013.01); G06F 2203/04803 (2013.01)] 20 Claims
OG exemplary drawing
 
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.