fix path on different OS

This commit is contained in:
2020-07-29 16:47:49 +02:00
parent b4ab6497b5
commit bb9b8c2585
4 changed files with 45 additions and 47 deletions

View File

@@ -1,25 +1,25 @@
/*
* Package gotext implements GNU gettext utilities.
*
* For quick/simple translations you can use the package level functions directly.
*
* import (
* "fmt"
* "git.deineagentur.com/DeineAgenturUG/gotext"
* )
*
* func main() {
* // Configure package
* gotext.Configure("/path/to/locales/root/dir", "en_UK", "domain-name")
*
* // Translate text from default domain
* fmt.Println(gotext.Get("My text on 'domain-name' domain"))
*
* // Translate text from a different domain without reconfigure
* fmt.Println(gotext.GetD("domain2", "Another text on a different domain"))
* }
*
*/
Package gotext implements GNU gettext utilities.
For quick/simple translations you can use the package level functions directly.
import (
"fmt"
"git.deineagentur.com/DeineAgenturUG/gotext"
)
func main() {
// Configure package
gotext.Configure("/path/to/locales/root/dir", "en_UK", "domain-name")
// Translate text from default domain
fmt.Println(gotext.Get("My text on 'domain-name' domain"))
// Translate text from a different domain without reconfigure
fmt.Println(gotext.GetD("domain2", "Another text on a different domain"))
}
*/
package gotext
import (