Add a script to extract strings for translation and a sample of what it does.

This commit is contained in:
Brendan Burns
2016-12-24 21:09:03 -08:00
parent 28c439dcfb
commit e8b0f59ed2
5 changed files with 219 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ import (
"k8s.io/kubernetes/pkg/kubectl/cmd/templates"
cmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
"k8s.io/kubernetes/pkg/kubectl/resource"
"k8s.io/kubernetes/pkg/util/i18n"
)
type ApplyOptions struct {
@@ -96,7 +97,7 @@ func NewCmdApply(f cmdutil.Factory, out, errOut io.Writer) *cobra.Command {
cmd := &cobra.Command{
Use: "apply -f FILENAME",
Short: "Apply a configuration to a resource by filename or stdin",
Short: i18n.T("Apply a configuration to a resource by filename or stdin"),
Long: apply_long,
Example: apply_example,
Run: func(cmd *cobra.Command, args []string) {