| CPC G06F 40/58 (2020.01) [G06F 3/013 (2013.01); G06F 3/0485 (2013.01); G06F 3/0488 (2013.01); G06V 30/1444 (2022.01); G06V 30/147 (2022.01)] | 20 Claims |

|
1. A content display method, applied in an electronic device, the method comprising:
obtaining a screen state of the electronic device;
determining a first to-be-translated content in a display interface in response to the screen state being a non-touch state;
translating the first to-be-translated content to obtain a first translation content, and displaying the first translation content; and
stopping displaying the first translation content in response to the screen state being switched to a touched state;
wherein the method further comprises, subsequent to said stopping displaying the first translation content:
obtaining a touch operation in the touched state; and
in response to the touch operation being a sliding operation, sliding and displaying, on the display interface, a page content of a page where the first to-be-translated content is located;
determining a second to-be-translated content in the display interface in response to the screen state being switched to the non-touch state, wherein the second to-be-translated content is a to-be-translated content in a page content after sliding the page where the first to-be-translated content is located; and
translating the second to-be-translated content to obtain a second translation content, comprising:
obtaining a difference content between the second to-be-translated content and the first to-be-translated content;
translating the difference content to obtain a third translation content, and obtaining, from the first translation content, a fourth translation content corresponding to a same content between the second to-be-translated content and the first to-be-translated content; and
obtaining the second translation content based on the third translation content and the fourth translation content; and
displaying the second translation content.
|