Skip to content

Commit

Permalink
Merge pull request svenfuchs#997 from johnnyshields/standardize-zh-lo…
Browse files Browse the repository at this point in the history
…cales

Standardize all Chinese locales punctuation
  • Loading branch information
digitalfrost authored Aug 23, 2022
2 parents 4600ba3 + ae161fb commit 5044f85
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 95 deletions.
60 changes: 30 additions & 30 deletions rails/locale/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ zh-CN:
activerecord:
errors:
messages:
record_invalid: '验证失败: %{errors}'
record_invalid: 验证失败%{errors}
restrict_dependent_destroy:
has_one: 由于 %{record} 需要此记录,所以无法移除记录
has_many: 由于 %{record} 需要此记录,所以无法移除记录
has_one: 由于%{record}需要此记录,所以无法移除记录
has_many: 由于%{record}需要此记录,所以无法移除记录
date:
abbr_day_names:
- 周日
Expand Down Expand Up @@ -62,19 +62,19 @@ zh-CN:
- :day
datetime:
distance_in_words:
about_x_hours: 大约 %{count} 小时
about_x_months: 大约 %{count} 个月
about_x_years: 大约 %{count}
almost_x_years: 接近 %{count}
about_x_hours: 大约%{count}小时
about_x_months: 大约%{count}个月
about_x_years: 大约%{count}年
almost_x_years: 接近%{count}年
half_a_minute: 半分钟
less_than_x_seconds: 不到 %{count}
less_than_x_minutes: 不到 %{count} 分钟
over_x_years: "%{count} 年多"
x_seconds: "%{count} "
x_minutes: "%{count} 分钟"
x_days: "%{count} "
x_months: "%{count} 个月"
x_years: "%{count} "
less_than_x_seconds: 不到%{count}秒
less_than_x_minutes: 不到%{count}分钟
over_x_years: "%{count}年多"
x_seconds: "%{count}秒"
x_minutes: "%{count}分钟"
x_days: "%{count}天"
x_months: "%{count}个月"
x_years: "%{count}年"
prompts:
second:
minute:
Expand All @@ -83,35 +83,35 @@ zh-CN:
month:
year:
errors:
format: "%{attribute} %{message}"
format: "%{attribute}%{message}"
messages:
accepted: 必须是可被接受的
blank: 不能为空字符
confirmation: %{attribute} 不匹配
confirmation: 与%{attribute}不匹配
empty: 不能留空
equal_to: 必须等于 %{count}
equal_to: 必须等于%{count}
even: 必须为双数
exclusion: 是保留关键字
greater_than: 必须大于 %{count}
greater_than_or_equal_to: 必须大于或等于 %{count}
greater_than: 必须大于%{count}
greater_than_or_equal_to: 必须大于或等于%{count}
inclusion: 不包含于列表中
invalid: 是无效的
less_than: 必须小于 %{count}
less_than_or_equal_to: 必须小于或等于 %{count}
model_invalid: '验证失败: %{errors}'
less_than: 必须小于%{count}
less_than_or_equal_to: 必须小于或等于%{count}
model_invalid: 验证失败%{errors}
not_a_number: 不是数字
not_an_integer: 必须是整数
odd: 必须为单数
other_than: 长度非法(不可为 %{count} 个字符
other_than: 长度非法(不可为%{count}个字符
present: 必须是空白
required: 必须存在
taken: 已经被使用
too_long: 过长(最长为 %{count} 个字符)
too_short: 过短(最短为 %{count} 个字符)
wrong_length: 长度非法(必须为 %{count} 个字符)
too_long: 过长(最长为%{count}个字符)
too_short: 过短(最短为%{count}个字符)
wrong_length: 长度非法(必须为%{count}个字符)
template:
body: 如下字段出现错误:
header: %{count} 个错误发生导致“%{model}”无法被保存。
header: 有%{count}个错误发生导致“%{model}”无法被保存。
helpers:
select:
prompt: 请选择
Expand Down Expand Up @@ -169,8 +169,8 @@ zh-CN:
delimiter: ''
support:
array:
last_word_connector: " 以及 "
two_words_connector: ""
last_word_connector: ""
two_words_connector:
words_connector: ""
time:
am: 上午
Expand Down
38 changes: 19 additions & 19 deletions rails/locale/zh-HK.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ zh-HK:
activerecord:
errors:
messages:
record_invalid: 驗證失敗%{errors}
record_invalid: 驗證失敗%{errors}
restrict_dependent_destroy:
has_one: 由於%{record}依賴此記錄,無法移除
has_many: 由於%{record}依賴此記錄,無法移除
Expand Down Expand Up @@ -98,7 +98,7 @@ zh-HK:
other: "%{count}個月"
x_years:
one: 一年
other: "%{count} "
other: "%{count}年"
prompts:
second:
minute:
Expand All @@ -107,43 +107,43 @@ zh-HK:
month:
year:
errors:
format: "%{attribute} %{message}"
format: "%{attribute}%{message}"
messages:
accepted: 必定要被接受
blank: 不可以是空白
confirmation: %{attribute} 不一致
confirmation: 與%{attribute}不一致
empty: 不可以留空
equal_to: 必須等於 %{count}
equal_to: 必須等於%{count}
even: 必須要是雙數
exclusion: 是被保留的關鍵字
greater_than: 必須大於 %{count}
greater_than_or_equal_to: 必須大於或等於 %{count}
greater_than: 必須大於%{count}
greater_than_or_equal_to: 必須大於或等於%{count}
inclusion: 並非可被接受的內容
invalid: 是無效的
less_than: 必須小於 %{count}
less_than_or_equal_to: 必須小於或等於 %{count}
model_invalid: 驗證失敗%{errors}
less_than: 必須小於%{count}
less_than_or_equal_to: 必須小於或等於%{count}
model_invalid: 驗證失敗%{errors}
not_a_number: 必須是數字
not_an_integer: 必須是整數
odd: 必須是單數
other_than: 不可以是 %{count} 個字
other_than: 不可以是%{count}個字
present: 必定要是空白
required: 必須存在
taken: 已被使用
too_long:
one: 太長(最長為一個字元)
other: 太長(最長為 %{count} 個字元)
other: 太長(最長為%{count}個字元)
too_short:
one: 太短(最少為一個字元)
other: 太短(最少為 %{count} 個字元)
other: 太短(最少為%{count}個字元)
wrong_length:
one: 字數錯誤 (應為一個字元)
other: 字數錯誤 (應為 %{count} 個字元)
one: 字數錯誤應為一個字元
other: 字數錯誤(應為%{count}個字元
template:
body: 以下欄位發生問題
body: 以下欄位發生問題
header:
one: 發生一項錯誤,以致 %{model} 未能儲存。
other: 發生%{count}項錯誤,以致 %{model} 未能儲存。
one: 發生一項錯誤,以致%{model}未能儲存。
other: 發生%{count}項錯誤,以致%{model}未能儲存。
helpers:
select:
prompt: 請選擇
Expand Down Expand Up @@ -201,7 +201,7 @@ zh-HK:
delimiter: ''
support:
array:
last_word_connector:
last_word_connector: ""
two_words_connector:
words_connector: ""
time:
Expand Down
64 changes: 32 additions & 32 deletions rails/locale/zh-TW.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ zh-TW:
activerecord:
errors:
messages:
record_invalid: '校驗失敗: %{errors}'
record_invalid: 校驗失敗%{errors}
restrict_dependent_destroy:
has_one: 由於 %{record} 需要此記錄,所以無法移除記錄
has_many: 由於 %{record} 需要此記錄,所以無法移除記錄
has_one: 由於%{record}需要此記錄,所以無法移除記錄
has_many: 由於%{record}需要此記錄,所以無法移除記錄
date:
abbr_day_names:
- 周日
Expand Down Expand Up @@ -64,41 +64,41 @@ zh-TW:
distance_in_words:
about_x_hours:
one: 大約一小時
other: 大約 %{count} 小時
other: 大約%{count}小時
about_x_months:
one: 大約一個月
other: 大約 %{count} 個月
other: 大約%{count}個月
about_x_years:
one: 大約一年
other: 大約 %{count}
other: 大約%{count}年
almost_x_years:
one: 接近一年
other: 接近 %{count}
other: 接近%{count}年
half_a_minute: 半分鐘
less_than_x_seconds:
one: 不到一秒
other: 不到 %{count}
other: 不到%{count}秒
less_than_x_minutes:
one: 不到一分鐘
other: 不到 %{count} 分鐘
other: 不到%{count}分鐘
over_x_years:
one: 一年多
other: "%{count} 年多"
other: "%{count}年多"
x_seconds:
one: 一秒
other: "%{count} "
other: "%{count}秒"
x_minutes:
one: 一分鐘
other: "%{count} 分鐘"
other: "%{count}分鐘"
x_days:
one: 一天
other: "%{count} "
other: "%{count}天"
x_months:
one: 一個月
other: "%{count} 個月"
other: "%{count}個月"
x_years:
one: 一年
other: "%{count} "
other: "%{count}年"
prompts:
second:
minute:
Expand All @@ -111,39 +111,39 @@ zh-TW:
messages:
accepted: 必須是可被接受的
blank: 不能為空白
confirmation: %{attribute} 須一致
confirmation: 與%{attribute}須一致
empty: 不能留空
equal_to: 必須等於 %{count}
equal_to: 必須等於%{count}
even: 必須是偶數
exclusion: 是被保留的關鍵字
greater_than: 必須大於 %{count}
greater_than_or_equal_to: 必須大於或等於 %{count}
greater_than: 必須大於%{count}
greater_than_or_equal_to: 必須大於或等於%{count}
inclusion: 沒有包含在列表中
invalid: 是無效的
less_than: 必須小於 %{count}
less_than_or_equal_to: 必須小於或等於 %{count}
model_invalid: '校驗失敗: %{errors}'
less_than: 必須小於%{count}
less_than_or_equal_to: 必須小於或等於%{count}
model_invalid: 校驗失敗%{errors}
not_a_number: 不是數字
not_an_integer: 必須是整數
odd: 必須是奇數
other_than: 不可以是 %{count} 個字
other_than: 不可以是%{count}個字
present: 必須是空白
required: 必須存在
taken: 已經被使用
too_long:
one: 過長(最長是一個字)
other: 過長(最長是 %{count} 個字)
other: 過長(最長是%{count}個字)
too_short:
one: 過短(最短是一個字)
other: 過短(最短是 %{count} 個字)
other: 過短(最短是%{count}個字)
wrong_length:
one: 字數錯誤 (必須是一個字)
other: 字數錯誤 (必須是 %{count} 個字)
one: 字數錯誤必須是一個字
other: 字數錯誤必須是%{count}個字)
template:
body: 以下欄位發生問題:
header:
one: 有 1 個錯誤發生使得「%{model}」無法被儲存。
other: %{count} 個錯誤發生使得「%{model}」無法被儲存。
one: 有1個錯誤發生使得「%{model}」無法被儲存。
other: 有%{count}個錯誤發生使得「%{model}」無法被儲存。
helpers:
select:
prompt: 請選擇
Expand Down Expand Up @@ -201,9 +201,9 @@ zh-TW:
delimiter: ''
support:
array:
last_word_connector: ", 和 "
two_words_connector: ""
words_connector: ", "
last_word_connector: ""
two_words_connector:
words_connector: ""
time:
am: 上午
formats:
Expand Down
Loading

0 comments on commit 5044f85

Please sign in to comment.