From e1d21512a9c841c1623f1cdf6ffabadc86a1b21f Mon Sep 17 00:00:00 2001 From: Nebula Date: Fri, 9 Nov 2018 05:42:32 +0000 Subject: [PATCH 1/3] Add Chinese language --- src/i18n/messages.js | 3 +- src/i18n/zh-CN.json | 201 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 203 insertions(+), 1 deletion(-) create mode 100644 src/i18n/zh-CN.json diff --git a/src/i18n/messages.js b/src/i18n/messages.js index 4cd3c4e26f..17a7faa798 100644 --- a/src/i18n/messages.js +++ b/src/i18n/messages.js @@ -26,7 +26,8 @@ const messages = { pl: require('./pl.json'), pt: require('./pt.json'), ro: require('./ro.json'), - ru: require('./ru.json') + ru: require('./ru.json'), + 'zh-CN': require('./zh-CN.json') } export default messages diff --git a/src/i18n/zh-CN.json b/src/i18n/zh-CN.json new file mode 100644 index 0000000000..f30cfe0b84 --- /dev/null +++ b/src/i18n/zh-CN.json @@ -0,0 +1,201 @@ +{ + "chat": { + "title": "聊天" + }, + "features_panel": { + "chat": "聊天", + "gopher": "Gopher", + "media_proxy": "媒体代理", + "scope_options": "可见范围设置", + "text_limit": "文本长度限制", + "title": "功能", + "who_to_follow": "推荐关注" + }, + "finder": { + "error_fetching_user": "获取用户时发生错误", + "find_user": "寻找用户" + }, + "general": { + "apply": "应用", + "submit": "提交" + }, + "login": { + "login": "登录", + "logout": "登出", + "password": "密码", + "placeholder": "例如:lain", + "register": "注册", + "username": "用户名" + }, + "nav": { + "chat": "本地聊天", + "friend_requests": "关注请求", + "mentions": "提及", + "public_tl": "公共时间线", + "timeline": "时间线", + "twkn": "所有已知网络" + }, + "notifications": { + "broken_favorite": "未知的状态,正在搜索中...", + "favorited_you": "收藏了你的状态", + "followed_you": "关注了你", + "load_older": "加载更早的通知", + "notifications": "通知", + "read": "Read!", + "repeated_you": "转发了你的状态" + }, + "post_status": { + "account_not_locked_warning": "你的帐号没有 {0}。任何人都可以关注你并浏览你的上锁内容。", + "account_not_locked_warning_link": "上锁", + "attachments_sensitive": "标记附件为敏感内容", + "content_type": { + "plain_text": "纯文本" + }, + "content_warning": "主题(可选)", + "default": "刚刚抵达上海", + "direct_warning": "本条内容只有被提及的用户能够看到。", + "posting": "发送", + "scope": { + "direct": "私信 - 只发送给被提及的用户", + "private": "仅关注者 - 只有关注了你的人能看到", + "public": "公共 - 发送到公共时间轴", + "unlisted": "不公开 - 所有人可见,但不会发送到公共时间轴" + } + }, + "registration": { + "bio": "简介", + "email": "电子邮箱", + "fullname": "全名", + "password_confirm": "确认密码", + "registration": "注册", + "token": "邀请码" + }, + "settings": { + "attachmentRadius": "附件", + "attachments": "附件", + "autoload": "启用滚动到底部时自动加载", + "avatar": "头像", + "avatarAltRadius": "头像(通知)", + "avatarRadius": "头像", + "background": "背景", + "bio": "简介", + "btnRadius": "按钮", + "cBlue": "蓝色(回复,关注)", + "cGreen": "绿色(转发)", + "cOrange": "橙色(收藏)", + "cRed": "红色(取消)", + "change_password": "修改密码", + "change_password_error": "修改密码的时候出了点问题。", + "changed_password": "成功修改了密码!", + "collapse_subject": "折叠带主题的内容", + "confirm_new_password": "确认新密码", + "current_avatar": "当前头像", + "current_password": "当前密码", + "current_profile_banner": "您当前的横幅图片", + "data_import_export_tab": "数据导入/导出", + "default_vis": "默认可见范围", + "delete_account": "删除账户", + "delete_account_description": "永久删除你的帐号和所有消息。", + "delete_account_error": "删除账户时发生错误,如果一直删除不了,请联系实例管理员。", + "delete_account_instructions": "在下面输入你的密码来确认删除账户", + "export_theme": "Save preset", + "filtering": "过滤器", + "filtering_explanation": "所有包含以下词汇的图片都会被隐藏,一行一个", + "follow_export": "导出关注", + "follow_export_button": "将关注导出成 csv 文件", + "follow_export_processing": "正在处理,过一会儿就可以下载你的文件了", + "follow_import": "导入关注", + "follow_import_error": "导入关注时错误", + "follows_imported": "关注已导入!尚需要一些时间来处理。", + "foreground": "前景", + "general": "通用", + "hide_attachments_in_convo": "在对话中隐藏附件", + "hide_attachments_in_tl": "在时间线上隐藏附件", + "hide_post_stats": "隐藏推文相关的统计数据(例如:收藏的次数)", + "hide_user_stats": "隐藏用户的统计数据(例如:关注者的数量)", + "import_followers_from_a_csv_file": "从 csv 文件中导入关注", + "import_theme": "加载预置主题", + "inputRadius": "输入框", + "instance_default": "(默认:{value})", + "interfaceLanguage": "界面语言", + "invalid_theme_imported": "你所选择的主题文件不被 Pleroma 支持,因此主题未被修改。", + "limited_availability": "在你的浏览器中无法使用", + "links": "链接", + "lock_account_description": "你需要手动审核关注请求", + "loop_video": "循环视频", + "loop_video_silent_only": "只循环没有声音的视频(例如:Mastodon 里的“GIF”)", + "name": "名字", + "name_bio": "名字及简介", + "new_password": "新密码", + "notification_visibility": "要显示的通知类型", + "notification_visibility_follows": "关注", + "notification_visibility_likes": "点赞", + "notification_visibility_mentions": "提及", + "notification_visibility_repeats": "转发", + "no_rich_text_description": "不显示富文本格式", + "nsfw_clickthrough": "将不和谐附件隐藏,点击才能打开", + "panelRadius": "面板", + "pause_on_unfocused": "在离开页面时暂停时间线推送", + "presets": "Presets", + "profile_background": "个人资料背景图", + "profile_banner": "横幅图片", + "profile_tab": "个人资料", + "radii_help": "设置界面边缘圆角 (单位:像素)", + "replies_in_timeline": "时间线中的回复", + "reply_link_preview": "启用鼠标悬停时预览回复链接", + "reply_visibility_all": "显示所有回复", + "reply_visibility_following": "只显示发送给我的回复或者发送给我关注的用户的回复", + "reply_visibility_self": "只显示发送给我的回复", + "saving_err": "保存设置时发生错误", + "saving_ok": "设置已保存", + "security_tab": "安全", + "set_new_avatar": "设置新头像", + "set_new_profile_background": "设置新的个人资料背景", + "set_new_profile_banner": "设置新的横幅图片", + "settings": "设置", + "stop_gifs": "鼠标悬停时播放GIF", + "streaming": "开启滚动到顶部时的自动推送", + "text": "文本", + "theme": "主题", + "theme_help": "使用十六进制代码(#rrggbb)来设置主题颜色。", + "tooltipRadius": "提醒", + "user_settings": "用户设置", + "values": { + "false": "否", + "true": "是" + } + }, + "timeline": { + "collapse": "折叠", + "conversation": "对话", + "error_fetching": "获取更新时发生错误", + "load_older": "加载更早的状态", + "no_retweet_hint": "这条内容仅关注者可见,或者是私信,因此不能转发。", + "repeated": "已转发", + "show_new": "显示新内容", + "up_to_date": "已是最新" + }, + "user_card": { + "approve": "允许", + "block": "屏蔽", + "blocked": "已屏蔽!", + "deny": "拒绝", + "follow": "关注", + "followees": "正在关注", + "followers": "关注者", + "following": "正在关注!", + "follows_you": "关注了你!", + "mute": "隐藏", + "muted": "已隐藏", + "per_day": "每天", + "remote_follow": "跨站关注", + "statuses": "状态" + }, + "user_profile": { + "timeline_title": "用户时间线" + }, + "who_to_follow": { + "more": "更多", + "who_to_follow": "推荐关注" + } +} \ No newline at end of file From 819e9ce6a304e2391c23f523b080d3d9b3263baa Mon Sep 17 00:00:00 2001 From: Starmancer Date: Fri, 9 Nov 2018 14:15:55 +0800 Subject: [PATCH 2/3] update Chinese translation --- src/i18n/messages.js | 2 +- src/i18n/{zh-CN.json => zh.json} | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) rename src/i18n/{zh-CN.json => zh.json} (96%) diff --git a/src/i18n/messages.js b/src/i18n/messages.js index 17a7faa798..75801e08a6 100644 --- a/src/i18n/messages.js +++ b/src/i18n/messages.js @@ -27,7 +27,7 @@ const messages = { pt: require('./pt.json'), ro: require('./ro.json'), ru: require('./ru.json'), - 'zh-CN': require('./zh-CN.json') + zh: require('./zh.json') } export default messages diff --git a/src/i18n/zh-CN.json b/src/i18n/zh.json similarity index 96% rename from src/i18n/zh-CN.json rename to src/i18n/zh.json index f30cfe0b84..a1c8ff0ec4 100644 --- a/src/i18n/zh-CN.json +++ b/src/i18n/zh.json @@ -98,9 +98,9 @@ "delete_account_description": "永久删除你的帐号和所有消息。", "delete_account_error": "删除账户时发生错误,如果一直删除不了,请联系实例管理员。", "delete_account_instructions": "在下面输入你的密码来确认删除账户", - "export_theme": "Save preset", + "export_theme": "保存预置主题", "filtering": "过滤器", - "filtering_explanation": "所有包含以下词汇的图片都会被隐藏,一行一个", + "filtering_explanation": "所有包含以下词汇的内容都会被隐藏,一行一个", "follow_export": "导出关注", "follow_export_button": "将关注导出成 csv 文件", "follow_export_processing": "正在处理,过一会儿就可以下载你的文件了", @@ -136,15 +136,15 @@ "nsfw_clickthrough": "将不和谐附件隐藏,点击才能打开", "panelRadius": "面板", "pause_on_unfocused": "在离开页面时暂停时间线推送", - "presets": "Presets", + "presets": "预置", "profile_background": "个人资料背景图", "profile_banner": "横幅图片", "profile_tab": "个人资料", - "radii_help": "设置界面边缘圆角 (单位:像素)", + "radii_help": "设置界面边缘的圆角 (单位:像素)", "replies_in_timeline": "时间线中的回复", "reply_link_preview": "启用鼠标悬停时预览回复链接", "reply_visibility_all": "显示所有回复", - "reply_visibility_following": "只显示发送给我的回复或者发送给我关注的用户的回复", + "reply_visibility_following": "只显示发送给我的回复/发送给我关注的用户的回复", "reply_visibility_self": "只显示发送给我的回复", "saving_err": "保存设置时发生错误", "saving_ok": "设置已保存", @@ -198,4 +198,4 @@ "more": "更多", "who_to_follow": "推荐关注" } -} \ No newline at end of file +} From 4c5073a66c609af5cadad6985195748b19e4afdf Mon Sep 17 00:00:00 2001 From: Starmancer Date: Fri, 9 Nov 2018 14:29:14 +0800 Subject: [PATCH 3/3] minor modification of Chinese translation --- src/i18n/zh.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/i18n/zh.json b/src/i18n/zh.json index a1c8ff0ec4..7ad23c5783 100644 --- a/src/i18n/zh.json +++ b/src/i18n/zh.json @@ -41,7 +41,7 @@ "followed_you": "关注了你", "load_older": "加载更早的通知", "notifications": "通知", - "read": "Read!", + "read": "阅读!", "repeated_you": "转发了你的状态" }, "post_status": { @@ -73,7 +73,7 @@ "settings": { "attachmentRadius": "附件", "attachments": "附件", - "autoload": "启用滚动到底部时自动加载", + "autoload": "启用滚动到底部时的自动加载", "avatar": "头像", "avatarAltRadius": "头像(通知)", "avatarRadius": "头像", @@ -98,7 +98,7 @@ "delete_account_description": "永久删除你的帐号和所有消息。", "delete_account_error": "删除账户时发生错误,如果一直删除不了,请联系实例管理员。", "delete_account_instructions": "在下面输入你的密码来确认删除账户", - "export_theme": "保存预置主题", + "export_theme": "导出预置主题", "filtering": "过滤器", "filtering_explanation": "所有包含以下词汇的内容都会被隐藏,一行一个", "follow_export": "导出关注", @@ -114,12 +114,12 @@ "hide_post_stats": "隐藏推文相关的统计数据(例如:收藏的次数)", "hide_user_stats": "隐藏用户的统计数据(例如:关注者的数量)", "import_followers_from_a_csv_file": "从 csv 文件中导入关注", - "import_theme": "加载预置主题", + "import_theme": "导入预置主题", "inputRadius": "输入框", "instance_default": "(默认:{value})", "interfaceLanguage": "界面语言", - "invalid_theme_imported": "你所选择的主题文件不被 Pleroma 支持,因此主题未被修改。", - "limited_availability": "在你的浏览器中无法使用", + "invalid_theme_imported": "您所选择的主题文件不被 Pleroma 支持,因此主题未被修改。", + "limited_availability": "在您的浏览器中无法使用", "links": "链接", "lock_account_description": "你需要手动审核关注请求", "loop_video": "循环视频",