Add github.com/chai2010/gettext-go dependency

This commit is contained in:
Brendan Burns
2016-12-13 23:17:25 -08:00
parent b3e57253cc
commit 6dd760d312
30 changed files with 2885 additions and 0 deletions

22
vendor/github.com/chai2010/gettext-go/gettext/hello.go generated vendored Normal file
View File

@@ -0,0 +1,22 @@
// 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: 你好, 世界!
}