Documentation ¶
Index ¶
- Variables
- func BindTextdomain(domainname string, dirname string) string
- func BindTextdomainCodeset(domainname string, codeset string) string
- func DCGettext(domain string, msgid string, category uint) string
- func DCNGettext(domainname string, msgid string, msgid_plural string, n uint64, category uint) string
- func DGettext(domain string, msgid string) string
- func DNGettext(domainname string, msgid string, msgid_plural string, n uint64) string
- func Gettext(msgid string) string
- func NGettext(msgid string, msgid_plural string, n uint64) string
- func SetLocale(category uint, locale string) string
- func Sprintf(format string, a ...interface{}) string
- func Textdomain(domainname string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // For all of the locale. LC_ALL = uint(C.LC_ALL) // For regular expression matching (it determines the meaning of range // expressions and equivalence classes) and string collation. LC_COLATE = uint(C.LC_ALL) // For regular expression matching, character classification, conversion, // case-sensitive comparison, and wide character functions. LC_CTYPE = uint(C.LC_CTYPE) // For localizable natural-language messages. LC_MESSAGES = uint(C.LC_MESSAGES) // For monetary formatting. LC_MONETARY = uint(C.LC_MONETARY) // For number formatting (such as the decimal point and the thousands // separator). LC_NUMERIC = uint(C.LC_NUMERIC) // For time and date formatting. LC_TIME = uint(C.LC_TIME) )
Functions ¶
func BindTextdomain ¶
Sets directory containing message catalogs.
func BindTextdomainCodeset ¶
Sets the output codeset for message catalogs for domain domainname.
func DCNGettext ¶
func DCNGettext(domainname string, msgid string, msgid_plural string, n uint64, category uint) string
Like NGettext(), but looking up the message in the specified domain and category.
func Gettext ¶
Attempt to translate a text string into the user's native language, by looking up the translation in a message catalog.
func NGettext ¶
Attempt to translate a text string into the user's native language, by looking up the appropriate plural form of the translation in a message catalog.
func Textdomain ¶
Sets or retrieves the current message domain.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.