add more entries to the blacklist and clean up translation files

上级 3be580c9
......@@ -34,7 +34,13 @@ import (
)
// blacklist is a list of strings to explicitly omit from translation files.
var blacklist = []string{"%s: %v"}
var blacklist = []string{
"%s: %v",
"%s.%s=%s",
"%s/%d",
"%s=%s",
"%v",
}
// state is a struct that represent the current state of the extraction process
type state struct {
......@@ -351,6 +357,13 @@ func writeStringsToFiles(e *state, output string) error {
}
}
// Remove translations from the file that are empty and were not extracted
for k, v := range currentTranslations {
if _, ok := e.translations[k]; !ok && len(v.(string)) == 0 {
delete(currentTranslations, k)
}
}
c, err := json.MarshalIndent(currentTranslations, "", "\t")
if err != nil {
return errors.Wrap(err, "marshalling translations")
......
......@@ -12,10 +12,7 @@
"%s was successfully configured": "",
"%s was successfully disabled": "",
"%s was successfully enabled": "",
"%s.%s=%s": "",
"%s/%d": "",
"%s:%s is not running: %v": "",
"%s=%s": "",
"'none' driver does not support 'minikube docker-env' command": "",
"'none' driver does not support 'minikube mount' command": "",
"'none' driver does not support 'minikube ssh' command": "",
......@@ -23,14 +20,12 @@
"Alternatively, you may delete the existing VM using `minikube delete -p %s`": "",
"Cannot find directory %s for mount": "",
"Check that minikube is running and that you have specified the correct namespace (-n flag) if required.": "",
"Compiling translation strings...": "",
"Configuring environment for Kubernetes %s on %s %s": "Configurant l'environment pour Kubernetes %s sur %s %s",
"Configuring local host environment ...": "",
"Creating %s VM (CPUs=%d, Memory=%dMB, Disk=%dMB) ...": "Créant un VM %s (CPUs=%d, Mémoire=%dMB, Disque=%dMB)",
"Creating mount %s ...": "",
"Deleting %q from %s ...": "",
"Documentation: %s": "",
"Done!": "",
"Done! kubectl is now configured to use %q": "Fini! kubectl est maintenant configuré pour utiliser %s.",
"Download complete!": "",
"Downloading %s %s": "",
......@@ -136,6 +131,8 @@
"Requested disk size (%dMB) is less than minimum of %dMB": "",
"Restarting existing %s VM for %q ...": "",
"Set failed": "",
"Setting profile failed": "",
"Skipped switching kubectl context for %s , because --keep-context": "",
"Sorry that minikube crashed. If this was unexpected, we would love to hear from you:": "",
"Sorry, completion support is not yet implemented for %q": "",
"Sorry, the --gpu feature is currently only supported with --vm-driver=kvm2": "",
......@@ -189,7 +186,6 @@
"Wait failed": "",
"Wait failed: %v": "",
"Waiting for SSH access ...": "Attendant l'accès SSH ...",
"Writing translation files": "",
"You appear to be using a proxy, but your NO_PROXY environment does not include the minikube IP (%s). Please see https://github.com/kubernetes/minikube/blob/master/docs/http_proxy.md for more details": "",
"You must specify a service name": "",
"addon '%s' is currently not enabled.\nTo enable this addon run:\nminikube addons enable %s": "",
......@@ -221,7 +217,6 @@
"mount failed": "",
"need to relocate them. For example, to overwrite your own settings:": "",
"opt %s": "",
"set failed": "",
"stat failed": "",
"unable to bind flags": "",
"unable to set logtostderr": "",
......
{
"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"
"%q VM does not exist, nothing to stop": "",
"%q cluster does not exist": "",
"%q host does not exist, unable to show an IP": "",
"%q profile does not exist": "",
"%q stopped.": "",
"%s IP has been updated to point at %s": "",
"%s IP was already correctly configured for %s": "",
"%s has no available configuration options": "",
"%s is not responding properly: %v": "",
"%s is not yet a supported filesystem. We will try anyways!": "",
"%s was successfully configured": "",
"%s was successfully disabled": "",
"%s was successfully enabled": "",
"%s:%s is not running: %v": "",
"'none' driver does not support 'minikube docker-env' command": "",
"'none' driver does not support 'minikube mount' command": "",
"'none' driver does not support 'minikube ssh' command": "",
"Advice: %s": "",
"Alternatively, you may delete the existing VM using `minikube delete -p %s`": "",
"Cannot find directory %s for mount": "",
"Check that minikube is running and that you have specified the correct namespace (-n flag) if required.": "",
"Configuring environment for Kubernetes %s on %s %s": "开始为Kubernetes %s,%s %s 配置环境变量",
"Configuring local host environment ...": "",
"Creating %s VM (CPUs=%d, Memory=%dMB, Disk=%dMB) ...": "正在创建%s虚拟机(CPU =%d,内存=%dMB,磁盘=%dMB)...",
"Creating mount %s ...": "",
"Deleting %q from %s ...": "",
"Documentation: %s": "",
"Done! kubectl is now configured to use %q": "完成!kubectl已经配置至%q",
"Download complete!": "",
"Downloading %s %s": "",
"Downloading Minikube ISO ...": "",
"ERROR creating `registry-creds-dpr` secret": "",
"ERROR creating `registry-creds-ecr` secret: %v": "",
"ERROR creating `registry-creds-gcr` secret: %v": "",
"Enabling dashboard ...": "",
"Error creating list template": "",
"Error creating minikube directory": "",
"Error creating status template": "",
"Error creating view template": "",
"Error executing list template": "",
"Error executing status template": "",
"Error executing template": "",
"Error executing view template": "",
"Error finding port for mount": "",
"Error getting IP": "",
"Error getting bootstrapper": "",
"Error getting client": "",
"Error getting client: %v": "",
"Error getting cluster": "",
"Error getting cluster bootstrapper": "",
"Error getting config": "",
"Error getting host": "",
"Error getting host status": "",
"Error getting machine logs": "",
"Error getting machine status": "",
"Error getting service status": "",
"Error getting service with namespace: %s and labels %s:%s: %v": "",
"Error getting the host IP address to use from within the VM": "",
"Error host driver ip status": "",
"Error killing mount process": "",
"Error loading api": "",
"Error opening service": "",
"Error reading %s: %v": "",
"Error restarting cluster": "",
"Error setting shell variables": "",
"Error starting cluster": "",
"Error starting mount": "",
"Error unsetting shell variables": "",
"Error writing mount pid": "",
"Error: [%s] %v": "",
"Exiting due to %s signal": "",
"Failed to cache ISO": "",
"Failed to cache and load images": "",
"Failed to cache binaries": "",
"Failed to cache images": "",
"Failed to check if machine exists": "",
"Failed to check main repository and mirrors for images for images": "",
"Failed to chown %s: %v": "",
"Failed to delete cluster": "",
"Failed to delete images": "",
"Failed to delete images from config": "",
"Failed to download kubectl": "",
"Failed to enable container runtime": "",
"Failed to generate config": "",
"Failed to get bootstrapper": "",
"Failed to get command runner": "",
"Failed to get driver URL": "",
"Failed to get image map": "",
"Failed to get machine client": "",
"Failed to get service URL: %v": "",
"Failed to kill mount process: %v": "",
"Failed to list cached images": "",
"Failed to remove profile": "",
"Failed to save config": "",
"Failed to set NO_PROXY Env. Please use `export NO_PROXY=$NO_PROXY,%s`.": "",
"Failed to setup certs": "",
"Failed to setup kubeconfig": "",
"Failed to update cluster": "",
"Failed to update config": "",
"Failed unmount: %v": "",
"Follow": "",
"For best results, install kubectl: https://kubernetes.io/docs/tasks/tools/install-kubectl/": "",
"For more information, see:": "",
"Found network options:": "",
"GID: %s": "",
"If the above advice does not help, please let us know: ": "",
"Ignoring --vm-driver=%s, as the existing %q VM was created using the %s driver.": "",
"IsEnabled failed": "",
"Kubernetes downgrade is not supported, will continue to use %v": "",
"Launching Kubernetes ...": "正在启动 Kubernetes ...",
"Launching Kubernetes ... ": "",
"Launching proxy ...": "",
"MSize: %d": "",
"Mode: %o (%s)": "",
"Mount options:": "",
"Mounting host path %s into VM as %s ...": "",
"NOTE: This process must stay alive for the mount to be accessible ...": "",
"None of known repositories in your location is accessible. Use %s as fallback.": "",
"None of known repositories is accessible. Consider specifying an alternative image repository with --image-repository flag": "",
"Opening %s in your default browser...": "",
"Opening kubernetes service %s/%s in default browser...": "",
"Options: %s": "",
"Please enter a value:": "",
"Please specify the directory to be mounted: \n\tminikube mount \u003csource directory\u003e:\u003ctarget directory\u003e (example: \"/host-home:/vm-home\")": "",
"Powering off %q via SSH ...": "",
"Problems detected in %q:": "",
"Pulling images ...": "拉取镜像 ...",
"Re-using the currently running %s VM for %q ...": "",
"Related issues:": "",
"Relaunching Kubernetes %s using %s ... ": "",
"Requested disk size (%dMB) is less than minimum of %dMB": "",
"Restarting existing %s VM for %q ...": "",
"Set failed": "",
"Setting profile failed": "",
"Skipped switching kubectl context for %s , because --keep-context": "",
"Sorry that minikube crashed. If this was unexpected, we would love to hear from you:": "",
"Sorry, completion support is not yet implemented for %q": "",
"Sorry, the --gpu feature is currently only supported with --vm-driver=kvm2": "",
"Sorry, the --hidden feature is currently only supported with --vm-driver=kvm2": "",
"Sorry, the kubeadm.%s parameter is currently not supported by --extra-config": "",
"Stopping %q in %s ...": "",
"Successfully mounted %s to %s": "",
"Target directory %q must be an absolute path": "",
"The %q cluster has been deleted.": "",
"The 'none' driver provides limited isolation and may reduce system security and reliability.": "",
"The docker host is currently not running": "",
"The docker service is currently not active": "",
"The kvm driver is deprecated and support for it will be removed in a future release.\n\t\t\t\tPlease consider switching to the kvm2 driver, which is intended to replace the kvm driver.\n\t\t\t\tSee https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#kvm2-driver for more information.\n\t\t\t\tTo disable this message, run [minikube config set ShowDriverDeprecationNotification false]": "",
"The value passed to --format is invalid": "",
"The value passed to --format is invalid: %s": "",
"The vmwarefusion driver is deprecated and support for it will be removed in a future release.\n\t\t\t\tPlease consider switching to the new vmware unified driver, which is intended to replace the vmwarefusion driver.\n\t\t\t\tSee https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#vmware-unified-driver for more information.\n\t\t\t\tTo disable this message, run [minikube config set ShowDriverDeprecationNotification false]": "",
"The xhyve driver is deprecated and support for it will be removed in a future release.\nPlease consider switching to the hyperkit driver, which is intended to replace the xhyve driver.\nSee https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#hyperkit-driver for more information.\nTo disable this message, run [minikube config set ShowDriverDeprecationNotification false]": "",
"There is a newer version of minikube available (%s%s). Download it here:\n%s%s\n\nTo disable this notification, run the following:\nminikube config set WantUpdateNotification false\n": "",
"These changes will take effect upon a minikube delete and then a minikube start": "",
"This addon does not have an endpoint defined for the 'addons open' command.\nYou can add one by annotating a service with the label %s:%s": "",
"This can also be done automatically by setting the env var CHANGE_MINIKUBE_NONE_USER=true": "",
"Tip: Use 'minikube start -p \u003cname\u003e' to create a new cluster, or 'minikube delete' to delete this one.": "",
"To connect to this cluster, use: kubectl --context=%s": "",
"To switch drivers, you may create a new VM using `minikube start -p \u003cname\u003e --vm-driver=%s`": "",
"To use kubectl or minikube commands as your own user, you may": "",
"Type: %s": "",
"UID: %s": "",
"Unable to bind flags": "",
"Unable to enable dashboard": "",
"Unable to fetch latest version info": "",
"Unable to get VM IP address": "",
"Unable to get runtime": "",
"Unable to kill mount process: %s": "",
"Unable to load cached images from config file.": "",
"Unable to load cached images: %v": "",
"Unable to load config: %v": "",
"Unable to parse %q: %v": "",
"Unable to pull images, which may be OK: %v": "",
"Unable to start VM": "",
"Unable to stop VM": "",
"Uninstalling Kubernetes %s using %s ...": "",
"Unmounting %s ...": "",
"Update server returned an empty list": "",
"Usage: minikube completion SHELL": "",
"Userspace file server is shutdown": "",
"Userspace file server: ": "",
"Verifying dashboard health ...": "",
"Verifying proxy health ...": "",
"Verifying:": "正在验证:",
"Version: %s": "",
"Wait failed": "",
"Wait failed: %v": "",
"Waiting for SSH access ...": "",
"You appear to be using a proxy, but your NO_PROXY environment does not include the minikube IP (%s). Please see https://github.com/kubernetes/minikube/blob/master/docs/http_proxy.md for more details": "",
"You must specify a service name": "",
"addon '%s' is currently not enabled.\nTo enable this addon run:\nminikube addons enable %s": "",
"addon '%s' is not a valid addon packaged with minikube.\nTo see the list of available addons run:\nminikube addons list": "",
"addon list failed": "",
"api load": "",
"bash completion failed": "",
"checking main repository and mirrors for images": "",
"command runner": "",
"config view failed": "",
"disable failed": "",
"enable failed: %v": "",
"env %s": "",
"error creating clientset": "",
"error creating machine client": "",
"error getting driver": "",
"error parsing the input ip address for mount": "",
"error starting tunnel": "",
"failed to open browser: %v": "",
"kubectl and minikube configuration will be stored in %s": "",
"kubectl not found in PATH, but is required for the dashboard. Installation guide: https://kubernetes.io/docs/tasks/tools/install-kubectl/": "",
"kubectl proxy": "",
"logdir set failed": "",
"minikube %s on %s (%s)": "您正在使用minikube %s, 运行平台:%s (%s)",
"minikube is not running, so the service cannot be accessed": "",
"minikube profile was successfully set to %s": "",
"minikube will upgrade the local cluster from Kubernetes %s to %s": "",
"mount argument %q must be in form: \u003csource directory\u003e:\u003ctarget directory\u003e": "",
"mount failed": "",
"need to relocate them. For example, to overwrite your own settings:": "",
"opt %s": "",
"stat failed": "",
"unable to bind flags": "",
"unable to set logtostderr": "",
"unset failed": "",
"unsupported driver: %s": "",
"update config": "",
"usage: minikube addons configure ADDON_NAME": "",
"usage: minikube addons disable ADDON_NAME": "",
"usage: minikube addons enable ADDON_NAME": "",
"usage: minikube addons list": "",
"usage: minikube addons open ADDON_NAME": "",
"usage: minikube config set PROPERTY_NAME PROPERTY_VALUE": "",
"usage: minikube config unset PROPERTY_NAME": "",
"usage: minikube delete": "",
"usage: minikube profile [MINIKUBE_PROFILE_NAME]": "",
"using image repository %s": "",
"zsh completion failed": ""
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册