Translating application resources
AssigneeGoogle Inc.
InventorsGenqing Wu, Hanping Feng
Life of this patent
Estimating the term…
Abstract
According to one general aspect a system includes an identification module, a translation module, and a display module. The identification module being configured to identify when an application running within the system attempts to display a work to a user of the application in a first language. The translation module being configured to translate the word from the first language to a second language different than the first language. The display module being configured to display the word in the second language to the user.
Claims24
A method performed by a computing device having at least one processor and a memory, the method comprising:
- receiving, from an application being executed by the at least one processor, a request to provide a first word for use by the application;
- determining a default language of the computing device;
- accessing, in the memory of the computing device, one or more resources;
- determining if the one or more resources include the first word in the default language by iteratively eliminating, based on identified qualifiers, resource directories for the one or more resources until only one resource directory remains, the one resource directory excluding resource files that contradict a configuration of the computing device;
- if the one or more resources include the first word in the default language, then providing, from the one resource directory, the first word to the application;
- and
- if the one or more resources do not include the first word in the default language, then:
- transmitting the first word and an indication of the default language to a translation server;
- receiving from the translation server a second word obtained by translating the first word into the default language;
- and
- providing the second word to the application.
A computing device having at least one processor and a memory, comprising:
- a receiving module configured to receive a request from an application to provide a first word for use by the application;
- a first determination module configured to determine a default language of the computing device;
- an accessing module configured to access one or more resources stored in the memory;
- a second determination module configured to determine if the one or more resources include the first word in the default language by iteratively eliminating, based on identified qualifiers, resource directories for the one or more resources until only one resource directory remains, the one resource directory excluding resource files that contradict a configuration of the computing device;
- and
- a transmitting module, the transmitting module configured to transmit the first word in the default language to the application if the one or more resources include the first word in the default language, the transmitting module configured to transmit the first word and an indication of the default language to a translation server, receive from the translation server a second word obtained by translating the first word into the default language, and transmit the second word to the application.
A computer program product tangibly embodied on a non-transitory computer readable medium and comprising instructions that, if executed, cause at least one processor of a computing device to:
- receive, from an application being executed by the at least one processor, a request to provide a first word for use by the application;
- determine a default language of the computing device;
- access, in a memory of the computing device, one or more resources;
- determine if the one or more resources include the first word in the default language by iteratively eliminating, based on identified qualifiers, resource directories for the one or more resources until only one resource directory remains, the one resource directory excluding resource files that contradict a configuration of the computing device;
- if the one or more resources include the first word in the default language, then provide, from the one resource directory, the first word to the application;
- and
- if the one or more resources do not include the first word in the default language, then:
- transmit the first word and an indication of the default language to a translation server;
- receive from the translation server a second word obtained by translating the first word into the default language;
- and
- provide the second word to the application.
Dependencies are inferred from the claim text.