Skip to content

Instantly share code, notes, and snippets.

@wangpingjx
Created March 10, 2015 14:28
Show Gist options
  • Save wangpingjx/373f02a1d34aa7fa795b to your computer and use it in GitHub Desktop.
Save wangpingjx/373f02a1d34aa7fa795b to your computer and use it in GitHub Desktop.
zh-CN.yml
# Files in the config/locales directory are used for internationalization
# and are automatically loaded by Rails. If you want to use locales other
# than English, add the necessary files in this directory.
#
# To use the locales, use `I18n.t`:
#
# I18n.t 'hello'
#
# In views, this is aliased to just `t`:
#
# <%= t('hello') %>
#
# To use a different locale, set it with `I18n.locale`:
#
# I18n.locale = :es
#
# This would use the information in config/locales/es.yml.
#
# To learn more, please read the Rails Internationalization guide
# available at http://guides.rubyonrails.org/i18n.html.
zh-CN:
date:
abbr_day_names:
- 日
- 一
- 二
- 三
- 四
- 五
- 六
abbr_month_names:
-
- 1月
- 2月
- 3月
- 4月
- 5月
- 6月
- 7月
- 8月
- 9月
- 10月
- 11月
- 12月
day_names:
- 星期日
- 星期一
- 星期二
- 星期三
- 星期四
- 星期五
- 星期六
formats:
default: ! '%Y-%m-%d'
long: ! '%Y年%b%d日'
short: ! '%b%d日'
month_names:
-
- 一月
- 二月
- 三月
- 四月
- 五月
- 六月
- 七月
- 八月
- 九月
- 十月
- 十一月
- 十二月
order:
- :year
- :month
- :day
datetime:
distance_in_words:
about_x_hours:
one: 大约一小时
other: 大约 %{count} 小时
about_x_months:
one: 大约一个月
other: 大约 %{count} 个月
about_x_years:
one: 大约一年
other: 大约 %{count} 年
almost_x_years:
one: 接近一年
other: 接近 %{count} 年
half_a_minute: 半分钟
less_than_x_minutes:
one: 不到一分钟
other: 不到 %{count} 分钟
less_than_x_seconds:
one: 不到一秒
other: 不到 %{count} 秒
over_x_years:
one: 一年多
other: ! '%{count} 年多'
x_days:
one: 一天
other: ! '%{count} 天'
x_minutes:
one: 一分钟
other: ! '%{count} 分钟'
x_months:
one: 一个月
other: ! '%{count} 个月'
x_seconds:
one: 一秒
other: ! '%{count} 秒'
prompts:
day: 日
hour: 时
minute: 分
month: 月
second: 秒
year: 年
errors: &errors
format: ! '%{attribute} %{message}'
messages:
accepted: 必须是可被接受的
blank: 不能为空字符
confirmation: 与确认值不匹配
empty: 不能留空
equal_to: 必须等于 %{count}
even: 必须为双数
exclusion: 是保留关键字
greater_than: 必须大于 %{count}
greater_than_or_equal_to: 必须大于或等于 %{count}
inclusion: 不包含于列表中
invalid: 是无效的
less_than: 必须小于 %{count}
less_than_or_equal_to: 必须小于或等于 %{count}
not_a_number: 不是数字
not_an_integer: 必须是整数
odd: 必须为单数
record_invalid: ! '验证失败: %{errors}'
taken: 已经被使用
too_long: 过长(最长为 %{count} 个字符)
too_short: 过短(最短为 %{count} 个字符)
wrong_length: 长度非法(必须为 %{count} 个字符)
template:
body: 如下字段出现错误:
header:
one: 有 1 个错误发生导致「%{model}」无法被保存。
other: 有 %{count} 个错误发生导致「%{model}」无法被保存。
helpers:
select:
prompt: 请选择
submit:
create: 新增%{model}
submit: 储存%{model}
update: 更新%{model}
number:
currency:
format:
delimiter: ! ','
format: ! '%u %n'
precision: 2
separator: .
significant: false
strip_insignificant_zeros: false
unit: CN¥
format:
delimiter: ! ','
precision: 3
separator: .
significant: false
strip_insignificant_zeros: false
human:
decimal_units:
format: ! '%n %u'
units:
billion: 十亿
million: 百万
quadrillion: 千兆
thousand: 千
trillion: 兆
unit: ''
format:
delimiter: ''
precision: 1
significant: false
strip_insignificant_zeros: false
storage_units:
format: ! '%n %u'
units:
byte:
one: Byte
other: Bytes
gb: GB
kb: KB
mb: MB
tb: TB
percentage:
format:
delimiter: ''
precision:
format:
delimiter: ''
support:
array:
last_word_connector: ! ', 和 '
two_words_connector: ! ' 和 '
words_connector: ! ', '
time:
am: 上午
formats:
default: ! '%Y年%b%d日 %A %H:%M:%S %Z'
long: ! '%Y年%b%d日 %H:%M'
short: ! '%b%d日 %H:%M'
pm: 下午
# remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
activemodel:
errors:
<<: *errors
activerecord:
errors:
<<: *errors
hello: "Hello world"
views:
pagination:
first: "&laquo; 第一页"
last: "最后一页 &raquo;"
previous: "&lsaquo; 前一页"
next: "下一页 &rsaquo;"
truncate: "..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment