×

Language translation using embeddable component

  • US 9,405,745 B2
  • Filed: 06/01/2009
  • Issued: 08/02/2016
  • Est. Priority Date: 06/01/2009
  • Status: Active Grant
First Claim
Patent Images

1. A method implemented by a browser executing on a client computer, the browser for interactively browsing Hypertext Markup Language (HTML) pages, the method comprising:

  • obtaining, via a network, an HTML page requested by a user interacting with the browser running on the client computer to select the HTML page, the obtained HTML page containing markup elements including a first element comprising text in a first human language, the markup elements including a script element comprising a uniform resource indicator (URI) identifying a network address and a location thereat of a script provided to arbitrary client computers via the network by a network service corresponding to the network address, the script configured to, when executed, instantiate a translation component, the script not included in the HTML page when the HTML page is obtained by the browser via the network, the script further configured to, when executed, provide a displayable interactive user interface element;

    processing the obtained HTML page by a renderer of the browser, the browser generating a document object model (DOM) of the HTML page by parsing the elements of the obtained HTML page, wherein the renderer produces a rendering of the HTML page according to DOM, the rendering comprising the text in the first human language;

    displaying the rendering of the HTML page, including the text in the first human language, on a display of the client computer;

    the processing including responding, by the renderer, to finding the script element in the obtained HTML page by using the URI therein to load the script from the network service, wherein responsive to loading the script the script is executed by the browser in a browser context comprising the DOM, and wherein the executing the script provides an instance of the translation component;

    displaying, by the browser, an instance of the interactive user interface element provided by the script executing in the context;

    while the rendering is being displayed, displaying the instance of the interactive user interface element by;

    responding to a user input directed to the displayed instance of the interactive user interface element by;

    extracting from the DOM, by the instance of the translation component executing in the context, the text in the first human language;

    determining, by the instance of the translation component, a target human language;

    sending, by the instance of the translation component, a request comprising an indication of the target human language and the extracted text via the network to a translation service;

    receiving, by the instance of the translation component, from the translation service, translated text comprising a translation of the sent extracted text in the target language, the translation having been generated by the translation service responsive to the request and according to the indication of the target human language therein, the translation service available to perform translations for the arbitrary client computers;

    refreshing the rendering of the obtained HTML page by replacing the text in the first human language with the received translated text; and

    displaying the refreshed rendering of the obtained HTML page.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×