Interface Lang

All Known Implementing Classes:
LangBase

public interface Lang
The interface for classes implementing national languages. This interface has necessary operations to make environment comfortable for people speaking on some particular language. If you would like to add support of some new foreign language, you certainly should start with this interface.
See Also:
  • Field Details

  • Method Details

    • getStaticStr

      String getStaticStr(String id)
      Provides some statically stored string on corresponding national language. This method should process values related to environment itself, rather than taking care about particular applications.
      Parameters:
      id - The identifier of the string
      Returns:
      Requested string or null, if id is unknown
    • hasSpecialNameOfChar

      String hasSpecialNameOfChar(char ch)
      Provides some language-dependent name of the character in one or several words.
      Parameters:
      ch - The character to get name of
      Returns:
      The name of the given character
    • pastTimeBrief

      String pastTimeBrief(Date date)
    • getNumberStr

      String getNumberStr(int count, String entities)
    • getNumberStr

      String getNumberStr(Number num, GrammaticalAttr gramAttr, Word depWord)
    • getWord

      Word[] getWord(String word)
    • getSpeakableText

      String getSpeakableText(String text, Luwrain.SpeakableTextType speakableTextType)
    • getResource

      InputStream getResource(String resourceName)
    • getTextExp

      String getTextExp(String expName, Function<Object,Object> args)