Quick search:

How to translate type labels

Type labels are retrieved from the corresponding classDescriptor. You can set them by getting a reference to the classDescriptor and then call its method setLabel. If there is no type label set, it defaults to the class name. The initPropertyDescriptors method on the peanut class is a good place to do that.

You can use a code maintenance scheme to hard-code the type label setting. See example 10. Or you can get the type labels from a file or database.