administrate 0.11.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/administrate/components/associative.js +5 -0
  3. data/app/assets/javascripts/administrate/components/date_time_picker.js +6 -2
  4. data/app/assets/javascripts/administrate/components/table.js +1 -1
  5. data/app/assets/stylesheets/administrate/base/_tables.scss +3 -0
  6. data/app/assets/stylesheets/administrate/base/_typography.scss +1 -1
  7. data/app/assets/stylesheets/administrate/components/_attributes.scss +4 -3
  8. data/app/assets/stylesheets/administrate/components/_buttons.scss +11 -0
  9. data/app/assets/stylesheets/administrate/components/_cells.scss +2 -0
  10. data/app/assets/stylesheets/administrate/components/_field-unit.scss +17 -4
  11. data/app/assets/stylesheets/administrate/components/_flashes.scss +0 -8
  12. data/app/assets/stylesheets/administrate/components/_main-content.scss +1 -0
  13. data/app/assets/stylesheets/administrate/components/_navigation.scss +2 -3
  14. data/app/assets/stylesheets/administrate/library/_variables.scss +10 -8
  15. data/app/controllers/administrate/application_controller.rb +50 -16
  16. data/app/controllers/concerns/administrate/punditize.rb +3 -3
  17. data/app/helpers/administrate/application_helper.rb +41 -15
  18. data/app/views/administrate/application/_collection.html.erb +24 -26
  19. data/app/views/administrate/application/_collection_header_actions.html.erb +4 -0
  20. data/app/views/administrate/application/_collection_item_actions.html.erb +17 -0
  21. data/app/views/administrate/application/_flashes.html.erb +1 -0
  22. data/app/views/administrate/application/_form.html.erb +3 -3
  23. data/app/views/administrate/application/{_icons.erb → _icons.html.erb} +1 -1
  24. data/app/views/administrate/application/_index_header.html.erb +28 -0
  25. data/app/views/administrate/application/_navigation.html.erb +5 -3
  26. data/app/views/administrate/application/index.html.erb +9 -29
  27. data/app/views/administrate/application/show.html.erb +1 -1
  28. data/app/views/fields/belongs_to/_form.html.erb +3 -3
  29. data/app/views/fields/belongs_to/_index.html.erb +1 -1
  30. data/app/views/fields/belongs_to/_show.html.erb +1 -1
  31. data/app/views/fields/date/_form.html.erb +24 -0
  32. data/app/views/fields/date/_index.html.erb +21 -0
  33. data/app/views/fields/date/_show.html.erb +21 -0
  34. data/app/views/fields/has_one/_index.html.erb +1 -1
  35. data/app/views/fields/has_one/_show.html.erb +4 -4
  36. data/app/views/fields/number/_form.html.erb +1 -1
  37. data/app/views/fields/polymorphic/_show.html.erb +1 -1
  38. data/app/views/fields/select/_form.html.erb +24 -10
  39. data/app/views/fields/string/_show.html.erb +2 -2
  40. data/app/views/fields/text/_show.html.erb +2 -3
  41. data/app/views/fields/time/_form.html.erb +3 -2
  42. data/app/views/fields/time/_index.html.erb +3 -1
  43. data/app/views/fields/time/_show.html.erb +3 -1
  44. data/app/views/fields/url/_form.html.erb +23 -0
  45. data/app/views/fields/url/_index.html.erb +20 -0
  46. data/app/views/fields/url/_show.html.erb +20 -0
  47. data/app/views/layouts/administrate/application.html.erb +2 -1
  48. data/config/locales/administrate.ar.yml +2 -0
  49. data/config/locales/administrate.bs.yml +2 -0
  50. data/config/locales/administrate.ca.yml +2 -0
  51. data/config/locales/administrate.da.yml +2 -0
  52. data/config/locales/administrate.de.yml +2 -0
  53. data/config/locales/administrate.en.yml +2 -0
  54. data/config/locales/administrate.es.yml +3 -1
  55. data/config/locales/administrate.fi.yml +30 -0
  56. data/config/locales/administrate.fr.yml +4 -2
  57. data/config/locales/administrate.id.yml +2 -0
  58. data/config/locales/administrate.it.yml +2 -0
  59. data/config/locales/administrate.ja.yml +2 -0
  60. data/config/locales/administrate.ko.yml +12 -10
  61. data/config/locales/administrate.nl.yml +7 -5
  62. data/config/locales/administrate.pl.yml +2 -0
  63. data/config/locales/administrate.pt-BR.yml +4 -2
  64. data/config/locales/administrate.pt.yml +4 -2
  65. data/config/locales/administrate.ru.yml +2 -0
  66. data/config/locales/{administrate.al.yml → administrate.sq.yml} +3 -1
  67. data/config/locales/administrate.sv.yml +2 -0
  68. data/config/locales/administrate.tr.yml +30 -0
  69. data/config/locales/administrate.uk.yml +2 -0
  70. data/config/locales/administrate.vi.yml +2 -0
  71. data/config/locales/administrate.zh-CN.yml +4 -2
  72. data/config/locales/administrate.zh-TW.yml +2 -0
  73. data/config/unicorn.rb +8 -13
  74. data/docs/adding_controllers_without_related_model.md +52 -0
  75. data/docs/adding_custom_field_types.md +3 -1
  76. data/docs/authentication.md +3 -1
  77. data/docs/authorization.md +5 -3
  78. data/docs/customizing_attribute_partials.md +5 -2
  79. data/docs/customizing_controller_actions.md +50 -2
  80. data/docs/customizing_dashboards.md +112 -31
  81. data/docs/customizing_page_views.md +18 -4
  82. data/docs/extending_administrate.md +27 -0
  83. data/docs/getting_started.md +49 -56
  84. data/docs/guides/hiding_dashboards_from_sidebar.md +19 -0
  85. data/docs/guides.md +5 -0
  86. data/docs/rails_api.md +45 -0
  87. data/lib/administrate/base_dashboard.rb +47 -11
  88. data/lib/administrate/custom_dashboard.rb +15 -0
  89. data/lib/administrate/engine.rb +8 -1
  90. data/lib/administrate/field/associative.rb +49 -5
  91. data/lib/administrate/field/base.rb +35 -9
  92. data/lib/administrate/field/belongs_to.rb +13 -3
  93. data/lib/administrate/field/date.rb +20 -0
  94. data/lib/administrate/field/deferred.rb +22 -3
  95. data/lib/administrate/field/has_many.rb +16 -3
  96. data/lib/administrate/field/has_one.rb +32 -12
  97. data/lib/administrate/field/number.rb +19 -2
  98. data/lib/administrate/field/polymorphic.rb +5 -5
  99. data/lib/administrate/field/select.rb +10 -1
  100. data/lib/administrate/field/time.rb +11 -0
  101. data/lib/administrate/field/url.rb +21 -0
  102. data/lib/administrate/namespace.rb +5 -1
  103. data/lib/administrate/order.rb +17 -7
  104. data/lib/administrate/page/base.rb +7 -5
  105. data/lib/administrate/page/form.rb +10 -3
  106. data/lib/administrate/resource_resolver.rb +2 -2
  107. data/lib/administrate/search.rb +116 -28
  108. data/lib/administrate/version.rb +1 -1
  109. data/lib/administrate/view_generator.rb +9 -3
  110. data/lib/administrate.rb +19 -0
  111. data/lib/generators/administrate/dashboard/dashboard_generator.rb +22 -16
  112. data/lib/generators/administrate/dashboard/templates/controller.rb.erb +35 -10
  113. data/lib/generators/administrate/dashboard/templates/dashboard.rb.erb +18 -6
  114. data/lib/generators/administrate/install/install_generator.rb +37 -1
  115. data/lib/generators/administrate/install/templates/application_controller.rb.erb +4 -4
  116. data/lib/generators/administrate/routes/routes_generator.rb +21 -26
  117. data/lib/generators/administrate/views/layout_generator.rb +1 -0
  118. data/lib/generators/administrate/views/views_generator.rb +5 -4
  119. metadata +38 -53
  120. data/app/assets/javascripts/administrate/components/has_many_form.js +0 -3
  121. 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
