From 2b3d912f43b19f8f6364204c1ddc394ff09821f2 Mon Sep 17 00:00:00 2001 From: Steven Zou Date: Tue, 13 Jun 2017 13:22:09 +0800 Subject: [PATCH] update i18n messages --- src/ui_ng/package.json | 3 +- src/ui_ng/src/i18n/lang/en-us-lang.json | 49 +++++++++++++++++++++++++ src/ui_ng/src/i18n/lang/es-es-lang.json | 49 +++++++++++++++++++++++++ src/ui_ng/src/i18n/lang/zh-cn-lang.json | 49 +++++++++++++++++++++++++ 4 files changed, 149 insertions(+), 1 deletion(-) diff --git a/src/ui_ng/package.json b/src/ui_ng/package.json index 126283738..92453d5d0 100644 --- a/src/ui_ng/package.json +++ b/src/ui_ng/package.json @@ -8,7 +8,8 @@ "lint": "tslint \"src/**/*.ts\"", "test": "ng test --single-run", "pree2e": "webdriver-manager update", - "e2e": "protractor" + "e2e": "protractor", + "build": "ngc -p tsconfig-aot.json" }, "private": true, "dependencies": { diff --git a/src/ui_ng/src/i18n/lang/en-us-lang.json b/src/ui_ng/src/i18n/lang/en-us-lang.json index d0f469856..12e5167dc 100644 --- a/src/ui_ng/src/i18n/lang/en-us-lang.json +++ b/src/ui_ng/src/i18n/lang/en-us-lang.json @@ -436,6 +436,55 @@ "IN_PROGRESS": "Search...", "BACK": "Back" }, + "VULNERABILITY": { + "STATE": { + "PENDING": "SCAN NOW", + "QUEUED": "Queued", + "ERROR": "Error", + "SCANNING": "Scanning", + "UNKNOWN": "Unknown" + }, + "GRID": { + "PLACEHOLDER": "We couldn't find any scanning results!", + "COLUMN_ID": "Vulnerability", + "COLUMN_SEVERITY": "Severity", + "COLUMN_PACKAGE": "Package", + "COLUMN_VERSION": "Current version", + "COLUMN_FIXED": "Fixed in version", + "COLUMN_LAYER": "Introduced in layer", + "FOOT_ITEMS": "Items", + "FOOT_OF": "of" + }, + "CHART": { + "SCANNING_TIME": "Scan completed", + "TOOLTIPS_TITLE": "This tag has {{totalVulnerability}} vulnerabilities across {{totalPackages}} packages." + }, + "SEVERITY": { + "HIGH": "High level", + "MEDIUM": "Medium level", + "LOW": "Low level", + "UNKNOWN": "Unknown", + "NONE": "None" + }, + "SINGULAR": "Vulnerability", + "PLURAL": "Vulnerabilities" + }, + "PUSH_IMAGE": { + "TITLE": "Push Image", + "TOOLTIP": "Command references for pushing an image to this project.", + "TAG_COMMAND": "Tag an image for this project:", + "PUSH_COMMAND": "Push an image to this project:", + "COPY_ERROR": "Copy failed, please try to manually copy the command references." + }, + "TAG": { + "CREATION_TIME_PREFIX": "Create on", + "CREATOR_PREFIX": "by", + "IMAGE_DETAILS": "Image Details", + "ARCHITECTURE": "Architecture", + "OS": "OS", + "SCAN_COMPLETION_TIME": "Scan Completed", + "IMAGE_VULNERABILITIES": "Image Vulnerabilities" + }, "UNKNOWN_ERROR": "Unknown errors have occurred. Please try again later.", "UNAUTHORIZED_ERROR": "Your session is invalid or has expired. You need to sign in to continue your action.", "FORBIDDEN_ERROR": "You do not have the proper privileges to perform the action.", diff --git a/src/ui_ng/src/i18n/lang/es-es-lang.json b/src/ui_ng/src/i18n/lang/es-es-lang.json index d924a54a2..e065d22c3 100644 --- a/src/ui_ng/src/i18n/lang/es-es-lang.json +++ b/src/ui_ng/src/i18n/lang/es-es-lang.json @@ -434,6 +434,55 @@ "IN_PROGRESS": "Buscar...", "BACK": "Volver" }, + "VULNERABILITY": { + "STATE": { + "PENDING": "SCAN NOW", + "QUEUED": "Queued", + "ERROR": "Error", + "SCANNING": "Scanning", + "UNKNOWN": "Unknown" + }, + "GRID": { + "PLACEHOLDER": "We couldn't find any scanning results!", + "COLUMN_ID": "Vulnerability", + "COLUMN_SEVERITY": "Severity", + "COLUMN_PACKAGE": "Package", + "COLUMN_VERSION": "Current version", + "COLUMN_FIXED": "Fixed in version", + "COLUMN_LAYER": "Introduced in layer", + "FOOT_ITEMS": "Items", + "FOOT_OF": "of" + }, + "CHART": { + "SCANNING_TIME": "Scan completed", + "TOOLTIPS_TITLE": "This tag has {{totalVulnerability}} vulnerabilities across {{totalPackages}} packages." + }, + "SEVERITY": { + "HIGH": "High level", + "MEDIUM": "Medium level", + "LOW": "Low level", + "UNKNOWN": "Unknown", + "NONE": "None" + }, + "SINGULAR": "Vulnerability", + "PLURAL": "Vulnerabilities" + }, + "PUSH_IMAGE": { + "TITLE": "Push Image", + "TOOLTIP": "Command references for pushing an image to this project.", + "TAG_COMMAND": "Tag an image for this project:", + "PUSH_COMMAND": "Push an image to this project:", + "COPY_ERROR": "Copy failed, please try to manually copy the command references." + }, + "TAG": { + "CREATION_TIME_PREFIX": "Create on", + "CREATOR_PREFIX": "by", + "IMAGE_DETAILS": "Image Details", + "ARCHITECTURE": "Architecture", + "OS": "OS", + "SCAN_COMPLETION_TIME": "Scan Completed", + "IMAGE_VULNERABILITIES": "Image Vulnerabilities" + }, "UNKNOWN_ERROR": "Ha ocurrido un error desconocido. Por favor, inténtelo de nuevo más tarde.", "UNAUTHORIZED_ERROR": "La sesión no es válida o ha caducado. Necesita identificarse de nuevo para llevar a cabo esa acción.", "FORBIDDEN_ERROR": "No tienes permisos para llevar a cabo esa acción.", diff --git a/src/ui_ng/src/i18n/lang/zh-cn-lang.json b/src/ui_ng/src/i18n/lang/zh-cn-lang.json index 988b50e01..1144383e5 100644 --- a/src/ui_ng/src/i18n/lang/zh-cn-lang.json +++ b/src/ui_ng/src/i18n/lang/zh-cn-lang.json @@ -436,6 +436,55 @@ "IN_PROGRESS": "搜索中...", "BACK": "返回" }, + "VULNERABILITY": { + "STATE": { + "PENDING": "开始扫描", + "QUEUED": "已入队列", + "ERROR": "错误", + "SCANNING": "扫描中", + "UNKNOWN": "未知" + }, + "GRID": { + "PLACEHOLDER": "没有扫描结果!", + "COLUMN_ID": "缺陷码", + "COLUMN_SEVERITY": "严重度", + "COLUMN_PACKAGE": "组件", + "COLUMN_VERSION": "当前版本", + "COLUMN_FIXED": "修复版本", + "COLUMN_LAYER": "引入层", + "FOOT_ITEMS": "项目", + "FOOT_OF": "总共" + }, + "CHART": { + "SCANNING_TIME": "扫描完成", + "TOOLTIPS_TITLE": "在此镜像的{{totalPackages}}包中扫描出{{totalVulnerability}}缺陷。" + }, + "SEVERITY": { + "HIGH": "严重", + "MEDIUM": "中等", + "LOW": "一般", + "UNKNOWN": "未知", + "NONE": "无" + }, + "SINGULAR": "缺陷", + "PLURAL": "缺陷" + }, + "PUSH_IMAGE": { + "TITLE": "推送镜像", + "TOOLTIP": "推送一个镜像到当前项目的参考命令。", + "TAG_COMMAND": "在项目中标记镜像:", + "PUSH_COMMAND": "推送镜像到当前项目:", + "COPY_ERROR": "拷贝失败,请尝试手动拷贝参考命令。" + }, + "TAG": { + "CREATION_TIME_PREFIX": "创建时间:", + "CREATOR_PREFIX": "创建者:", + "IMAGE_DETAILS": "镜像详情", + "ARCHITECTURE": "架构", + "OS": "操作系统", + "SCAN_COMPLETION_TIME": "扫描完成时间", + "IMAGE_VULNERABILITIES": "镜像缺陷" + }, "UNKNOWN_ERROR": "发生未知错误,请稍后再试。", "UNAUTHORIZED_ERROR": "会话无效或者已经过期, 请重新登录以继续。", "FORBIDDEN_ERROR": "当前操作被禁止,请确认你有合法的权限。",