Algorithm for localization of a JAVA application using reflection API and a custom class loader
Abstract
A method and corresponding apparatus for localization of a JAVA® application using a reflection API and a custom class loader use specifics of JAVA® language to provide localization of certain data elements, i.e., variables, of the application during class loading. The method and corresponding apparatus for localization reduce complexity of the JAVA® application by eliminating the function code dedicated to localization. In addition, the method and apparatus for localization increase productivity of engineers who write language-independent code, and reduce memory consumption of classes that use localized strings. Since all localization is accomplished when the class is loaded and since the code that uses localization is independent of the code performing localization, the method and apparatus for localization ensure better performance of the application and afford better code reusability.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 29.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for localization of computer software application, comprising: locating a plurality of localizable variables of a class using a custom class loader; finding a corresponding resource file for a current language for each localizable variable by searching variables with predefined prefix; calculating a key for each localizable variable by deleting the prefix and combining a class name and a variable name; finding a localized string in the resource file corresponding to each key; and assigning the localized string to the corresponding localizable variable of the class, wherein the custom
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 29 total)
References Cited — Backward Prior Art (6)
Non-Patent Literature (5)
- Brandon, Daneil, Jr; "Localization of Web Content", p. 345-358, ACM Dec. 2001, retrieved Sep. 16, 2004.
- Jul. 23, 2003 GB Search Report corresponding to application No. 0227216.9 in GB.
- Kokkotos, Stavros; Spyropoulos, Constantine D. "An Architecture for Designing Internationalized Software", p. 13-21, IEEE Jul. 1997, retrieved Sep. 16, 2004.
- Liang, Sheng; Bracha, Gilad; "Dynamic Class Loading in the JAVA Virtual Machine", p. 36-44, 1998 ACM, retrieved Sep. 16, 2004.
- Piroumian, Vartan; "Internationalization Support in JAVA", p. 20-29, IEEE 1997, retrieved Sep. 16, 2004.