Documentation
¶
Index ¶
- Variables
- func BindTextdomainCodeset(domain, codeset string) string
- func Bindtextdomain(domain, dirname string) string
- func DGettext(domain, id string) string
- func DNGettext(domain, msgid, plural string, n int) string
- func InitI18n()
- func NTr(msgid, plural string, n int) string
- func QueryLang() string
- func QueryLangs() []string
- func SetLocale(category int, locale string) string
- func Textdomain(domain string)
- func Tr(id string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // LcAll is for all of the locale. LcAll = int(C.LC_ALL) // LcCollate is for regular expression matching (it determines the meaning of // range expressions and equivalence classes) and string collation. LcCollate = int(C.LC_COLLATE) // LcCtype is for regular expression matching, character classification, // conversion, case-sensitive comparison, and wide character functions. LcCtype = int(C.LC_CTYPE) // LcMessages is for localizable natural-language messages. LcMessages = int(C.LC_MESSAGES) // LcMonetary is for monetary formatting. LcMonetary = int(C.LC_MONETARY) // LcNumeric is for number formatting (such as the decimal point and the // thousands separator). LcNumeric = int(C.LC_NUMERIC) // LcTime is for time and date formatting. LcTime = int(C.LC_TIME) )
Functions ¶
func BindTextdomainCodeset ¶
func Bindtextdomain ¶
func QueryLang ¶
func QueryLang() string
QueryLang return user lang. the rule is document at man gettext(3)
func QueryLangs ¶
func QueryLangs() []string
QueryLangs return array of user lang, split by ":". the rule is document at man gettext(3)
func Textdomain ¶
func Textdomain(domain string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.