Package org.luwrain.i18n
Class LangBase
java.lang.Object
org.luwrain.i18n.LangBase
- All Implemented Interfaces:
Lang
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNumberStr
(Number num, GrammaticalAttr gramAttr, Word depWord) getResource
(String resourceName) 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.luwrain.i18n.Lang
getNumberStr, getSpeakableText, pastTimeBrief
-
Field Details
-
langName
-
luwrain
-
staticStrings
-
chars
-
-
Constructor Details
-
LangBase
-
-
Method Details
-
getStaticStr
Description copied from interface:Lang
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.- Specified by:
getStaticStr
in interfaceLang
- Parameters:
id
- The identifier of the string- Returns:
- Requested string or
null
, ifid
is unknown
-
hasSpecialNameOfChar
Description copied from interface:Lang
Provides some language-dependent name of the character in one or several words.- Specified by:
hasSpecialNameOfChar
in interfaceLang
- Parameters:
ch
- The character to get name of- Returns:
- The name of the given character
-
getNumberStr
- Specified by:
getNumberStr
in interfaceLang
-
getWord
-
getResource
- Specified by:
getResource
in interfaceLang
-
getTextExp
- Specified by:
getTextExp
in interfaceLang
-