Skip to content

Commit

Permalink
Merge pull request #1174 from wknet123/master
Browse files Browse the repository at this point in the history
Update some i18n messages
  • Loading branch information
reasonerjt authored Nov 28, 2016
2 parents a192ce9 + 92a3708 commit 454f041
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 30 deletions.
28 changes: 14 additions & 14 deletions src/ui/static/resources/js/services/i18n/locale_messages_en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,13 @@ var locale_messages = {
'error': 'Error',
'about': 'About',
'about_harbor': 'About Harbor',
'current_version': '<label>Version</label>&nbsp;&nbsp;<span>$0</span>',
'current_storage': '<label>Storage</label>&nbsp;&nbsp;<span>$0 GB available of $1 GB.</span>',
'default_root_cert': '<label>Default Root Cert.</label>&nbsp;&nbsp;<span><a href="$0">$1</a></span>',
'current_version': '<label>Version:</label>&nbsp;&nbsp;<span>$0</span>',
'current_storage': '<label>Storage:</label>&nbsp;&nbsp;<span>$0 GB available of $1 GB.</span>',
'default_root_cert': '<label>Default Root Cert.:</label>&nbsp;&nbsp;<span><a href="$0">$1</a></span>',
'download': 'Download',
'failed_to_get_project_member': 'Failed to get current project member.',
'failed_to_delete_repo': 'Failed to delete repository. ',
'failed_to_delete_repo_insuffient_permissions': 'Failed to delete repository, insuffient permissions.',
'failed_to_delete_repo': 'Failed to delete repository.',
'failed_to_delete_repo_insuffient_permissions': 'Failed to delete repository: insuffient permissions.',
'failed_to_get_repo': 'Failed to get repositories.',
'failed_to_get_tag': 'Failed to get tag.',
'failed_to_get_log': 'Failed to get logs.',
Expand All @@ -253,34 +253,34 @@ var locale_messages = {
'failed_to_add_user': 'Failed to add user.',
'failed_to_delete_user': 'Failed to delete user.',
'failed_to_list_user': 'Failed to list user data.',
'failed_to_toggle_admin': 'Failed to toggle admin user.',
'failed_to_toggle_admin': 'Failed to change admin role.',
'failed_to_list_destination': 'Failed to list destinations.',
'failed_to_list_replication': 'Failed to list replication policies.',
'failed_to_toggle_policy': 'Failed to toggle replication policy.',
'failed_to_toggle_policy': 'Failed to change status of replication policy.',
'failed_to_create_replication_policy': 'Failed to create replication policy.',
'failed_to_get_destination': 'Failed to get destination.',
'failed_to_get_destination_policies': 'Failed to get destination policies.',
'failed_to_get_destination_policies': 'Failed to get policies of the destination.',
'failed_to_get_replication_policy': 'Failed to get replication policy.',
'failed_to_update_replication_policy': 'Failed to update replication policy.',
'failed_to_delete_replication_enabled': 'Cannot delete policy: policy has unfinished job(s) or policy is enabled.',
'failed_to_delete_replication_policy': 'Failed to delete replication policy.',
'failed_to_delete_replication_enabled': 'Policy is enabled, can not be deleted.',
'failed_to_delete_destination': 'Failed to delete destination.',
'failed_to_create_destination': 'Failed to create destination.',
'failed_to_update_destination': 'Failed to update destination.',
'failed_to_toggle_publicity_insuffient_permissions': 'Failed to toggle project publicity, insuffient permissions.',
'failed_to_toggle_publicity': 'Failed to toggle project publicity.',
'failed_to_toggle_publicity_insuffient_permissions': 'Failed to change project publicity: insuffient permissions.',
'failed_to_toggle_publicity': 'Failed to change project publicity.',
'failed_to_sign_in': 'Failed to sign in.',
'project_does_not_exist': 'Project does not exist.',
'project_admin': 'Project Admin',
'developer': 'Developer',
'guest': 'Guest',
'inline_help_role_title': '<strong>The Definitions of Roles</strong>',
'inline_help_role_title': '<strong>The Definition of Roles</strong>',
'inline_help_role': '<strong>Project Admin</strong>: Project Admin has read/write and member management privileges to the project.<br/>' +
'<strong>Developer</strong>: Developer has read and write privileges to the project.<br/>' +
'<strong>Guest</strong>: Guest has read-only privilege for a specified project.',
'inline_help_publicity_title': '<strong>Publicity of Project</strong>',
'inline_help_publicity': 'When a project is set to public, anyone will have read permission to the repositories under this project, and user will not need to run "docker login" before pulling images under this project.',
'alert_job_contains_error': 'Found errors in the current replication jobs, please check.',
'inline_help_publicity': 'When a project is set to public, anyone has read permission to the repositories under this project, and the user does not need to run "docker login" before pulling images under this project.',
'alert_job_contains_error': 'Found errors in the replication job(s), please check.',
'found_error_in_replication_job': 'Found $0 error(s).',
'caution': 'Caution',
'confirm_to_toggle_enabled_policy_title': 'Enable Policy',
Expand Down
30 changes: 14 additions & 16 deletions src/ui/static/resources/js/services/i18n/locale_messages_zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ var locale_messages = {
'image_details': '镜像明细',
'pull_command': 'Pull 命令',
'alert_delete_repo_title': '确认删除',
'alert_delete_repo': '即将删除镜像仓库下的所有标签,镜像空间将在垃圾回收过程中释放。<br/>' +
'alert_delete_repo': '即将删除镜像仓库下的所有标签,' +
'镜像空间将在垃圾回收过程中释放。<br/>' +
'<br/>是否删除镜像仓库 "$0" ?',
'alert_delete_tag_title': '确认删除',
'alert_delete_tag': '注意:此镜像仓库下所有指向该镜像的标签将会被删除。<br/><br/>删除镜像标签 "$0" ?',
Expand Down Expand Up @@ -178,7 +179,6 @@ var locale_messages = {
'disable': '停用',
'no_replication_policies_add_new': '没有复制策略,请新增复制策略。',
'no_replication_policies': '没有复制策略。',
'no_replications': '没有复制策略。',
'no_replication_jobs': '没有复制任务。',
'no_destinations': '没有目标设置,请新增目标。',
'name_is_required': '名称为必填项',
Expand Down Expand Up @@ -231,13 +231,13 @@ var locale_messages = {
'error': '错误',
'about': '关于',
'about_harbor': '关于 Harbor',
'current_version': '<label>当前版本</label>&nbsp;&nbsp;<span>$0</span>',
'current_storage': '<label>存储情况</label>&nbsp;&nbsp;<span>可用: $0 GB,总共: $1 GB。</span>',
'default_root_cert': '<label>默认根证书</label>&nbsp;&nbsp;<span><a href="$0">$1</a></span>',
'current_version': '<label>当前版本:</label>&nbsp;&nbsp;<span>$0</span>',
'current_storage': '<label>存储情况:</label>&nbsp;&nbsp;<span>可用: $0 GB,总共: $1 GB。</span>',
'default_root_cert': '<label>默认根证书:</label>&nbsp;&nbsp;<span><a href="$0">$1</a></span>',
'download': '下载',
'failed_to_get_project_member': '无法获取当前项目成员。',
'failed_to_delete_repo': '无法删除镜像仓库。',
'failed_to_delete_repo_insuffient_permissions': '无法删除镜像仓库权限不足。',
'failed_to_delete_repo_insuffient_permissions': '无法删除镜像仓库权限不足。',
'failed_to_get_repo': '获取镜像仓库数据失败。',
'failed_to_get_tag': '获取标签数据失败。',
'failed_to_get_log': '获取日志数据失败。',
Expand All @@ -253,22 +253,22 @@ var locale_messages = {
'failed_to_add_user': '新增用户失败。',
'failed_to_delete_user': '删除用户失败。',
'failed_to_list_user': '获取用户数据失败。',
'failed_to_toggle_admin': '切换管理员用户失败。',
'failed_to_toggle_admin': '设置管理员角色失败。',
'failed_to_list_destination': '获取目标数据失败。',
'failed_to_list_replication': '获取复制策略数据失败。',
'failed_to_toggle_policy': '切换复制策略状态失败。',
'failed_to_toggle_policy': '设置复制策略状态失败。',
'failed_to_create_replication_policy': '创建复制策略失败。',
'failed_to_get_destination': '获取目标失败。',
'failed_to_get_destination_policies': '获取目标关联策略数据失败。',
'failed_to_get_destination_policies': '获取目标所关联的策略失败。',
'failed_to_get_replication_policy': '获取复制策略失败。',
'failed_to_update_replication_policy': '修改复制策略失败。',
'failed_to_delete_replication_enabled': '无法删除正在使用的复制策略。',
'failed_to_delete_replication_policy': '删除复制策略失败。',
'failed_to_delete_replication_enabled': '删除复制策略失败: 仍有未完成的任务或策略未停用。',
'failed_to_delete_replication_policy': '无法删除正在使用的复制策略。',
'failed_to_delete_destination': '删除目标失败。',
'failed_to_create_destination': '创建目标失败。',
'failed_to_update_destination': '修改目标失败。',
'failed_to_toggle_publicity_insuffient_permissions': '切换项目公开性失败,权限不足。',
'failed_to_toggle_publicity': '切换项目公开性失败。',
'failed_to_toggle_publicity_insuffient_permissions': '设置项目公开性失败:权限不足。',
'failed_to_toggle_publicity': '设置项目公开性失败。',
'failed_to_sign_in': '登录失败。',
'project_does_not_exist': '项目不存在。',
'project_admin': '项目管理员',
Expand All @@ -280,11 +280,9 @@ var locale_messages = {
'<strong>访客</strong>: “访客”拥有特定项目的只读权限。',
'inline_help_publicity_title': '<strong>公开项目</strong>',
'inline_help_publicity': '当项目设为公开后,任何人都有此项目下镜像的读权限。命令行用户不需要“docker login”就可以拉取此项目下的镜像。',
'alert_job_contains_error': '当前复制任务中包含错误,请检查。',
'alert_job_contains_error': '复制任务中包含错误,请检查。',
'found_error_in_replication_job': '发现 $0 个错误。',
'caution': '注意',
'confirm_to_toggle_policy_title': '切换复制策略状态',
'confirm_to_toggle_policy': '确认将复制策略 $0 切换为 <strong>$1</strong> 状态吗?',
'confirm_to_toggle_enabled_policy_title': '启用策略',
'confirm_to_toggle_enabled_policy': '启用策略后,该项目下的所有镜像仓库将复制到目标实例。请确认继续。',
'confirm_to_toggle_disabled_policy_title': '停用策略',
Expand Down

0 comments on commit 454f041

Please sign in to comment.