...

Source file src/github.com/chai2010/gettext-go/examples/hi/hi.go

Documentation: github.com/chai2010/gettext-go/examples/hi

     1  // Copyright 2013 <chaishushan{AT}gmail.com>. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Package hi is a example pkg.
     6  package hi
     7  
     8  import (
     9  	"fmt"
    10  
    11  	"github.com/chai2010/gettext-go"
    12  )
    13  
    14  func SayHi() {
    15  	fmt.Println(gettext.Gettext("pkg hi: Hello, world!"))
    16  	fmt.Println(gettext.PGettext("code.google.com/p/gettext-go/examples/hi.SayHi", "pkg hi: Hello, world!"))
    17  }
    18  

View as plain text