forked from mongodb/mongoid
/
en-GB.yml
64 lines (64 loc) · 2.92 KB
/
en-GB.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
en-GB:
mongoid:
errors:
messages:
blank:
can't be blank
taken:
is already taken
callbacks:
"Calling %{method} on %{klass} resulted in a false return from a callback."
document_not_found:
Document not found for class %{klass} with id(s) %{identifiers}.
eager_load:
"Eager loading :%{name} is not supported due to it being a many-to-many
or polymorphic belongs_to relation."
invalid_database:
"Database should be a Mongo::DB, not %{name}."
invalid_options:
"Invalid option :%{invalid} provided to relation :%{name}. Valid options
are: %{valid}."
invalid_time:
"'%{value}' is not a valid Time."
invalid_type:
Field was defined as a(n) %{klass}, but received a %{other} with
the value %{value}.
unsupported_version:
MongoDB %{version} not supported, please upgrade
to %{mongo_version}.
validations:
Validation failed - %{errors}.
invalid_collection:
Access to the collection for %{klass} is not allowed since it
is an embedded document, please access a collection from
the root document.
invalid_field:
Defining a field named %{name} is not allowed. Do not define
fields that conflict with Mongoid internal attributes or method
names. Use Document#instance_methods to see what names this includes.
too_many_nested_attribute_records:
Accepting nested attributes for %{association} is limited
to %{limit} records.
embedded_in_must_have_inverse_of:
Options for embedded_in association must include inverse_of.
dependent_only_references_one_or_many:
The dependent => destroy|delete option that was supplied
is only valid on references_one or references_many associations.
association_cant_have_inverse_of:
Defining an inverse_of on this association is not allowed. Only
use this option on embedded_in or references_many as array.
calling_document_find_with_nil_is_invalid:
Calling Document#find with nil is invalid
unsaved_document:
"You cannot call create or create! through a relational association
relation (%{document}) who's parent (%{base}) is not already saved."
mixed_relations:
Referencing a(n) %{embedded} document from the %{root} document via a
relational association is not allowed since the %{embedded} is embedded.
no_environment:
"Mongoid attempted to find the appropriate environment but no Rails.env,
Sinatra::Base.environment, or RACK_ENV could be found."
scope_overwrite:
"Cannot create scope :%{scope_name}, because of existing method
%{model_name}.%{scope_name}."
blank_on_locale: "can't be blank in %{in_locale}"