Module org.tquadrat.foundation.i18n
Package org.tquadrat.foundation.i18n
Annotation Interface Translation
@Retention(SOURCE)
@Target({FIELD,METHOD})
@ClassVersion(sourceVersion="$Id: Translation.java 882 2021-02-27 19:01:25Z tquadrat $")
@API(status=STABLE,
since="0.0.2")
public @interface Translation
Use this annotation to define a text for a message or a UI element that has to be translated. The build process will take care of this definition and creates the required resource bundle properties files.
This annotation can only be used in conjunction with the annotations
@Text
and
@Message
.
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: Translation.java 882 2021-02-27 19:01:25Z tquadrat $
- Since:
- 0.0.2
-
Required Element Summary
Required Elements
-
Element Details
-
language
Returns the name of the language for this translation. At least, this has to be the ISO language code, but it can be extended to a full locale id with country code and extensions, if desired.- Returns:
- The locale.
- See Also:
-
text
Returns the text itself.- Returns:
- The translated text for the language defined by the locale.
-