diff --git a/cmd/extract/extract.go b/cmd/extract/extract.go index 845651557a..f4ebf0a5d8 100644 --- a/cmd/extract/extract.go +++ b/cmd/extract/extract.go @@ -14,6 +14,13 @@ See the License for the specific language governing permissions and limitations under the License. */ +/* This file scans all of minikube's code and finds all strings that need to be able to be translated. +It uses the more generic extract.TranslatableStringd, and prints all the translations +into every json file it can find in pkg/minikube/translate/translations. + +Usage: from the root minikube directory, go run cmd/extract/extract.go +*/ + package main import ( diff --git a/pkg/minikube/translate/translations/zh-CN.json b/pkg/minikube/translate/translations/zh-CN.json index 14b15f6591..8361e41caf 100644 --- a/pkg/minikube/translate/translations/zh-CN.json +++ b/pkg/minikube/translate/translations/zh-CN.json @@ -1,9 +1,9 @@ { - "minikube %s on %s (%s)": "", - "Creating %s VM (CPUs=%d, Memory=%dMB, Disk=%dMB) ...": "", - "Configuring environment for Kubernetes %s on %s %s": "", - "Pulling images ...": "", - "Launching Kubernetes ...": "", - "Verifying:": "", - "Done! kubectl is now configured to use %q": "" + "minikube %s on %s (%s)": "您正在使用minikube %s, 运行平台:%s (%s)", + "Creating %s VM (CPUs=%d, Memory=%dMB, Disk=%dMB) ...": "正在创建%s虚拟机(CPU =%d,内存=%dMB,磁盘=%dMB)...", + "Configuring environment for Kubernetes %s on %s %s": "开始为Kubernetes %s,%s %s 配置环境变量", + "Pulling images ...": "拉取镜像 ...", + "Launching Kubernetes ...": "正在启动 Kubernetes ...", + "Verifying:": "正在验证:", + "Done! kubectl is now configured to use %q": "完成!kubectl已经配置至%q" } \ No newline at end of file