forked from toolshed/abra
Add default POT catalogue, don't alias gotext.Get
This commit is contained in:
@ -1,12 +1,12 @@
|
|||||||
package app
|
package app
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"coopcloud.tech/abra/pkg/lang"
|
"github.com/leonelquinteros/gotext"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
var AppCommand = &cobra.Command{
|
var AppCommand = &cobra.Command{
|
||||||
Use: "app [cmd] [args] [flags]",
|
Use: "app [cmd] [args] [flags]",
|
||||||
Aliases: []string{"a"},
|
Aliases: []string{"a"},
|
||||||
Short: lang.T("Manage apps"),
|
Short: gotext.Get("Manage apps"),
|
||||||
}
|
}
|
||||||
|
12
locales/default.pot
Normal file
12
locales/default.pot
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Language: \n"
|
||||||
|
"X-Generator: xgotext\n"
|
||||||
|
|
||||||
|
#: app.go:11
|
||||||
|
msgid "Manage apps"
|
||||||
|
msgstr ""
|
@ -3,8 +3,6 @@ package lang
|
|||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/leonelquinteros/gotext"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetLocale() string {
|
func GetLocale() string {
|
||||||
@ -30,5 +28,3 @@ func NormalizeLocale(loc string) string {
|
|||||||
|
|
||||||
return loc
|
return loc
|
||||||
}
|
}
|
||||||
|
|
||||||
var T = gotext.Get
|
|
||||||
|
Reference in New Issue
Block a user