public interface LocalizableResource extends Localizable
Each (and the Constants subinterface ConstantsWithLookup) provide compile-time localization of
various forms of data. Messages is used for MessageFormat-style strings which can
have parameters (including support for plural forms), while Constants can be other types, have
simplified quoting requirements, and do not take any parameters.
The annotations defined here are common to both -- see the individual subinterfaces for additional annotations which apply only to each one.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
LocalizableResource.DefaultLocale
Specifies the default locale for messages in this file.
|
static interface |
LocalizableResource.Description
Specifies a description of the string to be translated, such as a note about the context.
|
static interface |
LocalizableResource.Generate
Requests that a translation source file be generated from the annotated interface.
|
static interface |
LocalizableResource.GeneratedFrom
Annotation indicating this is a generated file and the source file it was generated from.
|
static interface |
LocalizableResource.GenerateKeys
Requests that the keys for messages be generated automatically.
|
static interface |
LocalizableResource.Key
The key used for lookup of translated strings.
|
static interface |
LocalizableResource.Meaning
Specifies the meaning of the translated string.
|
Localizable.I18nLocaleSuffuxes, Localizable.IsLocalizableCopyright © 2018–2020. All rights reserved.