Add default POT catalogue, don't alias gotext.Get
This commit is contained in:
@ -1,12 +1,12 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"coopcloud.tech/abra/pkg/lang"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var AppCommand = &cobra.Command{
|
||||
Use: "app [cmd] [args] [flags]",
|
||||
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 (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/leonelquinteros/gotext"
|
||||
)
|
||||
|
||||
func GetLocale() string {
|
||||
@ -30,5 +28,3 @@ func NormalizeLocale(loc string) string {
|
||||
|
||||
return loc
|
||||
}
|
||||
|
||||
var T = gotext.Get
|
||||
|
Reference in New Issue
Block a user