-
-
Save greatghoul/3b7a2265ba2b4a72a0f037551ba2d6ac to your computer and use it in GitHub Desktop.
zh-CN.yml for Mongoid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"zh-CN": | |
will_paginate: | |
next_label: "下一页 →" | |
previous_label: "← 上一页" | |
page_gap: "…" | |
mongoid: | |
models: | |
user: "用户" | |
attributes: | |
user: | |
login: "用户名" | |
name: "昵称" | |
email: "Email" | |
avatar: "头像" | |
bio: "个人介绍" | |
password: "密码" | |
password_confirmation: "确认密码" | |
website: "个人主页" | |
remember_me: 记住登陆状态 | |
current_password: 旧密码 | |
errors: | |
messages: | |
inclusion: "不包含于列表中" | |
exclusion: "是保留关键字" | |
invalid: "是无效的" | |
confirmation: "与确认值不匹配" | |
accepted: "必须是可被接受的" | |
empty: "不能留空" | |
blank: "不能为空字符" | |
too_long: "过长(最长为 %{count} 个字符)" | |
too_short: "过短(最短为 %{count} 个字符)" | |
wrong_length: "长度非法(必须为 %{count} 个字符)" | |
taken: "已经被使用" | |
not_a_number: "不是数字" | |
not_an_integer: "必须是整数" | |
greater_than: "必须大于 %{count}" | |
greater_than_or_equal_to: "必须大于或等于 %{count}" | |
equal_to: "必须等于 %{count}" | |
less_than: "必须小于 %{count}" | |
less_than_or_equal_to: "必须小于或等于 %{count}" | |
odd: "必须为单数" | |
even: "必须为双数" | |
record_invalid: "校验失败: %{errors}" | |
taken: | |
已占用 | |
document_not_found: | |
没有发现类是 %{klass} ID 是 %{identifiers} 的文档 | |
invalid_database: | |
数据库应该是Mongo::DB,而不是%{name}. | |
invalid_type: | |
在类%{klass}中定义了字段,实际值是%{value}的%{other}. | |
unsupported_version: | |
MongoDB %{version} 版本已过期,请升级到 %{mongo_version}. | |
validations: | |
校验失败 - %{errors}. | |
invalid_collection: | |
不允许直接访问嵌入式的集合%{klass} , 请从文档的根访问集合. | |
invalid_field: | |
字段的名字不允许为 %{name}. 你不应该定义跟Mongoid内部属性或者方法相同的名字,详细请看Use Document#instance_methods. | |
too_many_nested_attribute_records: | |
被关联的%{association} 嵌入式属性不能超过 %{limit}. | |
embedded_in_must_have_inverse_of: | |
embedded_in的关联属性必须包含inverse_of. | |
dependent_only_references_one_or_many: | |
dependent => destroy|delete 选项只有在references_one或者references_many时候有效. | |
association_cant_have_inverse_of: | |
在当前的关联中,不允许定义inverse_of去,其只有在embedded_in或者references_many是数组的情况下使用 | |
unsaved_document: | |
You cannot call create or create! through a relational association | |
relation (%{document}) who's parent (%{base}) is not already saved. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment