Client-side localization of network pages
First Claim
1. A non-transitory computer-readable medium embodying at least one program executable in a first computing device, wherein the at least one program causes the first computing device to at least:
- postpone rendering of a network page in the first computing device and render a placeholder in place of the network page;
determine a locale associated with the first computing device;
identify a plurality of internationalized elements in the network page, wherein each of the plurality of internationalized elements is identified according to a corresponding attribute that indicates internationalization;
send a request for a grouping of translations to a second computing device, the request specifying the locale determined by the first computing device;
obtain the grouping of translations from the second computing device, the grouping of translations including at least one localized translation in a language of the locale and customized for the locale, at least one generic translation in the language of the locale but not customized for the locale, and at least one default translation not in the language of the locale;
replace each of the plurality of internationalized elements in the network page with a corresponding localized translation in the grouping of translations based at least in part on the locale and a value associated with the corresponding attribute that indicates internationalization; and
render the network page for display after the network page has been localized.
1 Assignment
0 Petitions
Accused Products
Abstract
Disclosed are various embodiments for client-side internationalization of network pages. A network page and code that localizes the network page are obtained from a server. The code that localizes the network page is executed in a client and determines a locale associated with the client. One or more internationalized elements are identified in the network page. The internationalized elements are replaced with corresponding localized translations. The network page is rendered for display in the client after the network page has been localized.
58 Citations
23 Claims
-
1. A non-transitory computer-readable medium embodying at least one program executable in a first computing device, wherein the at least one program causes the first computing device to at least:
-
postpone rendering of a network page in the first computing device and render a placeholder in place of the network page; determine a locale associated with the first computing device; identify a plurality of internationalized elements in the network page, wherein each of the plurality of internationalized elements is identified according to a corresponding attribute that indicates internationalization; send a request for a grouping of translations to a second computing device, the request specifying the locale determined by the first computing device; obtain the grouping of translations from the second computing device, the grouping of translations including at least one localized translation in a language of the locale and customized for the locale, at least one generic translation in the language of the locale but not customized for the locale, and at least one default translation not in the language of the locale; replace each of the plurality of internationalized elements in the network page with a corresponding localized translation in the grouping of translations based at least in part on the locale and a value associated with the corresponding attribute that indicates internationalization; and render the network page for display after the network page has been localized. - View Dependent Claims (2, 3)
-
-
4. A computer-implemented method comprising:
-
obtaining, in a first computing device, a network page and code that localizes the network page from a second computing device; executing, in the first computing device, the code that localizes the network page, wherein, when executed, the code is configured to cause the first computing device to at least; determine a locale associated with the first computing device; identify at least one internationalized element in the network page, the at least one internationalized element comprising an image; and replace the at least one internationalized element in the network page with a corresponding localized translation of the image, wherein the replacing further comprises; providing, in the first computing device, a first translation of the at least one internationalized element customized for a region associated with the locale and for a language associated with the locale as the corresponding localized translation when the first translation is available; providing, in the first computing device, a second translation of the at least one internationalized element customized for the language associated with the locale and not customized for the region associated with the locale as the corresponding localized translation when the first translation is unavailable and the second translation is available; and providing, in the first computing device, a third translation of the at least one internationalized element not customized for the language associated with the locale and not customized for the region associated with the locale as the corresponding localized translation when the first translation is unavailable and the second translation is unavailable; and rendering, in the first computing device, the network page for display after the network page has been localized. - View Dependent Claims (5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A system comprising:
a first computing device configured to at least; obtain a request for a network page from a second computing device; and send the network page to the second computing device in response to the request, wherein the network page includes code that localizes the network page that is executable in the second computing device, the code that localizes the network page, when executed, causing the second computing device to at least; determine a locale associated with the second computing device; obtain at least one grouping of translations from the first computing device based at least in part on the locale, wherein the at least one grouping of translations including at least one localized translation in a language of the locale and customized for the locale, at least one generic translation in the language of the locale but not customized for the locale, and at least one default translation not in the language of the locale; identify a plurality of internationalized elements in the network page, individual ones of the plurality of internationalized elements including an attribute that indicates a respective source for a corresponding localized translation; replace the individual ones of the plurality of internationalized elements in the network page with the corresponding localized translation obtained from the first computing device at the respective source; and wherein the second computing device is configured to render the network page for display after the network page has been localized. - View Dependent Claims (20, 21, 22, 23)
Specification