- <% content_for(:title) do %>
27
- <%= display_resource_name(page.resource_name) %>
28
- <% end %>
29
-
30
- <header class="main-content__header" role="banner">
31
- <h1 class="main-content__page-title" id="page-title">
32
- <%= content_for(:title) %>
33
- </h1>
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.titleize,
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) do %>
24
- <%= options_for_select(field.associated_resource_options, field.selected_option) %>
25
- <% end %>
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.data %>
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 fields of has_one relationship would be rendered
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.data %>
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.nested_form.attributes.each do |attribute| -%>
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.data %>
35
+ <%= render_field attribute, { page: page } %>
36
36
  </dd>
37
37
  </div>
38
38
  <% end -%>
@@ -19,5 +19,5 @@ By default, the input is a text field.
19
19
  <%= f.label field.attribute %>
20
20
  </div>
21
21
  <div class="field-unit__field">
22
- <%= f.text_field field.attribute %>
22
+ <%= f.number_field field.attribute, step: "any" %>
23
23
  </div>
@@ -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.attribute) %>
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 Index Partial
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
- <%= f.select(
23
- field.attribute,
24
- options_from_collection_for_select(
25
- field.selectable_options,
26
- :to_s,
27
- :to_s,
28
- field.data.presence,
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 an unformatted string.
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
- <%= field.data %>
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
- <span class="preserve-whitespace"><%= field.data %></span>
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 select field for the time attributes.
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>
@@ -14,4 +14,6 @@ By default, the attribute is rendered as a text tag.
14
14
 
15
15
  %>
16
16
 
17
- <%= field.data.strftime("%I:%M%p").to_s %>
17
+ <% if field.data %>
18
+ <%= field.time %>
19
+ <% end %>
@@ -14,4 +14,6 @@ By default, the attribute is rendered as a text tag.
14
14
 
15
15
  %>
16
16
 
17
- <%= field.data.strftime("%I:%M%p").to_s %>
17
+ <% if field.data %>
18
+ <%= field.time %>
19
+ <% end %>
@@ -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) %> - <%= Rails.application.class.parent_name.titlecase %>
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" %>
@@ -23,6 +23,8 @@ ar:
23
23
  form:
24
24
  error: error
25
25
  errors: "%{pluralized_errors} prohibited this %{resource_name} from being saved:"
26
+ navigation:
27
+ back_to_app: العودة إلى التطبيق
26
28
  search:
27
29
  clear: مسح البحث
28
30
  label: بحث %{resource}
@@ -22,6 +22,8 @@ bs:
22
22
  form:
23
23
  error: error
24
24
  errors: "%{pluralized_errors} prohibited this %{resource_name} from being saved:"
25
+ navigation:
26
+ back_to_app: Natrag na aplikaciju
25
27
  search:
26
28
  clear: Izbriši pretraživanje
27
29
  label: Pretraga %{resource}
@@ -23,6 +23,8 @@ ca:
23
23
  form:
24
24
  error: error
25
25
  errors: "%{pluralized_errors} han impedit que %{resource_name} es guardés amb èxit:"
26
+ navigation:
27
+ back_to_app: Torna a l'aplicació
26
28
  search:
27
29
  clear: Esborrar la cerca
28
30
  label: Cerca %{resource}
@@ -23,6 +23,8 @@ da:
23
23
  form:
24
24
  error: error
25
25
  errors: "%{pluralized_errors} prohibited this %{resource_name} from being saved:"
26
+ navigation:
27
+ back_to_app: Tilbage til app
26
28
  search:
27
29
  clear: Ryd søgning
28
30
  label: Søg %{resource}
@@ -23,6 +23,8 @@ de:
23
23
  form:
24
24
  error: error
25
25
  errors: "%{pluralized_errors} haben das Speichern dieses %{resource_name} verhindert:"
26
+ navigation:
27
+ back_to_app: Zurück zur App
26
28
  search:
27
29
  clear: Suche zurücksetzen
28
30
  label: "%{resource} durchsuchen"
@@ -23,6 +23,8 @@ en:
23
23
  form:
24
24
  error: error
25
25
  errors: "%{pluralized_errors} prohibited this %{resource_name} from being saved:"
26
+ navigation:
27
+ back_to_app: Back to app
26
28
  search:
27
29
  clear: Clear search
28
30
  label: Search %{resource}
@@ -22,7 +22,9 @@ es:
22
22
  none: Ninguno
23
23
  form:
24
24
  error: error
25
- errors: "%{pluralized_errors} prohibited this %{resource_name} from being saved:"
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 empêchés %{resource_name} d'être sauvergardé :"
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}
@@ -23,6 +23,8 @@ id:
23
23
  form:
