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 property cost basis, AI consent, and classifier (#5739)

Kenrick Tandrianc57975dc5fd3
diff --git a/config/locales/models/account/zh-CN.yml b/config/locales/models/account/zh-CN.yml
index 875cb48074..76d86b1615 100644
--- a/config/locales/models/account/zh-CN.yml
+++ b/config/locales/models/account/zh-CN.yml
@@ -20,6 +20,8 @@ zh-CN:
models:
account:
attributes:
+ base:
+ cost_tag_other_family: "成本标签必须是您自己的标签之一"
logo:
invalid_content_type: "必须是 PNG、JPEG、GIF、WebP 或 ICO 格式的图片"
too_large: "大小不能超过 %{max_size} MB"
diff --git a/config/locales/models/ai/zh-CN.yml b/config/locales/models/ai/zh-CN.yml
index e6a6111702..d32a24815d 100644
--- a/config/locales/models/ai/zh-CN.yml
+++ b/config/locales/models/ai/zh-CN.yml
@@ -10,6 +10,8 @@ zh-CN:
member: "%{feature} 不可用:此实例尚未为此功能配置 AI。"
user_disabled:
member: "%{feature} 需要开启 AI。您可以在 AI 助手中将其开启。"
+ no_family_consent:
+ member: "%{feature} 需要家庭管理员开启 AI。他们可以在 AI 助手中将其开启。"
consent_rows:
bill_setup: 账单
categorize: 分类
diff --git a/config/locales/models/property/zh-CN.yml b/config/locales/models/property/zh-CN.yml
new file mode 100644
index 0000000000..2452aa903d
--- /dev/null
+++ b/config/locales/models/property/zh-CN.yml
@@ -0,0 +1,12 @@
+---
+zh-CN:
+ activerecord:
+ attributes:
+ property:
+ cost_tag: 成本标签
+ errors:
+ models:
+ property:
+ attributes:
+ cost_tag:
+ other_family: 必须是您自己的标签之一
diff --git a/config/locales/views/properties/zh-CN.yml b/config/locales/views/properties/zh-CN.yml
index af889eb5cb..4021c887ba 100644
--- a/config/locales/views/properties/zh-CN.yml
+++ b/config/locales/views/properties/zh-CN.yml
@@ -76,6 +76,7 @@ zh-CN:
title: 手动输入房产
market_value_label: 估算市值
market_value_tooltip: 您房产的估算市值。这个数字通常可以在 Zillow 或 Redfin 等网站上找到,但不会是完全精确的数值。
+ purchase_date_label: 购入日期
save: 保存
next: 下一步
overview_fields:
@@ -90,6 +91,11 @@ zh-CN:
square_feet: 平方英尺
square_meters: 平方米
area_unit_label: 面积单位
+ notes_label: 备注
+ notes_placeholder: 登记号或地籍号、契约编号、公证处等
+ cost_tag_label: 成本标签(可选)
+ cost_tag_prompt: 无
+ cost_tag_hint: 带有此标签的交易(如公证费和税费)将计入该房产的成本基础。
overview:
living_area: 居住面积
market_value: 市值
@@ -102,6 +108,15 @@ zh-CN:
living_area: 居住面积
market_value: 市值
purchase_price: 购入价格
+ purchase_costs: 购入成本
+ purchase_costs_in_currency: "以 %{currency} 计价的购入成本"
+ cost_transactions:
+ one: "1 笔标记为 %{tag} 的交易"
+ other: "%{count} 笔标记为 %{tag} 的交易"
+ cost_basis: 成本基础
+ cost_basis_in_currency: "以 %{currency} 计价的成本基础"
+ gain_after_costs: 扣除成本后的收益
+ gain_after_costs_in_currency: "以 %{currency} 计价的扣除成本后的收益"
trend: 趋势
trend_in_currency: "以 %{currency} 计价的趋势"
rate_unavailable: 暂无可用汇率
@@ -136,7 +151,11 @@ zh-CN:
agri_land:
short: 农业用地
long: 农业用地
+ update_balances:
+ invalid_currency: 请从列表中选择一种货币。
+ invalid_purchase_date: 请输入一个不在未来且距今不超过 30 年的购入日期。
form_tabs:
+ aria_label: 房产详情
address: 地址
overview: 概览
value: 价值
diff --git a/config/locales/views/settings/classifiers/zh-CN.yml b/config/locales/views/settings/classifiers/zh-CN.yml
index 289245b5cc..e7f6ebb6e8 100644
--- a/config/locales/views/settings/classifiers/zh-CN.yml
+++ b/config/locales/views/settings/classifiers/zh-CN.yml
@@ -31,6 +31,8 @@ zh-CN:
rule_hint: 分类分类器规则,在“规则”中与其同步开启和关闭。它会在每次同步后按照您的规则顺序对未分类交易进行分类;无法确定的交易将留给自动分类规则处理。
threshold: 阈值
threshold_hint: 贝叶斯采取行动的最低分数(0.05–0.99)。较低的阈值会分类更多交易,但错误也会增多。
+ min_category_examples: 每个分类的最少样本数
+ min_category_examples_hint: 只有当您至少有这么多笔交易属于某个分类(1–100)时,才会选用该分类。否则,样本极少的分类可能会以高分匹配到不熟悉的交易。
clear_locks:
success: 正在清除贝叶斯锁定。这可能需要一点时间。
evaluation: