org.starhope.util
Interface HasLanguage


public interface HasLanguage

Implement this interface on any object that has a definite language. Note that threads should implement this language interface for the purposes of supporting internationalization

Author:
brpocock@star-hope.org

Method Summary
 String getDialect()
          Get the minor language or dialect code, often a country code (e.g.
 String getLanguage()
          Get the major language code (e.g.
 

Method Detail

getLanguage

String getLanguage()
Get the major language code (e.g. "en", "es")

Returns:
the major language code

getDialect

String getDialect()
Get the minor language or dialect code, often a country code (e.g. "US", "UK", "MX")

Returns:
the minor language or dialect or country code.