public static abstract @interface

LocalizableResource.Generate

implements Annotation
com.google.gwt.i18n.client.LocalizableResource.Generate

Class Overview

Requests that a translation source file be generated from the annotated interface. The file type is determined by the format argument, and the file name by the optional fileName argument. Some file formats support aggregating messages from multiple interfaces into one file, while others do not; also, additional parameters may be specified via format-specific annotations -- see the documentation of the MessageCatalogFormat implementation for details. Examples:

  • @Generate(format = "com.google.gwt.i18n.rebind.format.Properties")
    generates properties files for all locales, and the names will be of the form MyMessages_locale.properties
  • @Generate(format = {"com.example.ProprietaryFormat1", "com.example.ProprietaryFormat2", fileName = "myapp_translate_source", locales = {"default"})}
    generates default files in two proprietary formats, with filenames like myapp_translate_source.p1 and myapp_translate_source.p2

Summary

Constants
String DEFAULT Constant "magic" default value used to detect that no value was supplied for the fileName parameter.
[Expand]
Inherited Methods
From interface java.lang.annotation.Annotation

Constants

public static final String DEFAULT

Constant "magic" default value used to detect that no value was supplied for the fileName parameter.

Constant Value: "[default]"