Patent ID: 7904883
Filing Date: 2011-03-08
Classification: G06F

Abstract:
1. A computer-implemented method of processing localizable data structures, the method comprising: obtaining an initial class containing localizable properties and non-localizable properties, the localizable properties including data that is translatable into multiple languages and the non-localizable properties including data that is not translatable into the multiple languages; receiving a class definition that includes code that indicates which of the initial class properties are the localizable properties and which of the initial class properties are the non-localizable properties; utilizing a computer processor that is a component of the computer and the class definition to apply a localizable object pattern to the initial class to transform the initial class into a base-part class and a plurality of translation-part classes, each of the plurality of translation-part classes corresponding to one of the multiple languages, the translation-part classes having a composition relationship with the base-part class, the plurality of translation-part classes being created for the multiple languages for which translations are provided, each of the translation-part classes including the localizable properties of the initial class and not including the non-localizable properties of the initial class, the base-part class including the localizable properties of the initial class and the non-localizable properties of the initial class, the localizable properties in the base-part class being in a base language of an operating system of the computer; and including a current language property in the base-part class, the current language property acting as a language switch such that, when a value of the current language property indicates another one of the multiple languages that is different than the base language, then a process of accessing the base-part class to retrieve the localizable properties of the initial class includes accessing and substituting for the localized properties of the base-part class, the localizable properties in one of the translation part-classes, the one of the translation part-classes corresponding to the another one of the multiple languages that is different than the base language, the localizable properties in the one of the translation part-classes including a name and a description, and the localizable properties in the one of the translation part-classes not including an ID and a barcode that are included in the non-localizable properties of the base-part class.