padrino-helpers/lib/padrino-helpers/locale/zh_cn.yml
zh_cn:
number:
# Used in number_with_delimiter().
# These are also the defaults for 'currency', 'percentage', 'precision', and 'human'.
format:
# Sets the separator between the units, for more precision (e.g. 1.0 / 2.0 == 0.5).
separator: "."
# Delimits thousands (e.g. 1,000,000 is a million) (always in groups of three).
delimiter: ","
# Number of decimals, behind the separator (the number 1 with a precision of 2 gives: 1.00).
precision: 3
# Used in number_to_currency().
currency:
format:
# Where is the currency sign? %u is the currency unit, %n the number (default: $5.00).
format: "%u%n"
unit: "RMB"
# These three are to override number.format and are optional.
separator: "."
delimiter: ","
precision: 2
# Used in number_to_percentage().
percentage:
format:
# These three are to override number.format and are optional.
# separator:
delimiter: ""
# precision:
# Used in number_to_precision().
precision:
format:
# These three are to override number.format and are optional.
# separator:
delimiter: ""
# precision:
# Used in number_to_human_size().
human:
format:
# These three are to override number.format and are optional.
# separator:
delimiter: ""
precision: 1
storage_units:
# Storage units output formatting.
# %u is the storage unit, %n is the number (default: 2 MB).
format: "%n %u"
units:
byte:
one: "字节"
other: "字节"
kb: "K"
mb: "兆"
gb: "G"
tb: "T"
# Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words().
datetime:
distance_in_words:
half_a_minute: "半分钟"
less_than_x_seconds:
one: "不到一秒"
other: "不到 %{count} 秒"
x_seconds:
one: "一秒"
other: "%{count} 秒"
less_than_x_minutes:
one: "不到一分钟"
other: "不到 %{count} 分钟"
x_minutes:
one: "一分钟"
other: "%{count} 分钟"
about_x_hours:
one: "大约一小时"
other: "大约 %{count} 小时"
x_days:
one: "一天"
other: "%{count} 天"
about_x_months:
one: "大约一个月"
other: "大约 %{count} 个月"
x_months:
one: "一个月"
other: "%{count} 个月"
about_x_years:
one: "大约一年"
other: "大约 %{count} 年"
over_x_years:
one: "一年多"
other: "%{count} 年多"
almost_x_years:
one: "已经一年"
other: "已经 %{count} 年"
models:
errors:
template:
header:
one: "%{model} 保存时产生错误"
other: "%{model} 保存时产生了 %{count} 个错误"
body: "下列字段产生错误:"