Skip to content

Commit

Permalink
Chinese localization (#2869)
Browse files Browse the repository at this point in the history
* Add or improve Chinese translations

* Add or improve Chinese translations

* chore: Update Chinese translations

* chore: correct some translation

* fix: add mapping for all new zh files

---------

Co-authored-by: 李飞 <[email protected]>
Co-authored-by: Evgenia Bezborodova <[email protected]>
  • Loading branch information
3 people authored and Wroud committed Sep 16, 2024
1 parent 5d38bcf commit 262dd16
Show file tree
Hide file tree
Showing 62 changed files with 648 additions and 387 deletions.
11 changes: 9 additions & 2 deletions webapp/packages/core-administration/src/locales/zh.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
export default [
['administration_menu_enter', '管理'],
['administration_menu_back', '返回应用'],
['administration_configuration_wizard_title', '初始化服务器配置'],
['administration_configuration_wizard_finish_success_title', 'Server configured'],
['administration_configuration_wizard_finish_success_message', 'You can log-in as administrator in order to set up additional parameters.'],
['administration_configuration_wizard_finish_success_title', '服务器已完成配置'],
['administration_configuration_wizard_finish_success_message', '您可以使用管理员登录后进行更多参数配置。'],
];
21 changes: 14 additions & 7 deletions webapp/packages/core-authentication/src/locales/zh.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
export default [
['core_authentication_auth_settings_group', 'Authentication'],
['settings_authentication_disable_anonymous_access_name', 'Disable anonymous access'],
['settings_authentication_disable_anonymous_access_description', 'Disable anonymous access function'],
['core_authentication_auth_settings_group', '认证'],
['settings_authentication_disable_anonymous_access_name', '禁用匿名访问'],
['settings_authentication_disable_anonymous_access_description', '禁用匿名访问功能'],

['core_authentication_password_policy_min_length', 'Password must be at least {arg:min} characters long'],
['core_authentication_password_policy_upper_lower_case', 'Password must contain both upper and lower case letters'],
['core_authentication_password_policy_min_digits', 'Password must contain at least {arg:min} digits'],
['core_authentication_password_policy_min_special_characters', 'Password must contain at least {arg:min} special characters'],
['core_authentication_password_policy_min_length', '密码长度需要至少 {arg:min} 个字符'],
['core_authentication_password_policy_upper_lower_case', '密码必须包含大写和小写字母'],
['core_authentication_password_policy_min_digits', '密码至少需要包含 {arg:min} 个数字'],
['core_authentication_password_policy_min_special_characters', '密码至少需要包含 {arg:min} 个特殊字符'],
];
2 changes: 2 additions & 0 deletions webapp/packages/core-blocks/src/BlocksLocaleService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export class BlocksLocaleService extends Bootstrap {
return (await import('./locales/ru')).default;
case 'it':
return (await import('./locales/it')).default;
case 'zh':
return (await import('./locales/zh')).default;
case 'fr':
return (await import('./locales/fr')).default;
default:
Expand Down
22 changes: 22 additions & 0 deletions webapp/packages/core-blocks/src/locales/zh.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
export default [
['core_block_properties_table_name', '表名'],
['core_block_properties_table_value', '值'],
['core_block_properties_table_filter_name', '过滤器'],
['core_block_properties_table_add', '添加属性'],
['core_blocks_confirmation_dialog_title', '需要确认'],
['core_blocks_properties_table_item_reset', '重置默认值'],
['core_blocks_object_property_info_form_empty_placeholder', '属性为空'],
['core_blocks_object_property_info_password_saved', '字段值已保存'],
['core_blocks_properties_table_item_remove', '移除属性'],
['combobox_no_results_placeholder', '无结果'],
['core_blocks_exception_message_error_title', '无法显示内容'],
['core_blocks_exception_message_error_message', '出现错误.'],
['core_blocks_custom_input_validation_error', '字段值无效'],
];
9 changes: 8 additions & 1 deletion webapp/packages/core-browser-settings/src/locales/zh.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
export default [
['core_browser_settings_cookies_settings_group', 'Cookies'],
['core_browser_settings_browser_settings_group', 'Browser'],
['core_browser_settings_browser_settings_group', '浏览器'],
];
54 changes: 27 additions & 27 deletions webapp/packages/core-connections/src/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* you may not use this file except in compliance with the License.
*/
export default [
['core_connections_connections_settings_group', 'Connections'],
['connections_administration_item', 'Connection Templates'],
['connections_administration_connection_create', 'Add Database Template'],
['core_connections_connections_settings_group', '连接'],
['connections_administration_item', '连接模板'],
['connections_administration_connection_create', '添加数据库模板'],
['connections_administration_search_database_tip', '在此处输入您的主机,例如“localhost host1.myhost.com 192.168.0.1”然后按 Enter'],
['connections_administration_new_connection', '新连接'],
['connections_administration_connection_create_error', '创建连接失败'],
Expand All @@ -32,45 +32,45 @@ export default [
['connections_connection_connect', '连接'],
['connections_connection_create_custom', '自定义'],
['connections_connection_create_search_database', '搜索'],
['connections_connection_authentication_save_credentials_for_user', 'Save credentials for the current user'],
['connections_connection_authentication_save_credentials_for_user_tooltip', 'These credentials will be used to make automatic connection'],
['connections_connection_authentication_save_credentials_for_session', 'Don’t ask again during the session'],
['connections_connection_authentication_save_credentials_for_session_tooltip', 'These credentials will be removed after logout'],
['connections_connection_edit_save_credentials_shared', 'Save credentials for all users with access'],
['connections_connection_authentication_save_credentials_for_user', '为当前用户保存凭证'],
['connections_connection_authentication_save_credentials_for_user_tooltip', '凭证将用于自动连接数据库'],
['connections_connection_authentication_save_credentials_for_session', '当前会话不再询问'],
['connections_connection_authentication_save_credentials_for_session_tooltip', '注销后将移除凭证'],
['connections_connection_edit_save_credentials_shared', '为所有访问用户保存凭证'],
[
'connections_connection_edit_save_credentials_shared_tooltip',
'These credentials will be used to make automatic connection for all users having access',
'凭证将用于为所有访问用户自动连接数据库',
],
['connections_connection_share_credentials', 'Share credentials with teammates'],
['connections_connection_share_credentials_tooltip', 'These credentials will be used to make automatic connection for all users in a team'],
['connections_connection_share_credentials', '分享凭证至团队'],
['connections_connection_share_credentials_tooltip', '凭证将用于为所有团队用户自动连接数据库'],
['connections_connection_credentials_provisioning', '认证凭据'],
['connections_connection_credentials_provisioning_description', '您却要填写或确认凭据以测试此连接。'],
['connections_connection_credentials_provisioning_description', '您需要填写或确认凭据以测试此连接。'],
['connections_connection_edit_authentication', '认证'],
['connections_connection_edit_access', '权限'],
['connections_connection_edit_access_load_failed', '无法获取连接访问权限'],
['connections_connection_edit_search', '搜索'],
['connections_connection_edit_search_hosts', '主机名称'],
['connections_connection_address', '地址'],
['connections_connection_folder', 'Folder'],
['connections_connection_folder_validation', "Folder's name may not contain the following symbols / : \" \\ ' <> | ? * and can't start with a dot"],
['connections_connection_folder', '文件夹'],
['connections_connection_folder_validation', "文件夹名称不得包含以下符号 / : \" \\ ' <> | ? * 且不能以点开头"],
['connections_connection_name', '连接名称'],
['connections_connection_access_admin_info', 'Administrators see all connections except private connections of other users.'],
['connections_connection_access_admin_info', '管理员可以查看除其他用户的私有连接之外的所有连接。'],
['connections_connection_description', '描述'],
['connections_connection_project', 'Project'],
['connections_connection_project', '项目'],
['connections_connection_driver', '驱动'],
['connections_connection_configuration', 'Configuration'],
['connections_connection_configuration', '配置'],
['connections_connection_host', '主机'],
['connections_connection_port', '端口'],
['connections_connection_template', '模板'],
['connections_connection_test', '测试连接'],
['connections_connection_test_tooltip', 'Test connection'],
['connections_connection_test_tooltip', '测试链接'],
['connections_connection_test_fail', '连接测试失败'],
['connections_connection_create_fail', '无法创建连接'],
['connections_connection_save_fail', '无法保存连接'],
['connections_connection_expert_settings', 'Expert settings'],
['connections_connection_keep_alive', 'Keep alive (in seconds)'],
['connections_connection_autocommit', 'Auto commit'],
['connections_connection_keep_alive_tooltip', 'No auto disconnect'],
['connections_connection_expert_settings', '专业设置'],
['connections_connection_keep_alive', '保持连接 (秒)'],
['connections_connection_autocommit', '自动提交'],
['connections_connection_keep_alive_tooltip', '无自动断开连接'],
['connections_network_handler_test', '测试隧道'],
['connections_network_handler_test_fail', '隧道测试失败'],
['connections_network_handler_test_success', '隧道测试成功'],
Expand All @@ -83,11 +83,11 @@ export default [
['connections_network_handler_ssh_tunnel_port', '端口'],
['connections_network_handler_ssh_tunnel_user', '用户'],
['connections_network_handler_ssh_tunnel_password', '密码'],
['connections_network_handler_ssh_tunnel_auth_type', 'Authentication method'],
['connections_network_handler_ssh_tunnel_private_key', 'Private key'],
['connections_network_handler_ssh_tunnel_advanced_settings', 'Advanced Settings'],
['connections_network_handler_ssh_tunnel_advanced_settings_alive_interval', 'Alive interval (ms)'],
['connections_network_handler_ssh_tunnel_advanced_settings_connect_timeout', 'Connect timeout (ms)'],
['connections_network_handler_ssh_tunnel_auth_type', '认证方式'],
['connections_network_handler_ssh_tunnel_private_key', '私钥'],
['connections_network_handler_ssh_tunnel_advanced_settings', '高级设置'],
['connections_network_handler_ssh_tunnel_advanced_settings_alive_interval', '活动间隔 (ms)'],
['connections_network_handler_ssh_tunnel_advanced_settings_connect_timeout', '连接超时 (ms)'],
['connections_driver_search_placeholder', '输入驱动名称...'],
['connections_not_found', '未找到数据库连接'],

Expand Down
121 changes: 60 additions & 61 deletions webapp/packages/core-localization/src/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
export default [
['name', 'zh'],
['ui_rename_taken_or_invalid', 'This name is unavailable or invalid'],
['ui_rename_taken_or_invalid', '名称不可用或不合法'],
['ui_tag_new', '新建'],
['ui_light_theme', '明亮'],
['ui_dark_theme', '黑暗'],
Expand All @@ -18,44 +18,44 @@ export default [
['ui_processing_loading', '加载中...'],
['ui_processing_cancel', '取消'],
['ui_processing_canceling', '取消中...'],
['ui_processing_canceled', 'Canceled'],
['ui_processing_canceled', '已取消'],
['ui_processing_retry', '重试'],
['ui_processing_ok', '好'],
['ui_processing_create', '创建'],
['ui_processing_save', '保存'],
['ui_processing_saving', 'Saving...'],
['ui_processing_do_you_want_to_proceed', 'Do you want to proceed?'],
['ui_processing_saved', 'Saved'],
['ui_processing_stop', 'Stop'],
['ui_processing_skip', 'Skip'],
['ui_second_first_form', '{arg:interval} second'],
['ui_second_second_form', '{arg:interval} seconds'],
['ui_second_third_form', '{arg:interval} seconds'],
['ui_minute_first_form', '{arg:interval} minute'],
['ui_minute_second_form', '{arg:interval} minutes'],
['ui_minute_third_form', '{arg:interval} minutes'],
['ui_custom', 'Custom'],
['ui_processing_saving', '保存中...'],
['ui_processing_do_you_want_to_proceed', '是否继续?'],
['ui_processing_saved', '已保存'],
['ui_processing_stop', '停止'],
['ui_processing_skip', '跳过'],
['ui_second_first_form', '{arg:interval} '],
['ui_second_second_form', '{arg:interval} '],
['ui_second_third_form', '{arg:interval} '],
['ui_minute_first_form', '{arg:interval} 分钟'],
['ui_minute_second_form', '{arg:interval} 分钟'],
['ui_minute_third_form', '{arg:interval} 分钟'],
['ui_custom', '个性化'],
['ui_configure', '配置'],
['ui_apply', '应用'],
['ui_ignore', 'Ignore'],
['ui_ignore', '忽略'],
['ui_error', '错误'],
['ui_error_message', '错误:'],
['ui_error_close', '关闭'],
['ui_clear', 'Clear'],
['ui_remove', 'Remove'],
['ui_clear', '清除'],
['ui_remove', '移除'],
['ui_close', '关闭'],
['ui_open', 'Open'],
['ui_open', '打开'],
['ui_errors_details', '详情'],
['ui_search', '搜索...'],
['ui_delete', '删除'],
['ui_add', '添加'],
['ui_revert', 'Revert'],
['ui_undo', 'Undo'],
['ui_redo', 'Redo'],
['ui_duplicate', 'Duplicate'],
['ui_revert', '恢复'],
['ui_undo', '撤销'],
['ui_redo', '重做'],
['ui_duplicate', '重复'],
['ui_refresh', '刷新'],
['ui_data_saving_error', '保存出错'],
['ui_data_remove_confirmation', 'Remove confirmation'],
['ui_data_remove_confirmation', '移除确认'],
['ui_data_delete_confirmation', '删除确认'],
['ui_no_matches_placeholder', '您的搜索没有返回匹配项。'],
['ui_information', '信息'],
Expand All @@ -66,22 +66,22 @@ export default [
['ui_clipboard_access_denied_title', '剪贴板访问被拒绝'],
['ui_clipboard_access_denied_message', '您需要授予对剪贴板的访问权限才能使用某些应用功能'],
['ui_reveal_password', '展示或隐藏密码'],
['ui_capslock_on', 'Caps Lock is on'],
['ui_capslock_on', '大小写锁定键开启'],
['ui_page_not_found', '找不到页面'],
['ui_revoke', '撤销'],
['ui_grant', '授予'],
['ui_edit', '编辑'],
['ui_open_in_tab', '在选项卡中打开'],
['ui_create', 'Create'],
['ui_create_processing', 'Creating...'],
['ui_folder', 'Folder'],
['ui_folder_new', 'New folder'],
['ui_create', '新建'],
['ui_create_processing', '创建中...'],
['ui_folder', '文件夹'],
['ui_folder_new', '新建文件夹'],
['ui_rename', '重命名'],
['ui_rename_processing', '重命名中...'],
['ui_name', '名称'],
['ui_value', 'Value'],
['ui_description', 'Description'],
['ui_interval', 'Interval'],
['ui_value', ''],
['ui_description', '描述'],
['ui_interval', '间隔'],
['ui_cant_delete_item', '此项目不能删除'],
['ui_no_items_placeholder', '还没有项目'],
['ui_search_no_result_placeholder', '没有找到结果'],
Expand All @@ -92,7 +92,7 @@ export default [
['ui_reconnect', '重新连接'],
['ui_forget', '忘记'],
['ui_set', '设置'],
['ui_restore', 'Restore'],
['ui_restore', '恢复'],
['ui_are_you_sure', '您确定吗?'],
['ui_options', '选项'],
['ui_changes_might_be_lost', '您的更改可能会丢失'],
Expand All @@ -101,36 +101,35 @@ export default [
['ui_continue', '继续'],
['ui_authentication', '认证'],
['ui_settings', '设置'],
['ui_advanced_settings', 'Advanced settings'],
['ui_expand', 'Expand'],
['ui_close_all', 'Close all'],
['ui_close_others', 'Close others'],
['ui_close_all_to_the_right', 'Close all to the Right'],
['ui_close_all_to_the_left', 'Close all to the Left'],
['ui_or', 'Or'],
['ui_download', 'Download'],
['ui_download_file', 'Download file'],
['ui_upload', 'Upload'],
['ui_import', 'Import'],
['ui_view', 'View'],
['ui_show_more', 'Show more'],
['ui_limit', 'Limit'],
['ui_file_size', 'File size'],
['ui_processing_synchronization', 'Synchronization...'],
['ui_no_file_chosen', 'No file chosen'],
['ui_file_size_exceeds', 'Max file size exceeds. File size: {arg:size}. Max file size: {arg:maxSize}'],
['ui_upload_file', 'Upload file'],
['ui_upload_files', 'Upload files'],
['ui_upload_files_duplicate_error', 'Files with the same name already exist'],
['ui_upload_file_fail', 'Failed to upload file'],
['ui_filter', 'Filter'],
['ui_disable', 'Disable'],
['ui_advanced_settings', '高级设置'],
['ui_expand', '展开'],
['ui_close_all', '关闭全部'],
['ui_close_others', '关闭其他'],
['ui_close_all_to_the_right', '关闭右侧'],
['ui_close_all_to_the_left', '关闭左侧'],
['ui_or', ''],
['ui_download', '下载'],
['ui_download_file', '下载文件'],
['ui_upload', '上传'],
['ui_import', '导入'],
['ui_view', '查看'],
['ui_show_more', '查看更多'],
['ui_limit', '限制'],
['ui_file_size', '文件大小'],
['ui_processing_synchronization', '同步...'],
['ui_no_file_chosen', '未选择文件'],
['ui_file_size_exceeds', '文件大小超限。文件大小: {arg:size},最大文件大小: {arg:maxSize}'],
['ui_upload_file', '上传文件'],
['ui_upload_files', '上传文件'],
['ui_upload_files_duplicate_error', '存在同名文件'],
['ui_upload_file_fail', '上传失败'],
['ui_filter', '过滤器'],
['ui_disable', '禁用'],
['ui_readonly', '只读'],
['ui_test', 'Test'],
['ui_export', 'Export'],
['ui_you', 'You'],
['ui_test', '测试'],
['ui_export', '导出'],
['ui_you', ''],
['ui_ms', 'ms'],

['root_permission_denied', '您没有权限'],
['root_permission_no_permission', '您没有权限执行此操作'],
['app_root_session_expire_warning_title', '会话即将过期'],
Expand All @@ -139,6 +138,6 @@ export default [
['app_root_session_expired_title', '会话已过期'],
['app_root_session_expired_message', '会话已过期。您想重新加载吗?'],
['app_root_quota_exceeded', '超出配额'],
['app_root_event_permissions_changed_message', 'Your permissions have been changed'],
['app_root_event_permissions_changed_message', '您的权限已修改'],
['core_eventsLog_dbeaverErrorDetails', '错误详情'],
];
2 changes: 1 addition & 1 deletion webapp/packages/core-navigation-tree/src/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
*/
export default [
['core_navigation_tree_navigation_tree_settings_group', 'Navigation Tree'],
['core_navigation_tree_navigation_tree_settings_group', '导航树'],
['core_navigation_tree_settings_children_limit', 'Amount of children to load'],
['core_navigation_tree_settings_children_limit_description', 'Amount of children to load in a single request'],
['core_navigation_tree_settings_editing', 'Editing'],
Expand Down
9 changes: 8 additions & 1 deletion webapp/packages/core-projects/src/locales/zh.ts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
export default [['core_projects_no_default_project', 'Project is not found']];
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
export default [['core_projects_no_default_project', '未找到项目']];
9 changes: 8 additions & 1 deletion webapp/packages/core-resource-manager/src/locales/zh.ts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
export default [['core_resource_manager_resource_manager_settings_group', 'Resource Manager']];
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
export default [['core_resource_manager_resource_manager_settings_group', '资源管理器']];
Loading

0 comments on commit 262dd16

Please sign in to comment.