mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-25 13:57:56 +02:00
Mark user interface strings
For now exclude command help, as cobra itself is not localizable yet.
This commit is contained in:
parent
511b71b909
commit
d6ca8d33f7
27 changed files with 1005 additions and 95 deletions
|
@ -22,6 +22,7 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
"go.uploadedlobster.com/scotty/internal/backends"
|
||||
"go.uploadedlobster.com/scotty/internal/i18n"
|
||||
)
|
||||
|
||||
var backendsCmd = &cobra.Command{
|
||||
|
@ -32,8 +33,8 @@ var backendsCmd = &cobra.Command{
|
|||
backends := backends.GetBackends()
|
||||
for _, info := range backends {
|
||||
fmt.Printf("%s:\n", info.Name)
|
||||
fmt.Printf("\texport: %s\n", strings.Join(info.ExportCapabilities, ", "))
|
||||
fmt.Printf("\timport: %s\n\n", strings.Join(info.ImportCapabilities, ", "))
|
||||
fmt.Println(i18n.Tr("\texport: %s", strings.Join(info.ExportCapabilities, ", ")))
|
||||
fmt.Println(i18n.Tr("\timport: %s\n", strings.Join(info.ImportCapabilities, ", ")))
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue