administrate 0.11.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/administrate/components/associative.js +5 -0
- data/app/assets/javascripts/administrate/components/date_time_picker.js +6 -2
- data/app/assets/javascripts/administrate/components/table.js +1 -1
- data/app/assets/stylesheets/administrate/base/_tables.scss +3 -0
- data/app/assets/stylesheets/administrate/base/_typography.scss +1 -1
- data/app/assets/stylesheets/administrate/components/_attributes.scss +4 -3
- data/app/assets/stylesheets/administrate/components/_buttons.scss +11 -0
- data/app/assets/stylesheets/administrate/components/_cells.scss +2 -0
- data/app/assets/stylesheets/administrate/components/_field-unit.scss +17 -4
- data/app/assets/stylesheets/administrate/components/_flashes.scss +0 -8
- data/app/assets/stylesheets/administrate/components/_main-content.scss +1 -0
- data/app/assets/stylesheets/administrate/components/_navigation.scss +2 -3
- data/app/assets/stylesheets/administrate/library/_variables.scss +10 -8
- data/app/controllers/administrate/application_controller.rb +50 -16
- data/app/controllers/concerns/administrate/punditize.rb +3 -3
- data/app/helpers/administrate/application_helper.rb +41 -15
- data/app/views/administrate/application/_collection.html.erb +24 -26
- data/app/views/administrate/application/_collection_header_actions.html.erb +4 -0
- data/app/views/administrate/application/_collection_item_actions.html.erb +17 -0
- data/app/views/administrate/application/_flashes.html.erb +1 -0
- data/app/views/administrate/application/_form.html.erb +3 -3
- data/app/views/administrate/application/{_icons.erb → _icons.html.erb} +1 -1
- data/app/views/administrate/application/_index_header.html.erb +28 -0
- data/app/views/administrate/application/_navigation.html.erb +5 -3
- data/app/views/administrate/application/index.html.erb +9 -29
- data/app/views/administrate/application/show.html.erb +1 -1
- data/app/views/fields/belongs_to/_form.html.erb +3 -3
- data/app/views/fields/belongs_to/_index.html.erb +1 -1
- data/app/views/fields/belongs_to/_show.html.erb +1 -1
- data/app/views/fields/date/_form.html.erb +24 -0
- data/app/views/fields/date/_index.html.erb +21 -0
- data/app/views/fields/date/_show.html.erb +21 -0
- data/app/views/fields/has_one/_index.html.erb +1 -1
- data/app/views/fields/has_one/_show.html.erb +4 -4
- data/app/views/fields/number/_form.html.erb +1 -1
- data/app/views/fields/polymorphic/_show.html.erb +1 -1
- data/app/views/fields/select/_form.html.erb +24 -10
- data/app/views/fields/string/_show.html.erb +2 -2
- data/app/views/fields/text/_show.html.erb +2 -3
- data/app/views/fields/time/_form.html.erb +3 -2
- data/app/views/fields/time/_index.html.erb +3 -1
- data/app/views/fields/time/_show.html.erb +3 -1
- data/app/views/fields/url/_form.html.erb +23 -0
- data/app/views/fields/url/_index.html.erb +20 -0
- data/app/views/fields/url/_show.html.erb +20 -0
- data/app/views/layouts/administrate/application.html.erb +2 -1
- data/config/locales/administrate.ar.yml +2 -0
- data/config/locales/administrate.bs.yml +2 -0
- data/config/locales/administrate.ca.yml +2 -0
- data/config/locales/administrate.da.yml +2 -0
- data/config/locales/administrate.de.yml +2 -0
- data/config/locales/administrate.en.yml +2 -0
- data/config/locales/administrate.es.yml +3 -1
- data/config/locales/administrate.fi.yml +30 -0
- data/config/locales/administrate.fr.yml +4 -2
- data/config/locales/administrate.id.yml +2 -0
- data/config/locales/administrate.it.yml +2 -0
- data/config/locales/administrate.ja.yml +2 -0
- data/config/locales/administrate.ko.yml +12 -10
- data/config/locales/administrate.nl.yml +7 -5
- data/config/locales/administrate.pl.yml +2 -0
- data/config/locales/administrate.pt-BR.yml +4 -2
- data/config/locales/administrate.pt.yml +4 -2
- data/config/locales/administrate.ru.yml +2 -0
- data/config/locales/{administrate.al.yml → administrate.sq.yml} +3 -1
- data/config/locales/administrate.sv.yml +2 -0
- data/config/locales/administrate.tr.yml +30 -0
- data/config/locales/administrate.uk.yml +2 -0
- data/config/locales/administrate.vi.yml +2 -0
- data/config/locales/administrate.zh-CN.yml +4 -2
- data/config/locales/administrate.zh-TW.yml +2 -0
- data/config/unicorn.rb +8 -13
- data/docs/adding_controllers_without_related_model.md +52 -0
- data/docs/adding_custom_field_types.md +3 -1
- data/docs/authentication.md +3 -1
- data/docs/authorization.md +5 -3
- data/docs/customizing_attribute_partials.md +5 -2
- data/docs/customizing_controller_actions.md +50 -2
- data/docs/customizing_dashboards.md +112 -31
- data/docs/customizing_page_views.md +18 -4
- data/docs/extending_administrate.md +27 -0
- data/docs/getting_started.md +49 -56
- data/docs/guides/hiding_dashboards_from_sidebar.md +19 -0
- data/docs/guides.md +5 -0
- data/docs/rails_api.md +45 -0
- data/lib/administrate/base_dashboard.rb +47 -11
- data/lib/administrate/custom_dashboard.rb +15 -0
- data/lib/administrate/engine.rb +8 -1
- data/lib/administrate/field/associative.rb +49 -5
- data/lib/administrate/field/base.rb +35 -9
- data/lib/administrate/field/belongs_to.rb +13 -3
- data/lib/administrate/field/date.rb +20 -0
- data/lib/administrate/field/deferred.rb +22 -3
- data/lib/administrate/field/has_many.rb +16 -3
- data/lib/administrate/field/has_one.rb +32 -12
- data/lib/administrate/field/number.rb +19 -2
- data/lib/administrate/field/polymorphic.rb +5 -5
- data/lib/administrate/field/select.rb +10 -1
- data/lib/administrate/field/time.rb +11 -0
- data/lib/administrate/field/url.rb +21 -0
- data/lib/administrate/namespace.rb +5 -1
- data/lib/administrate/order.rb +17 -7
- data/lib/administrate/page/base.rb +7 -5
- data/lib/administrate/page/form.rb +10 -3
- data/lib/administrate/resource_resolver.rb +2 -2
- data/lib/administrate/search.rb +116 -28
- data/lib/administrate/version.rb +1 -1
- data/lib/administrate/view_generator.rb +9 -3
- data/lib/administrate.rb +19 -0
- data/lib/generators/administrate/dashboard/dashboard_generator.rb +22 -16
- data/lib/generators/administrate/dashboard/templates/controller.rb.erb +35 -10
- data/lib/generators/administrate/dashboard/templates/dashboard.rb.erb +18 -6
- data/lib/generators/administrate/install/install_generator.rb +37 -1
- data/lib/generators/administrate/install/templates/application_controller.rb.erb +4 -4
- data/lib/generators/administrate/routes/routes_generator.rb +21 -26
- data/lib/generators/administrate/views/layout_generator.rb +1 -0
- data/lib/generators/administrate/views/views_generator.rb +5 -4
- metadata +38 -53
- data/app/assets/javascripts/administrate/components/has_many_form.js +0 -3
- data/config/secrets.yml +0 -14
@@ -23,34 +23,14 @@ It renders the `_table` partial to display details about the resources.
|
|
23
23
|
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Page/Collection
|
24
24
|
%>
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
<% if show_search_bar %>
|
36
|
-
<%= render(
|
37
|
-
"search",
|
38
|
-
search_term: search_term,
|
39
|
-
resource_name: display_resource_name(page.resource_name)
|
40
|
-
) %>
|
41
|
-
<% end %>
|
42
|
-
|
43
|
-
<div>
|
44
|
-
<%= link_to(
|
45
|
-
t(
|
46
|
-
"administrate.actions.new_resource",
|
47
|
-
name: page.resource_name.titleize.downcase
|
48
|
-
),
|
49
|
-
[:new, namespace, page.resource_path],
|
50
|
-
class: "button",
|
51
|
-
) if valid_action?(:new) && show_action?(:new, new_resource) %>
|
52
|
-
</div>
|
53
|
-
</header>
|
26
|
+
<%=
|
27
|
+
render("index_header",
|
28
|
+
resources: resources,
|
29
|
+
search_term: search_term,
|
30
|
+
page: page,
|
31
|
+
show_search_bar: show_search_bar,
|
32
|
+
)
|
33
|
+
%>
|
54
34
|
|
55
35
|
<section class="main-content__body main-content__body--flush">
|
56
36
|
<%= render(
|
@@ -62,5 +42,5 @@ It renders the `_table` partial to display details about the resources.
|
|
62
42
|
table_title: "page-title"
|
63
43
|
) %>
|
64
44
|
|
65
|
-
<%= paginate resources %>
|
45
|
+
<%= paginate resources, param_name: '_page' %>
|
66
46
|
</section>
|
@@ -38,7 +38,7 @@ as well as a link to its edit page.
|
|
38
38
|
<dt class="attribute-label" id="<%= attribute.name %>">
|
39
39
|
<%= t(
|
40
40
|
"helpers.label.#{resource_name}.#{attribute.name}",
|
41
|
-
default: attribute.name
|
41
|
+
default: page.resource.class.human_attribute_name(attribute.name),
|
42
42
|
) %>
|
43
43
|
</dt>
|
44
44
|
|
@@ -20,7 +20,7 @@ that displays all possible records to associate with.
|
|
20
20
|
<%= f.label field.permitted_attribute %>
|
21
21
|
</div>
|
22
22
|
<div class="field-unit__field">
|
23
|
-
<%= f.select(field.permitted_attribute
|
24
|
-
|
25
|
-
|
23
|
+
<%= f.select(field.permitted_attribute,
|
24
|
+
options_for_select(field.associated_resource_options, field.selected_option),
|
25
|
+
include_blank: field.include_blank_option) %>
|
26
26
|
</div>
|
@@ -16,7 +16,7 @@ By default, the relationship is rendered as a link to the associated object.
|
|
16
16
|
%>
|
17
17
|
|
18
18
|
<% if field.data %>
|
19
|
-
<% if valid_action?(:show, field.associated_class) %>
|
19
|
+
<% if valid_action?(:show, field.associated_class) && show_action?(:show, field.associated_class) %>
|
20
20
|
<%= link_to(
|
21
21
|
field.display_associated_resource,
|
22
22
|
[namespace, field.data],
|
@@ -16,7 +16,7 @@ By default, the relationship is rendered as a link to the associated object.
|
|
16
16
|
%>
|
17
17
|
|
18
18
|
<% if field.data %>
|
19
|
-
<% if valid_action?(:show, field.associated_class) %>
|
19
|
+
<% if valid_action?(:show, field.associated_class) && show_action?(:show, field.associated_class) %>
|
20
20
|
<%= link_to(
|
21
21
|
field.display_associated_resource,
|
22
22
|
[namespace, field.data],
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<%#
|
2
|
+
# Date Form Partial
|
3
|
+
|
4
|
+
This partial renders an input element for a date attribute.
|
5
|
+
By default, the input is a text field that is augmented with [DateTimePicker].
|
6
|
+
|
7
|
+
## Local variables:
|
8
|
+
|
9
|
+
- `f`:
|
10
|
+
A Rails form generator, used to help create the appropriate input fields.
|
11
|
+
- `field`:
|
12
|
+
An instance of [Administrate::Field::Date][1].
|
13
|
+
A wrapper around the Date value pulled from the database.
|
14
|
+
|
15
|
+
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Date
|
16
|
+
[DateTimePicker]: https://github.com/Eonasdan/bootstrap-datetimepicker
|
17
|
+
%>
|
18
|
+
|
19
|
+
<div class="field-unit__label">
|
20
|
+
<%= f.label field.attribute %>
|
21
|
+
</div>
|
22
|
+
<div class="field-unit__field">
|
23
|
+
<%= f.text_field field.attribute, data: { type: 'date' } %>
|
24
|
+
</div>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<%#
|
2
|
+
# Date Index Partial
|
3
|
+
|
4
|
+
This partial renders a date attribute,
|
5
|
+
to be displayed on a resource's index page.
|
6
|
+
|
7
|
+
By default, the attribute is rendered
|
8
|
+
as a localized date string.
|
9
|
+
|
10
|
+
## Local variables:
|
11
|
+
|
12
|
+
- `field`:
|
13
|
+
An instance of [Administrate::Field::Date][1].
|
14
|
+
A wrapper around the Date value pulled from the database.
|
15
|
+
|
16
|
+
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Date
|
17
|
+
%>
|
18
|
+
|
19
|
+
<% if field.data %>
|
20
|
+
<%= field.date %>
|
21
|
+
<% end %>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<%#
|
2
|
+
# Date Show Partial
|
3
|
+
|
4
|
+
This partial renders a date attribute,
|
5
|
+
to be displayed on a resource's show page.
|
6
|
+
|
7
|
+
By default, the attribute is rendered
|
8
|
+
as a localized date string.
|
9
|
+
|
10
|
+
## Local variables:
|
11
|
+
|
12
|
+
- `field`:
|
13
|
+
An instance of [Administrate::Field::Date][1].
|
14
|
+
A wrapper around the Date value pulled from the database.
|
15
|
+
|
16
|
+
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Date
|
17
|
+
%>
|
18
|
+
|
19
|
+
<% if field.data %>
|
20
|
+
<%= field.date %>
|
21
|
+
<% end %>
|
@@ -15,7 +15,7 @@ By default, the relationship is rendered as a link to the associated object.
|
|
15
15
|
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/HasOne
|
16
16
|
%>
|
17
17
|
|
18
|
-
<% if field.
|
18
|
+
<% if field.linkable? %>
|
19
19
|
<%= link_to(
|
20
20
|
field.display_associated_resource,
|
21
21
|
[namespace, field.data],
|
@@ -4,7 +4,7 @@
|
|
4
4
|
This partial renders a has_one relationship,
|
5
5
|
to be displayed on a resource's show page.
|
6
6
|
|
7
|
-
All
|
7
|
+
All show page attributes of has_one relationship would be rendered
|
8
8
|
|
9
9
|
## Local variables:
|
10
10
|
|
@@ -15,7 +15,7 @@ All fields of has_one relationship would be rendered
|
|
15
15
|
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/HasOne
|
16
16
|
%>
|
17
17
|
|
18
|
-
<% if field.
|
18
|
+
<% if field.linkable? %>
|
19
19
|
<fieldset class="attribute--nested">
|
20
20
|
<legend>
|
21
21
|
<%= link_to(
|
@@ -23,7 +23,7 @@ All fields of has_one relationship would be rendered
|
|
23
23
|
[namespace, field.data],
|
24
24
|
) %>
|
25
25
|
</legend>
|
26
|
-
<% field.
|
26
|
+
<% field.nested_show.attributes.each do |attribute| -%>
|
27
27
|
<div>
|
28
28
|
<dt class="attribute-label">
|
29
29
|
<%= t(
|
@@ -32,7 +32,7 @@ All fields of has_one relationship would be rendered
|
|
32
32
|
) %>
|
33
33
|
</dt>
|
34
34
|
<dd class="attribute-data attribute-data--<%= attribute.html_class %>">
|
35
|
-
<%= attribute
|
35
|
+
<%= render_field attribute, { page: page } %>
|
36
36
|
</dd>
|
37
37
|
</div>
|
38
38
|
<% end -%>
|
@@ -17,7 +17,7 @@ By default, the relationship is rendered as a link to the associated object.
|
|
17
17
|
%>
|
18
18
|
|
19
19
|
<% if field.data %>
|
20
|
-
<% if valid_action?(:show, field.
|
20
|
+
<% if valid_action?(:show, field.data.class) %>
|
21
21
|
<%= link_to(
|
22
22
|
field.display_associated_resource,
|
23
23
|
[namespace, field.data],
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%#
|
2
|
-
# Select
|
2
|
+
# Select Form Partial
|
3
3
|
|
4
4
|
This partial renders a selectable text attribute,
|
5
5
|
to be displayed on a resource's edit form page.
|
@@ -19,13 +19,27 @@ to be displayed on a resource's edit form page.
|
|
19
19
|
<%= f.label field.attribute %>
|
20
20
|
</div>
|
21
21
|
<div class="field-unit__field">
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
22
|
+
<% if field.selectable_options.first&.is_a?(Array) %>
|
23
|
+
<%= f.select(
|
24
|
+
field.attribute,
|
25
|
+
options_from_collection_for_select(
|
26
|
+
field.selectable_options,
|
27
|
+
:last,
|
28
|
+
:first,
|
29
|
+
field.data,
|
30
|
+
),
|
31
|
+
include_blank: field.include_blank_option
|
32
|
+
) %>
|
33
|
+
<% else %>
|
34
|
+
<%= f.select(
|
35
|
+
field.attribute,
|
36
|
+
options_from_collection_for_select(
|
37
|
+
field.selectable_options,
|
38
|
+
:to_s,
|
39
|
+
:to_s,
|
40
|
+
field.data,
|
41
|
+
),
|
42
|
+
include_blank: field.include_blank_option
|
43
|
+
) %>
|
44
|
+
<% end %>
|
31
45
|
</div>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
This partial renders a string attribute,
|
5
5
|
to be displayed on a resource's show page.
|
6
6
|
|
7
|
-
By default, the attribute is rendered as
|
7
|
+
By default, the attribute is rendered as text with whitespace preserved.
|
8
8
|
|
9
9
|
## Local variables:
|
10
10
|
|
@@ -15,4 +15,4 @@ By default, the attribute is rendered as an unformatted string.
|
|
15
15
|
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/String
|
16
16
|
%>
|
17
17
|
|
18
|
-
|
18
|
+
<div class="preserve-whitespace"><%= field.data %></div>
|
@@ -4,8 +4,7 @@
|
|
4
4
|
This partial renders a text attribute,
|
5
5
|
to be displayed on a resource's show page.
|
6
6
|
|
7
|
-
By default, the attribute is rendered as text with
|
8
|
-
whitespace preserved.
|
7
|
+
By default, the attribute is rendered as text with whitespace preserved.
|
9
8
|
|
10
9
|
## Local variables:
|
11
10
|
|
@@ -16,4 +15,4 @@ whitespace preserved.
|
|
16
15
|
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Text
|
17
16
|
%>
|
18
17
|
|
19
|
-
<
|
18
|
+
<div class="preserve-whitespace"><%= field.data %></div>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# Time Form Partial
|
3
3
|
|
4
4
|
This partial renders an input element for time attributes.
|
5
|
-
By default, the input is a
|
5
|
+
By default, the input is a text field that is augmented with [DateTimePicker].
|
6
6
|
|
7
7
|
## Local variables:
|
8
8
|
|
@@ -12,11 +12,12 @@ By default, the input is a select field for the time attributes.
|
|
12
12
|
An instance of [Administrate::Field::Time][1].
|
13
13
|
A wrapper around the tmie attributes pulled from the model.
|
14
14
|
|
15
|
+
[DateTimePicker]: https://github.com/Eonasdan/bootstrap-datetimepicker
|
15
16
|
%>
|
16
17
|
|
17
18
|
<div class="field-unit__label">
|
18
19
|
<%= f.label field.attribute %>
|
19
20
|
</div>
|
20
21
|
<div class="field-unit__field">
|
21
|
-
<%= f.text_field field.attribute, data: { type: 'time' } %>
|
22
|
+
<%= f.text_field field.attribute, data: { type: 'time' }, value: field.data&.strftime("%H:%M:%S") %>
|
22
23
|
</div>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<%#
|
2
|
+
# Url Form Partial
|
3
|
+
|
4
|
+
This partial renders an input element for URL.
|
5
|
+
By default, the input is a text box.
|
6
|
+
|
7
|
+
## Local variables:
|
8
|
+
|
9
|
+
- `f`:
|
10
|
+
A Rails form generator, used to help create the appropriate input fields.
|
11
|
+
- `field`:
|
12
|
+
An instance of [Administrate::Field::Url][1].
|
13
|
+
A wrapper around the URL pulled from the database.
|
14
|
+
|
15
|
+
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Url
|
16
|
+
%>
|
17
|
+
|
18
|
+
<div class="field-unit__label">
|
19
|
+
<%= f.label field.attribute %>
|
20
|
+
</div>
|
21
|
+
<div class="field-unit__field">
|
22
|
+
<%= f.url_field field.attribute %>
|
23
|
+
</div>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<%#
|
2
|
+
# Url Index Partial
|
3
|
+
|
4
|
+
This partial renders a URL address,
|
5
|
+
to be displayed on a resource's index page.
|
6
|
+
|
7
|
+
By default, the value is rendered as an `a` element.
|
8
|
+
|
9
|
+
## Local variables:
|
10
|
+
|
11
|
+
- `field`:
|
12
|
+
An instance of [Administrate::Field::Url][1].
|
13
|
+
A wrapper around the email pulled from the database.
|
14
|
+
|
15
|
+
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Url
|
16
|
+
%>
|
17
|
+
|
18
|
+
<%= content_tag :a, href: field.data do %>
|
19
|
+
<%= field.data %>
|
20
|
+
<% end %>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<%#
|
2
|
+
# Url Show Partial
|
3
|
+
|
4
|
+
This partial renders a URL address,
|
5
|
+
to be displayed on a resource's show page.
|
6
|
+
|
7
|
+
By default, the value is rendered as an `a` element.
|
8
|
+
|
9
|
+
## Local variables:
|
10
|
+
|
11
|
+
- `field`:
|
12
|
+
An instance of [Administrate::Field::Url][1].
|
13
|
+
A wrapper around the email pulled from the database.
|
14
|
+
|
15
|
+
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Url
|
16
|
+
%>
|
17
|
+
|
18
|
+
<%= content_tag :a, href: field.data do %>
|
19
|
+
<%= field.data %>
|
20
|
+
<% end %>
|
@@ -19,10 +19,11 @@ By default, it renders:
|
|
19
19
|
<meta name="ROBOTS" content="NOODP">
|
20
20
|
<meta name="viewport" content="initial-scale=1">
|
21
21
|
<title>
|
22
|
-
<%= content_for(:title) %> - <%=
|
22
|
+
<%= content_for(:title) %> - <%= application_title %>
|
23
23
|
</title>
|
24
24
|
<%= render "stylesheet" %>
|
25
25
|
<%= csrf_meta_tags %>
|
26
|
+
<%= csp_meta_tag if defined?(csp_meta_tag) %>
|
26
27
|
</head>
|
27
28
|
<body>
|
28
29
|
<%= render "icons" %>
|
@@ -22,7 +22,9 @@ es:
|
|
22
22
|
none: Ninguno
|
23
23
|
form:
|
24
24
|
error: error
|
25
|
-
errors: "%{pluralized_errors}
|
25
|
+
errors: "%{pluralized_errors} no permitieron guardar este %{resource_name}:"
|
26
|
+
navigation:
|
27
|
+
back_to_app: Regresar a la aplicación
|
26
28
|
search:
|
27
29
|
clear: Borrar búsqueda
|
28
30
|
label: Buscar %{resource}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
fi:
|
3
|
+
administrate:
|
4
|
+
actions:
|
5
|
+
confirm: Oletko varma?
|
6
|
+
destroy: Poista
|
7
|
+
edit: Muokkaa
|
8
|
+
edit_resource: Muokkaa %{name}
|
9
|
+
show_resource: Näytä %{name}
|
10
|
+
new_resource: Uusi %{name}
|
11
|
+
back: Takaisin
|
12
|
+
controller:
|
13
|
+
create:
|
14
|
+
success: "%{resource} luotiin onnistuneesti."
|
15
|
+
destroy:
|
16
|
+
success: "%{resource} poistettiin onnistuneesti."
|
17
|
+
update:
|
18
|
+
success: "%{resource} päivitettiin onnistuneesti."
|
19
|
+
fields:
|
20
|
+
has_many:
|
21
|
+
more: Näytetään %{count}/%{total_count}
|
22
|
+
none: Ei yhtään
|
23
|
+
form:
|
24
|
+
error: virhe
|
25
|
+
errors: "%{pluralized_errors} estivät tätä %{resource_name} tallentumasta:"
|
26
|
+
navigation:
|
27
|
+
back_to_app: Takaisin sovellukseen
|
28
|
+
search:
|
29
|
+
clear: Tyhjennä haku
|
30
|
+
label: Etsi %{resource}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
fr:
|
3
3
|
administrate:
|
4
4
|
actions:
|
5
|
-
confirm: Êtes-vous sûr ?
|
5
|
+
confirm: Êtes-vous sûr(e) ?
|
6
6
|
destroy: Supprimer
|
7
7
|
edit: Modifier
|
8
8
|
edit_resource: Modifier %{name}
|
@@ -22,7 +22,9 @@ fr:
|
|
22
22
|
none: Aucun
|
23
23
|
form:
|
24
24
|
error: erreur
|
25
|
-
errors: "%{pluralized_errors} ont
|
25
|
+
errors: "%{pluralized_errors} ont empêché %{resource_name} d'être sauvegardé(e) :"
|
26
|
+
navigation:
|
27
|
+
back_to_app: Retour à l'application
|
26
28
|
search:
|
27
29
|
clear: Effacer la recherche
|
28
30
|
label: Chercher %{resource}
|
@@ -4,25 +4,27 @@ ko:
|
|
4
4
|
actions:
|
5
5
|
confirm: 괜찮습니까?
|
6
6
|
destroy: 삭제
|
7
|
-
edit:
|
8
|
-
edit_resource:
|
9
|
-
show_resource:
|
10
|
-
new_resource:
|
7
|
+
edit: 수정
|
8
|
+
edit_resource: 수정 %{name}
|
9
|
+
show_resource: "%{name}"
|
10
|
+
new_resource: 새 %{name}
|
11
11
|
back: 뒤로
|
12
12
|
controller:
|
13
13
|
create:
|
14
|
-
success: "%{resource}
|
14
|
+
success: "%{resource}가 성공적으로 생성되었습니다."
|
15
15
|
destroy:
|
16
|
-
success: "%{resource}
|
16
|
+
success: "%{resource}가 성공적으로 삭제되었습니다."
|
17
17
|
update:
|
18
|
-
success: "%{resource}
|
18
|
+
success: "%{resource}가 성공적으로 수정되었습니다."
|
19
19
|
fields:
|
20
20
|
has_many:
|
21
|
-
more: "%{total_count}
|
21
|
+
more: "%{total_count}개 중에서 %{count}개"
|
22
22
|
none: 없음
|
23
23
|
form:
|
24
|
-
error:
|
25
|
-
errors: "%{pluralized_errors}
|
24
|
+
error: 에러
|
25
|
+
errors: "%{pluralized_errors}로 인하여 %{resource_name}을(를) 저장하는데 실패하였습니다."
|
26
|
+
navigation:
|
27
|
+
back_to_app: 앱으로 돌아 가기
|
26
28
|
search:
|
27
29
|
clear: 검색 초기화
|
28
30
|
label: "%{resource} 검색"
|
@@ -11,18 +11,20 @@ nl:
|
|
11
11
|
back: Terug
|
12
12
|
controller:
|
13
13
|
create:
|
14
|
-
success: "%{resource}
|
14
|
+
success: "%{resource} is succesvol aangemaakt."
|
15
15
|
destroy:
|
16
|
-
success: "%{resource}
|
16
|
+
success: "%{resource} is succesvol verwijderd."
|
17
17
|
update:
|
18
|
-
success: "%{resource}
|
18
|
+
success: "%{resource} is succesvol geupdated."
|
19
19
|
fields:
|
20
20
|
has_many:
|
21
21
|
more: Resultaat %{count} van %{total_count}
|
22
22
|
none: Geen
|
23
23
|
form:
|
24
24
|
error: error
|
25
|
-
errors: "%{pluralized_errors}
|
25
|
+
errors: "%{pluralized_errors} maakten het onmogelijk %{resource_name} op:"
|
26
|
+
navigation:
|
27
|
+
back_to_app: Terug naar app
|
26
28
|
search:
|
27
|
-
clear:
|
29
|
+
clear: Wissen
|
28
30
|
label: Zoeken %{resource}
|