Server-side internationalization and localization of web applications using a scripting language
First Claim
1. A method comprising:
- receiving a request for a web page from a client web browser, the request comprising a locale identifier that specifies a preferred language and a web page identifier;
searching mapping data stored in a local data store associating web page identifiers with keys that correspond to the web page identifiers to identify one or more keys mapped to the web page identifier, the one or more keys being identifiers of translatable terms within a plurality of web pages;
searching, within the local data store, to identify a sub-set of a plurality of translations that corresponds to one or more translatable terms in the requested web page, wherein the sub-set is identified using the locale identifier and the one or more keys;
dynamically generating a client-executable script to provide the sub-set of translations that correspond to the one or more terms to the client web browser; and
transmitting, by a processing device of a server, the requested web page together with the client-executable script comprising the sub-set of translations for the requested web page to the client web browser,wherein transmitting the requested web page together with the client-executable script comprises;
transmitting the client-executable script in an external file that is separate from the web page; and
embedding a reference to the external file in a section of code of the web page, wherein, when the web page is loaded by the client web browser, the client-executable script in the external file is executed to render the web page in the preferred language associated with the locale identifier.
1 Assignment
0 Petitions
Accused Products
Abstract
A server computing system receives a request for a web page from a client that specifies a preferred language and searches mapping data stored in a local data store using a web page identifier in the request to locate one or more terms for the requested web page to be translated. The server computing system searches translations for web pages in the local data store for a sub-set of the translations that correspond to the terms for the requested web page in the specified language. The computer system generates a client-executable script to provide the sub-set of translations that correspond to the terms to the client and transmits the requested web page and the client-executable script having the sub-set of translations for the requested web page to the client. The client-executable script, when executed on the client, renders the web page in the specified language.
-
Citations
11 Claims
-
1. A method comprising:
-
receiving a request for a web page from a client web browser, the request comprising a locale identifier that specifies a preferred language and a web page identifier; searching mapping data stored in a local data store associating web page identifiers with keys that correspond to the web page identifiers to identify one or more keys mapped to the web page identifier, the one or more keys being identifiers of translatable terms within a plurality of web pages; searching, within the local data store, to identify a sub-set of a plurality of translations that corresponds to one or more translatable terms in the requested web page, wherein the sub-set is identified using the locale identifier and the one or more keys; dynamically generating a client-executable script to provide the sub-set of translations that correspond to the one or more terms to the client web browser; and transmitting, by a processing device of a server, the requested web page together with the client-executable script comprising the sub-set of translations for the requested web page to the client web browser, wherein transmitting the requested web page together with the client-executable script comprises; transmitting the client-executable script in an external file that is separate from the web page; and embedding a reference to the external file in a section of code of the web page, wherein, when the web page is loaded by the client web browser, the client-executable script in the external file is executed to render the web page in the preferred language associated with the locale identifier. - View Dependent Claims (2, 3, 4)
-
-
5. A system comprising:
-
a memory to store a plurality of translations of terms for a plurality of web pages; and a processing device operatively coupled to the memory to; receive a request for a web page from a client web browser, the request comprising a locale identifier that specifies a preferred language and a web page identifier; search mapping data stored in a local data store associating web page identifiers with keys that correspond to the web page identifiers to identify one or more keys mapped to the web page identifier, the one or more keys being identifiers of translatable terms within a plurality of web pages; search, within the local data store, to identify a sub-set of a plurality of translations that corresponds to one or more translatable terms in the requested web page, wherein the sub-set is identified using the locale identifier and the one or more keys; dynamically generate a client-executable script to provide the sub-set of translations that correspond to the one or more terms to the client web browser; and transmit the requested web page together with the client-executable script comprising the sub-set of translations for the requested web page to the client web browser, wherein to transmit the requested web page and the client-executable script the processing device is to; transmit the client-executable script in an external file that is separate from the web page; and embed a reference to the external file in a section of code of the web page, wherein, when the web page is loaded by the client, the client-executable script in the external file is executed to render the web page in a language associated with the locale identifier. - View Dependent Claims (6, 7, 8)
-
-
9. A non-transitory computer-readable storage medium including instructions that, when executed by a processing device of a server, cause the processing device to:
-
receive a request for a web page from a client web browser, the request comprising a locale identifier that specifies a preferred language and a web page identifier; search mapping data stored in a local data store associating web page identifiers with keys that correspond to the web page identifiers to identify one or more keys mapped to the web page identifier, the one or more keys being identifiers of translatable terms within a plurality of web pages; search, within the local data store, to identify a sub-set of a plurality of translations that corresponds to one or more translatable terms in the requested web page, wherein the sub-set is identified using the locale identifier and the one or more keys; dynamically generate a client-executable script to provide the sub-set of translations that correspond to the one or more terms to the client web browser; and transmit the requested web page together with the client-executable script comprising the sub-set of translations for the requested web page to the client web browser, wherein to transmit the requested web page and the client-executable script, the instructions, when executed by the processing device of the server, further cause the processing device to; transmit the client-executable script in an external file that is separate from the web page; and embed a reference to the external file in a section of code of the web page, wherein, when the web page is loaded by the client, the client-executable script in the external file is executed to render the web page in a language associated with the locale identifier. - View Dependent Claims (10, 11)
-
Specification