Package org.luwrain.i18n
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNumberStr
(int count, String entities) getNumberStr
(Number num, GrammaticalAttr gramAttr, Word depWord) getResource
(String resourceName) getSpeakableText
(String text, Luwrain.SpeakableTextType speakableTextType) getStaticStr
(String id) Provides some statically stored string on corresponding national language.getTextExp
(String expName, Function<Object, Object> args) Word[]
hasSpecialNameOfChar
(char ch) Provides some language-dependent name of the character in one or several words.pastTimeBrief
(Date date)
-
Field Details
-
EN
- See Also:
-
RU
- See Also:
-
-
Method Details
-
getStaticStr
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
, ifid
is unknown
-
hasSpecialNameOfChar
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
-
getNumberStr
-
getNumberStr
-
getWord
-
getSpeakableText
-
getResource
-
getTextExp
-