hack/update-vendor.sh
This commit is contained in:
22
vendor/github.com/chai2010/gettext-go/gettext/hello.go
generated
vendored
22
vendor/github.com/chai2010/gettext-go/gettext/hello.go
generated
vendored
@@ -1,22 +0,0 @@
|
||||
// Copyright 2013 <chaishushan{AT}gmail.com>. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build ignore
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/chai2010/gettext-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
gettext.SetLocale("zh_CN")
|
||||
gettext.BindTextdomain("hello", "../examples/local", nil)
|
||||
gettext.Textdomain("hello")
|
||||
|
||||
fmt.Println(gettext.Gettext("Hello, world!"))
|
||||
// Output: 你好, 世界!
|
||||
}
|
Reference in New Issue
Block a user