Embodiments of the present invention relates generally to the technical field of software development and, in one exemplary embodiment, to methods and systems to develop large web-based multi-language applications.
Enterprise application solution providers and enterprise application product vendors face a unique problem not typically found in development of desktop-based applications. These applications are typically required to work in various geographical locations that utilize user interface elements rendered in different languages to reach a broad spectrum of customers. These applications are also typically required to operate on various technology platforms because of the heterogeneous nature of the existing IT architecture.
One common requirement is that, these applications be web-based using a Multi-layer architecture. This web-based operation adds a complex requirement to the development of these applications. In traditional desktop-based applications, localized binaries containing instructions to implement the application are packaged to provide user interface functionality within a target geography. In a web-based application, these applications are hosted in one particular geography, and typically all users from other geographies logon and use the application. As such, these web-based applications must have the capability of supporting multiple locales at runtime.
User Interface elements of web-based applications present many challenges like, displaying labels in many languages and displaying messages and errors in a plurality of different languages depending upon the language used by individual users of the applications. Labels are the texts that appear in the user interface of the application beside controls objects that capture input data from a user. The label text potentially occupies less space in one language and more space in another language. Since screen layout is language-dependent, multiple layouts have to be maintained when localizing application screens in different languages. The use of these multiple layouts have provided inefficiencies in the development and operation of these web-based applications.
Due to all the above reasons, enterprise application development, and especially web-based application development, become very complex when these applications are enabled and adapted for multiple locales. A typical application typically uses hundreds of business functions and tens of thousands of user interface screens in its implementation. A mechanism to improve development of multi-language web-based user interface screens would impact and thus improve development of Web-based multi-locale applications.
The below described embodiments of the present invention are directed to methods and systems to develop large web-based multi-language applications. According to one embodiment, there is provided a system for developing large web-based multi-language applications. The systems includes a user interface specification generation module for modeling software specifications, a localization workbench module for modeling locale specific representations of user interface elements of localization specifications, a locale specific screen generation module for generating language-dependent user interface screens out of the localization model, and a model repository database of generated code and user interface screens used to define an application The application uses a Unicode-based run-time on generated code and user's captured cultural preferences to render the application in multiple languages and to capture, store, and display application data in multiple languages.
In another embodiment, there is provided a method for developing large web-based multi-language applications. The method models software specifications, generates code including user interface screens out of the software specification model, models localization specifications, generating language-dependent user interface screens out of the localization model, packages and deploys the generated code and user interface screens as an application, captures user's cultural preferences; and uses a Unicode-based run-time on the generated code and the user's captured cultural preferences to render the application in multiple languages and to capture, store, and display application data in multiple languages.
In yet another embodiment, there is provided a machine-readable medium storing a set on instructions that, when executed by a machine, cause of the machine to perform a method for developing large web-based multi-language applications. The method models software specifications, generates code including user interface screens out of the software specification model, models localization specifications, generating language-dependent user interface screens out of the localization model, packages and deploys the generated code and user interface screens as an application, captures user's cultural preferences; and uses a Unicode-based run-time on the generated code and the user's captured cultural preferences to render the application in multiple languages and to capture, store, and display application data in multiple languages.
The details of one or more embodiments of the invention are set forth in the accompanying drawings and the description below. Other features of the invention will be apparent from the description and drawings, and from the claims.
a-b represents a two-column layout of a user interface screen object in accordance with an example embodiment of the present invention.
A method and system to develop large web-based multi-language applications are described. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be evident, however, to one skilled in the art that the present invention may be practiced without these specific details.
For applications in which multiple languages are expected to be used by its users, various components of these applications are created in each of these languages and these components are combined into a final application used at runtime. Web-based applications, such as application 120, operate by having these applications hosted on a server 102 that may be accessed by users in different locale. When a user accesses application 120 from a locale 103, the application utilizes other components in the language of locale 103 to render the application in an appropriate language for its users. Similarly, when a user accesses application 120 from a different locale, locale 104, the application utilizes components in a different language used in locale 104 to render the application in its language for its users. This process may be repeated for yet a third locale, locale 105, as needed by all of the users of application 120.
In order for this architecture of application 120 to operate, the application hosted on server 102 is constructed using a model-based software development structure as its core scheme. The user interface specifications for application 120 are captured data into a model-repository 111 using key modeling elements like user interface sections and user interface controls. This process occurs within the software development system 110 as application 120 is being specified.
Controls are the user interface elements like text box items, text area items, combo box items, display only items, grid items and the like. Sections are groupings of controls that are created to construct the user interface of application 120. Controls may be specified in terms of parameters associated with a particular locale. These parameters include location for the controls within the user interface language used for any text components of the user interface, and cultural characteristic of the user interface. These cultural characteristics may include the alphabet used by the local, the direction in which text is rendered, and similar organizational characteristics of the user interface for the locale. Location, language and user's culture may be ignored when the user interface is modeled.
Once locale-independent user interface objects are specified, a screen generator module within the software development system 110 generates user interface screens for a given Locale. The screen generator module will get the layout information as input from a user, and generates the screen for that particular layout. These screens form the components of application 120 used to render user interface screens for locale 103, locale 104, and locale 105 when the application is hosted on server 102 and accessed by multiple users. At runtime, users provide application 120 with parameter values that define each locale and the application utilizes the appropriate component needed to support each individual locale. By dividing the development of application 120 into components of the model-based software development structure, a single application may be easily developed to support the required locale for each supported user.
If a particular locale supports multiple languages, application 120 operates in the same manner as if the application was hosted on the Internet 101. If a particular locale uses only one language, and thus all users utilize the same locale parameters, application 120 may utilize only a subset of the user interface components within application 120 as components used to support another locale are not needed. However, use of the model-based software development structure permits the development and distribution of a single application to support each of the required locale for each supported user without the additional effort of creating different versions of application 120 for each locale. This structure, therefore, simplifies the development process to create only one version of application 120 and does not require maintenance of the multiple locale specific versions of applications as is currently used in prior art systems.
Moreover, those skilled in the art will appreciate that the invention may be practiced with other computer system configurations, including hand-held devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, network PCS, minicomputers, mainframe computers, and the like. The invention may also be practiced in distributed computer environments where tasks are performed by I/O remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.
In the embodiment shown in
As shown in
The system bus 23 can be any of several types of bus structures including a memory bus or memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures. The system memory can also be referred to as simply the memory, and, in some embodiments, includes read-only memory (ROM) 24 and random-access memory (RAM) 25. A basic input/output system (BIOS) program 26, containing the basic routines that help to transfer information between elements within the computer 20, such as during start-up, may be stored in ROM 24. The computer 20 further includes a hard disk drive 27 for reading from and writing to a hard disk, not shown, a magnetic disk drive 28 for reading from or writing to a removable magnetic disk 29, and an optical disk drive 30 for reading from or writing to a removable optical disk 31 such as a CD ROM or other optical media.
The hard disk drive 27, magnetic disk drive 28, and optical disk drive 30 couple with a hard disk drive interface 32, a magnetic disk drive interface 33, and an optical disk drive interface 34, respectively. The drives and their associated computer-readable media provide non volatile storage of computer-readable instructions, data structures, program modules and other data for the computer 20. It should be appreciated by those skilled in the art that any type of computer-readable media which can store data that is accessible by a computer, such as magnetic cassettes, flash memory cards, digital video disks, Bernoulli cartridges, random access memories (RAMs), read only memories (RON[s), redundant arrays of independent disks (e.g., RAID storage devices) and the like, can be used in the exemplary operating environment.
A plurality of program modules can be stored on the hard disk, magnetic disk 29, optical disk 31, ROM 24, or RAM 25, including an operating system 35, one or more application programs 36, other program modules 37, and program data 38. A plug in containing a security transmission engine for the present invention can be resident on any one or number of these computer-readable media.
A user may enter commands and information into computer 20 through input devices such as a keyboard 40 and pointing device 42. Other input devices (not shown) can include a microphone, joystick, game pad, satellite dish, scanner, or the like. These other input devices are often connected to the processing unit 21 through a serial port interface 46 that is coupled to the system bus 23, but can be connected by other interfaces, such as a parallel port, game port, or a universal serial bus (USB). A monitor 47 or other type of display device can also be connected to the system bus 23 via an interface, such as a video adapter 48. The monitor 40 can display a graphical user interface for the user. In addition to the monitor 40, computers typically include other peripheral output devices (not shown), such as speakers and printers.
The computer 20 may operate in a networked environment using logical connections to one or more remote computers or servers, such as remote computer 49. These logical connections are achieved by a communication device coupled to or a part of the computer 20; the invention is not limited to a particular type of communications device. The remote computer 49 can be another computer, a server, a router, a network PC, a client, a peer device or other common network node, and typically includes many or all of the elements described above I/O relative to the computer 20, although only a memory storage device 50 has been illustrated. The logical connections depicted in
When used in a LAN-networking environment, the computer 20 is connected to the LAN 51 through a network interface or adapter 53, which is one type of communications device. In some embodiments, when used in a WAN-networking environment, the computer 20 typically includes a modem 54 (another type of communications device) or any other type of communications device, e.g., a wireless transceiver, for establishing communications over the wide-area network 52, such as the internet. The modem 54, which may be internal or external, is connected to the system bus 23 via the serial port interface 46. In a networked environment, program modules depicted relative to the computer 20 can be stored in the remote memory storage device 50 of remote computer, or server 49. It is appreciated that the network connections shown are exemplary and other means of, and communications devices for, establishing a communications link between the computers may be used including hybrid fiber-coax connections, T1-T3 lines, DSL's, OC-3 and/or OC-12, TCP/IP, microwave, wireless application protocol, and any other electronic media through any suitable switches, routers, outlets and power lines, as the same are known and understood by one of ordinary skill in the art.
In the foregoing detailed description of embodiments of the invention, various features are grouped together in a single embodiment for the purpose of streamlining the disclosure. This method of disclosure is not to be interpreted as reflecting an intention that the claimed embodiments of the invention require more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive subject matter lies in less than all features of a single disclosed embodiment. Thus the following claims are hereby incorporated into the detailed description of embodiments of the invention, with each claim standing on its own as a separate embodiment. It is understood that the above description is intended to be illustrative, and not restrictive. It is intended to cover all alternatives, modifications and equivalents as may be included within the spirit and scope of the invention as defined in the appended claims. Many other embodiments will be apparent to those of skill in the art upon reviewing the above description. The scope of the invention should, therefore, be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled. In the appended claims, the terms “including” and “in which” are used as the plain-English equivalents of the respective terms “comprising” and “wherein,” respectively. Moreover, the terms “first,” “second,” and “third,” etc., are used merely as labels, and are not intended to impose numerical requirements on their objects.
a-b represents a two-column layout of a user interface screen object in accordance with an example embodiment of the present invention. Consider a user interface group 400 containing four input text fields 401-404 each having a corresponding text label 411-414. User interface group 400 within
b represents another representation of a two-column layout of a user interface screen object in accordance with an example embodiment of the present invention. In
For a given locale, a particular layout arrangement may be appropriate. The layout, text layout, alphabet character set and other specification characteristics are specified using the locale parameters. These values are used to render group 400 containing four controls 401-404 and the corresponding four labels 411-414. All of these values are specified when the user interface screens are defined in the software development system 110. These same values are used at runtime by server 102 to generate a user interface screen sent to locale 103 client as requested.
Locale specific screen generation module 503 accepts the locale independent user interface group information from user interface specification generation module 501 and locale specific information from localization workbench module 502 to generate a set of locale specific screens used within application 120. Each of the screens for an individual locale may be stored within a locale specific screen database 521-522.
Application 120 is constructed using all of the locale specific screen databases 521-522 needed to support any desired locale. All the screens are then packaged and deployed. The runtime retrieves the localized screens based on the language of choice of the user. So the Layout could be totally different for a Locale based on its Language. The automatic generation of screens makes it easy to develop and deliver any number of screens (Hundreds of Thousands of Screens) for any number of Locales. This is because screen modeling needs to be done only once and the screen can then duplicated for each language in which it needs to be rendered.
The runtime operation of application 120 utilizes a Unicode based (UTF8) runtime, which will support all languages, and it is platform neutral. The innate capability of the modeling approach also offers technology-platform independence. Hence, the developed solutions will work on a variety of platforms, including, Microsoft Windows platform, Solaris, AIX, HP-UX, OS/400 etc.
For rendering data in locale-specific form, application 120 introduces a step called User Preference setting at deployment time that involves capturing of the User's preferred Locale settings. For example the user can specify his preferred format for date, time, numbering format, language preferences etc. These preferences are used when the data is displayed or captured in the User Interface screens. This technique gives the flexibility to the user to switch to the language of his choice at runtime. This is a very powerful feature when it comes to large Enterprise solutions.
Localization and Internationalization Technique described herein addresses key issues of Web based Enterprise Applications development and delivery. It provides a powerful technique for addressing local preferences when developing, delivering and maintaining a multiple Locale based Web Application.
In
Model repository 111 also contains an entry 602a for each user interface group defined by a user of software development system 110. These entries define the group using its unique group ID 621a, group name used by a user 622a, and a set of record entries for each user interface control item included within the group 602a. The record entries for these user interface control items include at least the control ID parameter 623a, 625a for each user interface control items in the group. These control ID parameters match the control ID values of the database entries in the model repository 110 used to define the user interface control item. The record entries for these user interface control items include a set of parameter values 624a, 626a containing the locale parameters corresponding to the user interface control items used to define the group. Using these record fields, a group for a particular locale may be defined for its correct use in application 120 supporting a given user within his or her locale. Model repository 110 may contain as many group entries 602a as needed to define the user control groups desired by a user.
Users model localization specifications in operation 713 to define the various locale to be supported by application 120. In operation 713, the user interface control items are defined for each of these supported locales. These definitions contain the locale parameter values needed to define needed user interface control items and needed user interface groups in each of the supported locale. All of these data entries are used within operation 714 to generate locale specific user interface screens needed to define application 120 for all supported locale.
Once these locale specific user interface screens are created, application 120 is created in operation 715 with packaging and deploying of these locale specific data to the server 102 hosting application 120. The application 120 is ready to support users in a runtime operation. Users specify locale specific preferences in operation 716 that are used to define a specific locale. These preferences are used to define the locale parameters referenced when the user accesses application 120. At runtime, application 120 renders its user interface components containing screens, controls and items needed for a user to interact with application 120 in operation 717. In operation 717, the user transmits requests for service by application 120 that contains data to both identify operations to be performed and specify locale in which the user interface is defined. Application 120 performs any required operation to perform is functionality and then renders its user interface representation using the locale specific screens and other items as refined above. The runtime actions of operation 717 are repeated as necessary to provide users functionality of application 120.
Thus, a method and system developing large web-based multi-language applications have been described. Although the present invention has been described with reference to specific exemplary embodiments, it will be evident that various modifications and changes may be made to these embodiments without departing from the broader spirit and scope of the invention. Accordingly, the specification and drawings are to be regarded in an illustrative rather than a restrictive sense.
Benefit is claimed under 35 U.S.C. 119(e) to U.S. Provisional Application Ser. No. 60/553,255, entitled “titled “An approach for developing large web-based multi-language Enterprise applications”.” by inventor Sundararajan Parthasarathy et al., filed Mar. 15, 2004, which is herein incorporated in its entirety by reference for all purposes.
Number | Date | Country | |
---|---|---|---|
60553255 | Mar 2004 | US |