Documentation ¶
Index ¶
- Variables
- func DefLang() string
- func GetLang(state int, accept string) (lng string)
- func IsLang(code string) bool
- func LangMacro(input string, state int, accept string, vde bool) string
- func LangText(in string, state int, accept string, vde bool) (string, bool)
- func UpdateLang(state int, name, value string, vde bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // LangList is the list of available languages. It stores two-bytes codes LangList []string )
Functions ¶
func LangMacro ¶
LangMacro replaces all inclusions of $resname$ in the incoming text with the corresponding language resources, if they exist
func LangText ¶
LangText looks for the specified word through language sources and returns the meaning of the source if it is found. Search goes according to the languages specified in 'accept'
func UpdateLang ¶
UpdateLang updates language sources for the specified state
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.