24
24
  error: error
25
25
  errors: "%{pluralized_errors} membuat %{resource_name} tidak bisa tersimpan:"
26
+ navigation:
27
+ back_to_app: Kembali ke aplikasi
26
28
  search:
27
29
  clear: Kosongkan pencarian
28
30
  label: Cari %{resource}
@@ -23,6 +23,8 @@ it:
23
23
  form:
24
24
  error: error
25
25
  errors: "%{pluralized_errors} prohibited this %{resource_name} from being saved:"
26
+ navigation:
27
+ back_to_app: Torna all'app
26
28
  search:
27
29
  clear: Cancella ricerca
28
30
  label: Ricerca %{resource}
@@ -23,6 +23,8 @@ ja:
23
23
  form:
24
24
  error: エラー
25
25
  errors: "%{pluralized_errors}のため%{resource_name}を保存できません。"
26
+ navigation:
27
+ back_to_app: アプリに戻る
26
28
  search:
27
29
  clear: 検索をクリアする
28
30
  label: サーチ %{resource}
@@ -4,25 +4,27 @@ ko:
4
4
  actions:
5
5
  confirm: 괜찮습니까?
6
6
  destroy: 삭제
7
- edit: 편집
8
- edit_resource: 편집 %{name}
9
- show_resource: 보여주기 %{name}
10
- new_resource: 새로운 %{name}
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} 개 중에서 %{count} 개"
21
+ more: "%{total_count}개 중에서 %{count}개"
22
22
  none: 없음
23
23
  form:
24
- error: error
25
- errors: "%{pluralized_errors} prohibited this %{resource_name} from being saved:"
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} was succesvol aangemaakt."
14
+ success: "%{resource} is succesvol aangemaakt."
15
15
  destroy:
16
- success: "%{resource} was succesvol verwijderd."
16
+ success: "%{resource} is succesvol verwijderd."
17
17
  update:
18
- success: "%{resource} was succesvol geupdated."
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} prohibited this %{resource_name} from being saved:"
25
+ errors: "%{pluralized_errors} maakten het onmogelijk %{resource_name} op:"
26
+ navigation:
27
+ back_to_app: Terug naar app
26
28
  search:
27
- clear: CDuidelijke zoek
29
+ clear: Wissen
28
30
  label: Zoeken %{resource}
@@ -23,6 +23,8 @@ pl:
23
23
  form:
24
24
  error: error
25
25
  errors: "%{pluralized_errors} prohibited this %{resource_name} from being saved:"
26
+ navigation:
27
+ back_to_app: Powrót do aplikacji
26
28
  search:
27
29
  clear: Wyczyść wyszukiwanie
28
30
  label: Szukanie %{resource}