Abstract internationalization of web applications
First Claim
1. A method, comprising:
- storing, by a server, a first set of one or more object files, each object file generated according to a locale of a plurality of locales, each object file generated according to one or more properties files, each properties file associated with a web application of a plurality of web applications;
storing, by a server, a localization module configured to facilitate dynamic internationalization of a web application configured for static internationalization;
receiving, by a server and from a client, a request to use the web application, the request indicating a locale of the client;
determining, by the server, that static internationalization for the request has failed, wherein the web application was developed for static internationalization;
in response to determining that static internationalization has failed, identifying, by the server, one or more constants in a first one of the one or more object files, wherein the one or more object files are executed at the client to generate markup language describing the web application;
generating, using the localization module, a new object file according to the locale of the client, wherein the new object file comprises a localized string for each constant in the first object file, each localized string being generated based on the locale of the client;
generating, by the server, a response comprising the new object file, the first object file, and the localization module;
transmitting, by the server, the response to the client;
by the localization module and at the client, inserting each localized string from the new object file in place of each constant in the generated markup language; and
replacing a plurality of locale-independent keys of the first object file with a plurality of values that correspond to the locale of the client from the new object file.
2 Assignments
0 Petitions
Accused Products
Abstract
According to one embodiment of the present invention, a method for abstract internationalization of web applications may be provided. In this method, a first set of object files may be generated according to a locale of a plurality of locales and one or more properties files. Each properties file may be associated with a web application of a plurality of web applications. A localization module operable to facilitate abstract internationalization of a web application may be stored. A request to use the web application may be received from a client. The request may indicate a locale of the client. A second set of one or more object files may be selected according to the web application and the locale of the client. A response comprising markup language that describes the web application, the second set of object files, and the localization module may be generated and transmitted to a client.
-
Citations
16 Claims
-
1. A method, comprising:
-
storing, by a server, a first set of one or more object files, each object file generated according to a locale of a plurality of locales, each object file generated according to one or more properties files, each properties file associated with a web application of a plurality of web applications; storing, by a server, a localization module configured to facilitate dynamic internationalization of a web application configured for static internationalization; receiving, by a server and from a client, a request to use the web application, the request indicating a locale of the client; determining, by the server, that static internationalization for the request has failed, wherein the web application was developed for static internationalization; in response to determining that static internationalization has failed, identifying, by the server, one or more constants in a first one of the one or more object files, wherein the one or more object files are executed at the client to generate markup language describing the web application; generating, using the localization module, a new object file according to the locale of the client, wherein the new object file comprises a localized string for each constant in the first object file, each localized string being generated based on the locale of the client; generating, by the server, a response comprising the new object file, the first object file, and the localization module; transmitting, by the server, the response to the client; by the localization module and at the client, inserting each localized string from the new object file in place of each constant in the generated markup language; and replacing a plurality of locale-independent keys of the first object file with a plurality of values that correspond to the locale of the client from the new object file. - View Dependent Claims (2, 3, 4, 5)
-
-
6. An apparatus comprising:
-
a memory operable to; store a first set of one or more object files, each object file generated, by a server, according to a locale of a plurality of locales, each object file generated according to one or more properties files, each properties file associated with a web application of a plurality of web applications; store a localization module configured to facilitate dynamic internationalization of a web application configured for static internationalization; one or more processors associated with a server operable to; receive, from a client, a request to use the web application, the request indicating a locale of the client; determine that static internationalization for the request has failed; in response to determining that static internationalization has failed, identifying one or more constants in a first one of the one or more object files, wherein the one or more object files are executed at the client to generate markup language describing the web application; generate, using the localization module, a new object file according to the locale of the client, wherein the new object file comprises a localized string for each constant in the first object file, each localized string being generated based on the locale of the client; generate a response comprising the new object file, the first object file, and the localization module; and transmit the response to the client, wherein the localization module, at the client, inserts each localized string from the new object file in place of each constant in the generated markup language; and replace, at the client, a plurality of locale-independent keys of the first object file with a plurality of values that correspond to the locale of the client from the new object file. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A non-transitory computer-readable storage medium having computer-executable code, when executed by one or more processors operable to:
-
store, by a server, a first set of one or more object files, each object file generated according to a locale of a plurality of locales, each object file generated according to one or more properties files, each properties file associated with a web application of a plurality of web applications; store, by the server, a localization module configured to facilitate dynamic internationalization of a web application configured for static internationalization; receive, by the server and from a client, a request to use a web application, the request indicating a locale of the client; determining, by the server, that static internationalization for the request has failed by determining that none of the object files have been generated according to the locale of the client; in response to determining that static internationalization has failed, identifying, by the server, one or more constants in a first one of the one or more object files, wherein the one or more object files are executed at the client to generate markup language describing the web application; generating, using the localization module, a new object file according to the locale of the client, wherein the new object file comprises a localized string for each constant in the first object file, each localized string being generated based on the locale of the client; generate, by the server, a response comprising the new object file, the first object file, and the localization module; and transmit the response to the client, wherein the localization module, at the client, inserts each localized string from the new object file in place of each constant in the generated markup language; and replace a plurality of locale-independent keys of the first object file with a plurality of values that correspond to the locale of the client from the new object file. - View Dependent Claims (12, 13, 14, 15, 16)
-
Specification