From 5c33e5191a98c99eb6cdc2c4260aad906d73fdc3 Mon Sep 17 00:00:00 2001 From: yzqzss <30341059+yzqzss@users.noreply.github.com> Date: Sat, 20 Apr 2024 06:03:57 +0800 Subject: [PATCH] i18n: update zh-cn translation (#6336) * i18n: update zh-cn translation * minor edit * fix translations syntax * fix translations syntax: use tab * better translation * clarify how Content-Type header auto-set works * fix a mistranslation discovered by comparing #6335 Co-authored-by: --------- Co-authored-by: maTh <1645099+math-GH@users.noreply.github.com> --- app/i18n/zh-cn/admin.php | 4 +-- app/i18n/zh-cn/conf.php | 30 ++++++++-------- app/i18n/zh-cn/feedback.php | 8 ++--- app/i18n/zh-cn/gen.php | 4 +-- app/i18n/zh-cn/sub.php | 68 ++++++++++++++++++------------------- 5 files changed, 57 insertions(+), 57 deletions(-) diff --git a/app/i18n/zh-cn/admin.php b/app/i18n/zh-cn/admin.php index 709abfeca..e3803574b 100644 --- a/app/i18n/zh-cn/admin.php +++ b/app/i18n/zh-cn/admin.php @@ -19,8 +19,8 @@ return array( 'http' => 'HTTP(面向启用 HTTPS 的高级用户)', 'none' => '无(危险)', 'title' => '认证', - 'token' => 'Master authentication token', // TODO - 'token_help' => 'Allows access to all RSS outputs of the user as well as refreshing feeds without authentication:', // TODO + 'token' => '主验证 token', + 'token_help' => '允许不验证而访问用户的全部 RSS 输出以及刷新订阅源:', 'type' => '认证方式', 'unsafe_autologin' => '允许不安全的自动登陆方式:', ), diff --git a/app/i18n/zh-cn/conf.php b/app/i18n/zh-cn/conf.php index 30d790170..46942acae 100644 --- a/app/i18n/zh-cn/conf.php +++ b/app/i18n/zh-cn/conf.php @@ -16,8 +16,8 @@ return array( 'exception' => '清理例外', 'help' => '更多可用选项位于各订阅源的设置', 'keep_favourites' => '永不删除已收藏的文章', - 'keep_labels' => '永不删除标签', - 'keep_max' => '最多保留的文章数', // DIRTY + 'keep_labels' => '永不删除打了标签的文章', + 'keep_max' => '每订阅源最多保留的文章数', 'keep_min_by_feed' => '至少保留的文章数', 'keep_period' => '文章最多保留', 'keep_unreads' => '永不删除未读文章', @@ -120,20 +120,20 @@ return array( 'feeds' => '按订阅源显示', 'order' => '按日期排序', 'search' => '表达式', - 'shareOpml' => 'Enable sharing by OPML of corresponding categories and feeds', // TODO - 'shareRss' => 'Enable sharing by HTML & RSS', // TODO + 'shareOpml' => '启用相应类别和 feed 的 OPML 分享', + 'shareRss' => '启用 HTML 和 RSS 分享', 'state' => '状态', 'tags' => '按标签显示', 'type' => '类型', ), 'get_all' => '显示所有文章', - 'get_all_labels' => 'Display articles with any label', // TODO - 'get_category' => '显示分类 “%s”', + 'get_all_labels' => '显示所有打了标签的文章', + 'get_category' => '显示分类“%s”', 'get_favorite' => '显示收藏文章', - 'get_feed' => '显示订阅源 “%s”', - 'get_important' => 'Display articles from important feeds', // TODO - 'get_label' => 'Display articles with “%s” label', // TODO - 'help' => 'See the documentation for user queries and resharing by HTML / RSS / OPML.', // TODO + 'get_feed' => '显示订阅源“%s”', + 'get_important' => '显示来自“重要的订阅”的文章', + 'get_label' => '显示打了“%s”标签的文章', + 'help' => '参见文档: queries and resharing by HTML / RSS / OPML.', 'name' => '名称', 'no_filter' => '无过滤器', 'number' => '查询 n°%d', @@ -141,11 +141,11 @@ return array( 'order_desc' => '由新至旧显示文章', 'search' => '搜索 “%s”', 'share' => array( - '_' => 'Share this query by link', // TODO - 'help' => 'Give this link if you want to share this query with anyone', // TODO - 'html' => 'Shareable link to the HTML page', // TODO - 'opml' => 'Shareable link to the OPML list of feeds', // TODO - 'rss' => 'Shareable link to the RSS feed', // TODO + '_' => '分享您的自定义查询', + 'help' => '获取此自定义查询的分享链接', + 'html' => 'HTML 页面的分享链接', + 'opml' => '订阅源 OPML 的分享链接', + 'rss' => 'RSS feed 的分享链接', ), 'state_0' => '显示所有文章', 'state_1' => '显示已读文章', diff --git a/app/i18n/zh-cn/feedback.php b/app/i18n/zh-cn/feedback.php index bc4911a70..07e0130cf 100644 --- a/app/i18n/zh-cn/feedback.php +++ b/app/i18n/zh-cn/feedback.php @@ -115,11 +115,11 @@ return array( 'purge_completed' => '清除完成(已删除 %d 篇文章)', ), 'tag' => array( - 'created' => '标签 “%s” 已创建。', - 'error' => 'Label could not be updated!', // TODO + 'created' => '标签“%s”已创建。', + 'error' => '标签无法被更新!', 'name_exists' => '标签名已存在。', - 'renamed' => '标签 “%s” 已被重命名为 “%s”。', - 'updated' => 'Label has been updated.', // TODO + 'renamed' => '标签“%s”已被重命名为“%s”。', + 'updated' => '标签已更新。', ), 'update' => array( 'can_apply' => 'FreshRSS 将更新到 版本 %s。', diff --git a/app/i18n/zh-cn/gen.php b/app/i18n/zh-cn/gen.php index 1132a885c..5c69b2673 100644 --- a/app/i18n/zh-cn/gen.php +++ b/app/i18n/zh-cn/gen.php @@ -134,7 +134,7 @@ return array( 'request_failed' => '请求失败,这可能是因为网络连接问题。', 'title_new_articles' => 'FreshRSS: 新文章!', ), - 'labels_empty' => 'No labels', // TODO + 'labels_empty' => '无标签', 'new_article' => '发现新文章,点击刷新页面。', 'should_be_activated' => '必须启用 JavaScript', ), @@ -177,7 +177,7 @@ return array( 'logs' => '日志', 'queries' => '自定义查询', 'reading' => '阅读', - 'search' => '搜索内容或#标签', + 'search' => '搜索内容或#文章标签', 'search_help' => '查阅文档获取支持的 搜索参数', 'sharing' => '分享', 'shortcuts' => '快捷键', diff --git a/app/i18n/zh-cn/sub.php b/app/i18n/zh-cn/sub.php index 77f43ca63..376a31b81 100644 --- a/app/i18n/zh-cn/sub.php +++ b/app/i18n/zh-cn/sub.php @@ -67,13 +67,13 @@ return array( 'empty' => '此源为空。请确认它是否正常更新。', 'error' => '此源遇到一些问题。请在确认是否能正常访问后重试。', 'export-as-opml' => array( - 'download' => 'Download', // TODO - 'help' => 'XML file', // TODO - 'label' => 'Export as OPML', // TODO + 'download' => '下载', + 'help' => 'XML 文件', + 'label' => '导出为 OPML', ), 'filteractions' => array( '_' => '过滤动作', - 'help' => '每行写一条过滤搜索,过滤条件可见 文档。', + 'help' => '每行写一条过滤规则,过滤规则可见 文档。', ), 'information' => '信息', 'keep_min' => '至少保存的文章数', @@ -127,46 +127,46 @@ return array( 'xpath' => 'XPath 定位:', ), 'json_dotnotation' => array( - '_' => 'JSON (dot notation)', // TODO + '_' => 'JSON (点表达式)', 'feed_title' => array( - '_' => 'feed title', // TODO - 'help' => 'Example: meta.title or a static string: "My custom feed"', // TODO + '_' => '订阅源标题', + 'help' => '例如: meta.title 或一个静态的字符串: "My custom feed"', ), - 'help' => 'A JSON dot notated uses dots between objects and brackets for arrays (e.g. data.items[0].title)', // TODO + 'help' => 'JSON 点表达式(JSON 路径)在对象之间使用点,在数组中使用中括号 (例如 data.items[0].title)', 'item' => array( - '_' => 'finding news items
(most important)', // TODO - 'help' => 'JSON path to the array containing the items, e.g. newsItems', // TODO + '_' => '寻找新的 文章
(最重要的参数)', + 'help' => '包含文章数组的 JSON 路径, 例如 newsItems', ), - 'item_author' => 'item author', // TODO - 'item_categories' => 'item tags', // TODO + 'item_author' => '文章作者', + 'item_categories' => '文章标签', 'item_content' => array( - '_' => 'item content', // TODO - 'help' => 'Key under which the content is found, e.g. content', // TODO + '_' => '文章内容', + 'help' => '用于找到文章内容的键, 例如 content', ), 'item_thumbnail' => array( - '_' => 'item thumbnail', // TODO - 'help' => 'Example: image', // TODO + '_' => '文章缩略图', + 'help' => '例如: image', ), 'item_timeFormat' => array( - '_' => 'Custom date/time format', // TODO - 'help' => 'Optional. A format supported by DateTime::createFromFormat() such as d-m-Y H:i:s', // TODO + '_' => '自定义时间格式', + 'help' => '可选项. 被 DateTime::createFromFormat() 支持的日期格式。例如 d-m-Y H:i:s', ), 'item_timestamp' => array( - '_' => 'item date', // TODO - 'help' => 'The result will be parsed by strtotime()', // TODO + '_' => '文章时间', + 'help' => '结果会被 strtotime() 解析', ), - 'item_title' => 'item title', // TODO - 'item_uid' => 'item unique ID', // TODO + 'item_title' => '文章标题', + 'item_uid' => '文章唯一ID', 'item_uri' => array( - '_' => 'item link (URL)', // TODO - 'help' => 'Example: permalink', // TODO + '_' => '文章链接 (URL)', + 'help' => '例如: permalink', ), - 'json' => 'dot notation for:', // TODO - 'relative' => 'dot notated path (relative to item) for:', // TODO + 'json' => 'JSON 路径:', + 'relative' => 'JSON 路径(相对于文章):', ), - 'jsonfeed' => 'JSON Feed', // TODO + 'jsonfeed' => 'JSON 订阅源', 'rss' => 'RSS / Atom (默认)', - 'xml_xpath' => 'XML + XPath', // TODO + 'xml_xpath' => 'XML + XPath', // IGNORE ), 'maintenance' => array( 'clear_cache' => '清理缓存', @@ -178,10 +178,10 @@ return array( 'max_http_redir' => '最大 HTTP 重定向', 'max_http_redir_help' => '设置为 0 或留空以禁用,-1 表示无限重定向', 'method' => array( - '_' => 'HTTP Method', // TODO + '_' => 'HTTP 方式', ), - 'method_help' => 'The POST payload has automatic support for application/x-www-form-urlencoded and application/json', // TODO - 'method_postparams' => 'Payload for POST', // TODO + 'method_help' => '如果荷载非空且是合法的 JSON,HTTP 请求标头将被自动设为 application/json,否则使用 application/x-www-form-urlencoded', + 'method_postparams' => 'POST 荷载', 'moved_category_deleted' => '删除分类时,其中的订阅源会自动归类到 %s', 'mute' => '暂停', 'no_selected' => '未选择订阅源', @@ -190,7 +190,7 @@ return array( '_' => '可见性', 'archived' => '不显示(归档)', 'category' => '在分类中显示', - 'important' => 'Show in important feeds', // TODO + 'important' => '在“重要的订阅”中显示', 'main_stream' => '在首页中显示', ), 'proxy' => '获取订阅源时的代理', @@ -245,7 +245,7 @@ return array( 'subscription_tools' => '订阅工具', ), 'tag' => array( - 'auto_label' => 'Add this label to new articles', // TODO + 'auto_label' => '给新文章打标签', 'name' => '名称', 'new_name' => '新名称', 'old_name' => '旧名称', @@ -256,7 +256,7 @@ return array( 'add_category' => '添加分类', 'add_dynamic_opml' => '添加订阅源动态列表', 'add_feed' => '添加订阅源', - 'add_label' => '添加标签', + 'add_label' => '打标签', 'delete_label' => '删除标签', 'feed_management' => '订阅源管理', 'rename_label' => '重命名标签',