Extract strings for translation for the kubectl config family.

This commit is contained in:
Brendan Burns
2017-01-24 17:01:55 -08:00
parent f83223091f
commit 25ba561702
19 changed files with 317 additions and 19 deletions

View File

@@ -25,6 +25,7 @@ import (
"k8s.io/client-go/tools/clientcmd"
"k8s.io/kubernetes/pkg/kubectl/cmd/templates"
cmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
"k8s.io/kubernetes/pkg/util/i18n"
)
type CurrentContextOptions struct {
@@ -45,7 +46,7 @@ func NewCmdConfigCurrentContext(out io.Writer, configAccess clientcmd.ConfigAcce
cmd := &cobra.Command{
Use: "current-context",
Short: "Displays the current-context",
Short: i18n.T("Displays the current-context"),
Long: current_context_long,
Example: current_context_example,
Run: func(cmd *cobra.Command, args []string) {