TranslationsResolver

Locates and return translations.

This is one of the supporting services that work together to implement the framework’s support for i18n, being used by the default implementation TranslationService .

API

TranslationsResolver.java
interface TranslationsResolver {
  List<String> readLines(String file)     (1)
}
1 readLines(String)

Reads the lines from the specified "logical" file name.

Members

readLines(String)

Reads the lines from the specified "logical" file name.

It is the responsibility of TranslationsResolver to determine where the file actually resides (the data could be read from a database, for example, rather than an actual file.

Implementation

The common viewer module provides an implementation of this service, TranslationsResolverDefault. This searches for translation files in the standard WEB-INF/ directory.

Usage Notes

For the "big picture" and further details on Apache Causeway' i18n support, see here.

See Also

This service works in conjunction with LanguageProvider and TranslationService in order to provide i18n support.