예제 #1
0
파일: tran.go 프로젝트: sqp/godock
// Sloc translates the given string using another domain name.
//
func Sloc(domain, str string) string {
	return gettext.DGettext(domain, str)
}
예제 #2
0
파일: i18n.go 프로젝트: niemeyer/snapd
// G is the shorthand for Gettext
func G(msgid string) string {
	return gettext.DGettext(TEXTDOMAIN, msgid)
}
예제 #3
0
파일: tran.go 프로젝트: sqp/godock
// Splug translates the given string in the applet domain.
//
func Splug(str string) string {
	return gettext.DGettext(cdglobal.GettextPackagePlugins, str)
}