Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

feat(i18n): add zh-CN translations for charts and ledger views (#4617)

Kenrick Tandrian131e786b9373
diff --git a/config/locales/views/categories/zh-CN.yml b/config/locales/views/categories/zh-CN.yml
index 7179b7e187..e4e7ea92e1 100644
--- a/config/locales/views/categories/zh-CN.yml
+++ b/config/locales/views/categories/zh-CN.yml
@@ -3,6 +3,10 @@ zh-CN:
categories:
bootstrap:
success: 默认分类创建成功
+ locked: 分类已被锁定。解锁后即可添加新分类。
+ toggle_lock:
+ locked: 分类已锁定
+ unlocked: 分类已解锁
category:
delete: 删除分类
edit: 编辑分类
@@ -31,24 +35,21 @@ zh-CN:
categories_incomes: 收入分类
delete_all: 全部删除
empty: 未找到分类
- new: 新建分类
+ lock_categories: 锁定分类创建
+ locked_message: 分类创建已锁定。导入和银行同步仍可添加分类。
merge: 合并分类
- new:
- new_category: 新建分类
- update:
- success: 分类更新成功
- virtual:
- transfer: 转账
- payment: 付款
- trade: 交易
+ new: 新建分类
+ unlock_categories: 解锁分类创建
merge:
title: 合并分类
- description: 选择要合并的分类,并指定保留的目标分类。
+ description: 选择目标分类以及要合并到其中的分类。匹配的交易和预算项将移至目标分类。
target_label: 合并到(目标)
select_target: 选择目标分类...
sources_label: 要合并的分类
- sources_hint: 这些分类会被合并到目标分类中。
+ sources_hint: 所选分类将在其交易和预算项移至目标分类后被删除。请勿将目标分类选为来源。
submit: 合并所选分类
+ new:
+ new_category: 新建分类
perform_merge:
success:
one: 已成功合并 %{count} 个分类。
@@ -56,7 +57,13 @@ zh-CN:
no_categories_selected: 请选择要合并的分类。
target_not_found: 找不到目标分类。
invalid_categories: 选择的分类无效。
- target_selected_as_source: 目标分类不能同时作为来源分类。
+ target_selected_as_source: 请为目标分类和来源分类选择不同的分类。
+ update:
+ success: 分类更新成功
+ virtual:
+ transfer: 转账
+ payment: 付款
+ trade: 交易
category:
dropdowns:
show:
diff --git a/config/locales/views/components/zh-CN.yml b/config/locales/views/components/zh-CN.yml
index b92eaf4757..adc2a16c58 100644
--- a/config/locales/views/components/zh-CN.yml
+++ b/config/locales/views/components/zh-CN.yml
@@ -68,98 +68,41 @@ zh-CN:
holdings_value: 持仓价值
remaining_principal_balance: 剩余本金余额
total_account_value: 账户总价值
+ loan_remaining_balance: 剩余余额
+ total_gains: 总收益
views:
cash: 现金
holdings: 持仓
total_value: 总价值
+ gains: 收益 / 投资回报率
vs_available_history: 与可用历史相比
+ loan:
+ actual: 记录余额
+ scheduled: 原始计划
+ projected: 从今日起的预测
+ today: 今天
+ interactive_chart: 交互式图表
+ no_payoff: 按当前还款进度无法还清
+ aria_description: 贷款余额图表。记录余额 %{current_balance}。原始计划结清日期 %{scheduled_payoff_date}。从今日余额起的预测结清日期 %{projected_payoff_date}。
+ aria_actual_history_starts: 记录余额历史始于 %{date}。
+ aria_interest_share: 第一年的还款中约有 %{first}% 为利息;最后一年的还款中约有 %{last}% 为利息。
+ aria_interest_share_overall: 在所有还款中约有 %{share}% 为利息。
+ aria_composition: 每笔计划还款的提示框会将其拆分为 %{principal} 和 %{interest}。
+ interest_share: 利息占比
+ principal_share: 本金占比
+ projected_payoff: 预测结清时间
+ months_saved:
+ one: 比计划提前 %{count} 个月
+ other: 比计划提前 %{count} 个月
+ on_schedule: 按计划进行
+ interest_saved: 节省利息
+ not_converged: 按当前还款进度,该余额无法在原到期日前结清;仍需偿还 %{balloon}。
+ projection_basis: 将今天记录的余额与同一天的计划余额进行比较。在计划日期之前入账的付款在该日期前显示为提前;之后入账的显示为落后。
+ legend: 图表系列
+ since_start: 自贷款开始以来
activity_date:
balance_tooltip: 当日结束余额,已包含所有交易和调整
no_balance_data: 此日期没有余额数据
- ds:
- alert:
- variants:
- info: 信息
- success: 成功
- warning: 警告
- error: 错误
- destructive: 错误
- pill:
- aria_label: "%{label}"
- default_label: 预览
- dialog:
- close: 关闭
- popover:
- avatar_default_label: 打开菜单
- tooltip:
- trigger_label: 更多信息
- link:
- opens_in_new_tab: (在新标签页打开)
- provider_sync_summary:
- title: 同步摘要
- last_sync: "上次同步:%{time_ago} 前"
- accounts:
- title: 账户
- total: "总计:%{count}"
- linked: "已关联:%{count}"
- unlinked: "未关联:%{count}"
- institutions: "机构:%{count}"
- transactions:
- title: 交易
- seen: "已看到:%{count}"
- imported: "已导入:%{count}"
- updated: "已更新:%{count}"
- skipped: "已跳过:%{count}"
- fetching: 正在从券商获取...
- protected:
- one: 已保护 %{count} 条记录(未覆盖)
- other: 已保护 %{count} 条记录(未覆盖)
- view_protected: 查看受保护记录
- skip_reasons:
- excluded: 已排除
- user_modified: 用户已修改
- import_locked: CSV 导入
- protected: 受保护
- holdings:
- title: 持仓
- found: "已找到:%{count}"
- processed: "已处理:%{count}"
- trades:
- title: 交易
- imported: "已导入:%{count}"
- skipped: "已跳过:%{count}"
- fetching: 正在从券商获取活动...
- health:
- title: 健康状况
- view_error_details: 查看错误详情
- rate_limited: "%{time_ago} 前触发限流"
- recently: 最近
- errors: "错误:%{count}"
- pending_reconciled:
- one: 已核对 %{count} 笔重复待处理交易
- other: 已核对 %{count} 笔重复待处理交易
- view_reconciled: 查看已核对交易
- duplicate_suggestions:
- one: 有 %{count} 条可能的重复记录需要查看
- other: 有 %{count} 条可能的重复记录需要查看
- view_duplicate_suggestions: 查看建议的重复项
- stale_pending:
- one: "%{count} 笔过期待处理交易(已从预算中排除)"
- other: "%{count} 笔过期待处理交易(已从预算中排除)"
- view_stale_pending: 查看受影响账户
- stale_pending_count:
- one: "%{count} 笔交易"
- other: "%{count} 笔交易"
- stale_unmatched:
- one: "%{count} 笔待处理交易需要手动审核"
- other: "%{count} 笔待处理交易需要手动审核"
- view_stale_unmatched: 查看需要审核的交易
- stale_unmatched_count:
- one: "%{count} 笔交易"
- other: "%{count} 笔交易"
- data_warnings: "数据警告:%{count}"
- notices: "通知:%{count}"
- view_data_quality: 查看数据质量详情
period_picker:
aria_label: 时间范围:%{period}
ds:
@@ -180,7 +123,10 @@ zh-CN:
tooltip:
trigger_label: 更多信息
link:
- opens_in_new_tab: "(在新标签页打开)"
+ opens_in_new_tab: (在新标签页打开)
+ icon_picker:
+ search_placeholder: 搜索图标...
+ no_matching_icons: 未找到匹配的图标
provider_sync_summary:
title: 同步摘要
last_sync: 上次同步:%{time_ago} 前
diff --git a/config/locales/views/merchants/zh-CN.yml b/config/locales/views/merchants/zh-CN.yml
index 65b70e51fa..477a5f146a 100644
--- a/config/locales/views/merchants/zh-CN.yml
+++ b/config/locales/views/merchants/zh-CN.yml
@@ -2,7 +2,7 @@
zh-CN:
family_merchants:
create:
- error: 创建商户出错:%{error}
+ error: "创建商户出错:%{error}"
success: 新商户创建成功
destroy:
success: 商户删除成功
@@ -11,30 +11,38 @@ zh-CN:
title: 编辑商户
form:
name_placeholder: 商户名称
- website_placeholder: 网站(例如 starbucks.com)
+ website_placeholder: "网站(例如 starbucks.com)"
website_hint: 输入商户网站以自动显示其徽标
+ logo_label: 徽标
+ logo_hint: "覆盖网站徽标。支持 JPEG、PNG 或 WebP,最大 %{max_megabytes}MB。"
+ remove_logo_label: 移除已上传的徽标
index:
empty: 还没有商户
new: 新商户
+ import: 导入商户
merge: 合并商户
title: 商户
family_title: "%{moniker} 商户"
- family_empty: 还没有 %{moniker} 商户
+ family_empty: "还没有 %{moniker} 商户"
provider_title: 提供商商户
- provider_empty: 还没有链接到此 %{moniker} 的提供商商户
+ provider_empty: "还没有链接到此 %{moniker} 的提供商商户"
provider_read_only: 提供商商户来自您已连接的机构同步,无法在此编辑。
provider_info: 这些商户是由您的银行连接或 AI 自动识别的。您可以编辑它们以创建自己的副本,或将其移除以解除与交易的关联。
enhance_info:
- one: 有 %{count} 个提供商商户缺少网站信息。可使用 AI 增强以检测网站、显示徽标并合并重复商户。
- other: 有 %{count} 个提供商商户缺少网站信息。可使用 AI 增强以检测网站、显示徽标并合并重复商户。
+ one: "有 %{count} 个提供商商户缺少网站信息。可使用 AI 增强以检测网站、显示徽标并合并重复商户。"
+ other: "有 %{count} 个提供商商户缺少网站信息。可使用 AI 增强以检测网站、显示徽标并合并重复商户。"
enhance_button: 使用 AI 增强
+ search_family_merchants: 搜索家庭商户...
+ search_provider_merchants: 搜索提供商商户...
+ no_family_merchants_found: 未找到匹配的家庭商户
+ no_provider_merchants_found: 未找到匹配的提供商商户
+ per_page: 每页
unlinked_title: 最近解除关联
unlinked_info: 这些商户最近已从您的交易中移除。除非重新分配到交易,否则它们会在 30 天后从列表中消失。
table:
merchant: 商户
actions: 操作
source: 来源
- import: 导入商户
family_merchant:
edit: 编辑
delete: 删除
@@ -50,14 +58,16 @@ zh-CN:
target_label: 合并到(目标)
select_target: 选择目标商户...
sources_label: 要合并的商户
+ sources_search_placeholder: 搜索商户...
+ no_merchants_found: 未找到匹配的商户
sources_hint: 所选商户将合并到目标商户。家庭商户将被删除,提供商商户将解除关联。
submit: 合并所选项
new:
title: 新建商户
perform_merge:
success:
- one: 成功合并 %{count} 个商户
- other: 成功合并 %{count} 个商户
+ one: "成功合并 %{count} 个商户"
+ other: "成功合并 %{count} 个商户"
no_merchants_selected: 未选择要合并的商户
target_not_found: 未找到目标商户
invalid_merchants: 选择了无效商户
@@ -65,10 +75,19 @@ zh-CN:
edit: 编辑
remove: 移除
remove_confirm_title: 移除商户?
- remove_confirm_body: 确定要移除 %{name} 吗?这会解除该商户下所有相关交易的关联,但不会删除商户本身。
+ remove_confirm_body: "确定要移除 %{name} 吗?这会解除该商户下所有相关交易的关联,但不会删除商户本身。"
enhance:
success: 已开始增强提供商商户。商户很快会得到增强并合并重复项。
already_running: 增强已在进行中,请等待完成。
update:
success: 商户更新成功
converted_success: 商户已成功转换并更新
+ merchants:
+ show:
+ average_transaction: 平均交易额
+ edit: 编辑商户
+ first_transaction: 首笔交易
+ last_transaction: 最近交易
+ summary: 摘要
+ total_spending: 总支出
+ total_transactions: 总交易次数
diff --git a/config/locales/views/trades/zh-CN.yml b/config/locales/views/trades/zh-CN.yml
index 44570f5357..f95f460c02 100644
--- a/config/locales/views/trades/zh-CN.yml
+++ b/config/locales/views/trades/zh-CN.yml
@@ -1,6 +1,11 @@
---
zh-CN:
trades:
+ api_errors:
+ activity_label_must_match_type: "当类型为 %{type} 时,investment_activity_label 必须为 %{label}"
+ invalid_activity_label: 无效的投资活动标签
+ invalid_type: 无效类型
+ supported_types: "类型必须是以下之一:%{types}"
form:
account: 转账账户(可选)
account_prompt: 搜索账户
@@ -20,11 +25,21 @@ zh-CN:
type_dividend: 分红
type_interest: 利息
dividend_requires_security: 分红需要证券
+ trade_requires_security: 买入和卖出交易必须指定证券(代码)
header:
buy: 买入
sell: 卖出
dividend: 分红
interest: 利息
+ contribution: 供款
+ exchange: 兑换
+ fee: 手续费
+ other: 其他
+ reinvestment: 再投资
+ sweep_in: 自动转入
+ sweep_out: 自动转出
+ transfer: 转账
+ withdrawal: 提取
current_market_price_label: 当前市场价
overview: 概览
purchase_price_label: 买入价格
@@ -45,7 +60,7 @@ zh-CN:
delete_subtitle: 此操作无法撤销
delete_title: 删除交易
details: 详情
- provider_disabled_warning: 价格更新已暂停——%{provider} 提供商已禁用。请在设置中重新启用,或将持仓重新映射到其他提供商。
+ provider_disabled_warning: "价格更新已暂停——%{provider} 提供商已禁用。请在设置中重新启用,或将持仓重新映射到其他提供商。"
exclude_subtitle: 此交易不会计入报表和计算
exclude_title: 从分析中排除
no_category: 无分类
diff --git a/config/locales/views/valuations/zh-CN.yml b/config/locales/views/valuations/zh-CN.yml
index 773e15ebf3..7535bc8565 100644
--- a/config/locales/views/valuations/zh-CN.yml
+++ b/config/locales/views/valuations/zh-CN.yml
@@ -1,9 +1,21 @@
---
zh-CN:
valuations:
+ names:
+ current_account_value: 当前账户价值
+ current_balance: 当前余额
+ current_loan_balance: 当前贷款余额
+ current_market_value: 当前市场价值
+ manual_balance_update: 手动余额更新
+ manual_principal_update: 手动本金更新
+ manual_value_update: 手动估值更新
+ opening_account_value: 期初账户价值
+ opening_balance: 期初余额
+ original_principal: 初始本金
+ original_purchase_price: 初始购买价格
confirmation_contents:
- this_will: 这将%{action_verb}账户在
- to_colon: 改为:
+ this_will: "这将%{action_verb}账户在"
+ to_colon: "改为:"
total_account_value: 账户总价值
holdings_value: 持仓价值
brokerage_cash: 券商现金
@@ -18,9 +30,11 @@ zh-CN:
balance: 余额
"on": 在
to: 到
- recalculate_notice: 所有未来的交易和余额都将根据此%{change_or_update}重新计算。
+ recalculate_notice: "所有未来的交易和余额都将根据此%{change_or_update}重新计算。"
change: 变更
update: 更新
+ action_set: 设定
+ action_update: 更新
create:
account_updated: 账户已更新
update:
@@ -58,5 +72,11 @@ zh-CN:
note_placeholder: 为此条目添加任何补充详情
overview: 概览
settings: 设置
- opening_balance: 开始余额
+ opening_balance: 期初余额
update_value: 更新价值
+ confirm_create:
+ confirm: 确认
+ title: 确认新余额
+ confirm_update:
+ title: 更新余额
+ update: 更新