Improved docs
This commit is contained in:
@@ -31,6 +31,7 @@ Example:
|
|||||||
// Translate text from domain
|
// Translate text from domain
|
||||||
println(l.GetD("extras", "Translate this"))
|
println(l.GetD("extras", "Translate this"))
|
||||||
}
|
}
|
||||||
|
|
||||||
*/
|
*/
|
||||||
type Locale struct {
|
type Locale struct {
|
||||||
// Path to locale files.
|
// Path to locale files.
|
||||||
|
|||||||
3
po.go
3
po.go
@@ -44,6 +44,8 @@ func (t *translation) getN(n int) string {
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
Po parses the content of any PO file and provides all the translation functions needed.
|
Po parses the content of any PO file and provides all the translation functions needed.
|
||||||
|
It's the base object used by all packafe methods.
|
||||||
|
And it's safe for concurrent use by multiple goroutines by using the sync package for write locking.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
@@ -59,6 +61,7 @@ Example:
|
|||||||
// Get translation
|
// Get translation
|
||||||
println(po.Get("Translate this"))
|
println(po.Get("Translate this"))
|
||||||
}
|
}
|
||||||
|
|
||||||
*/
|
*/
|
||||||
type Po struct {
|
type Po struct {
|
||||||
// Storage
|
// Storage
|
||||||
|
|||||||
Reference in New Issue
Block a user