gettext

package
v0.0.0-...-17244d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bindtextdomain

func Bindtextdomain(domain, dirname string) string

func DGettext

func DGettext(domain, id string) string

func DNGettext

func DNGettext(domain, msgid, plural string, n int) string

func InitI18n

func InitI18n()

func NTr

func NTr(msgid, plural string, n int) string

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)

func Tr

func Tr(id string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL