Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/views/fields/nested_has_many/_fields.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
</div>
<% end -%>

<%= link_to_remove_association I18n.t("administrate.fields.nested_has_many.remove", resource: field.associated_class_name.titleize), f %>
<%= link_to_remove_association f %>
</div>
1 change: 0 additions & 1 deletion app/views/fields/nested_has_many/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

<div>
<%= link_to_add_association(
I18n.t("administrate.fields.nested_has_many.add", resource: field.associated_class_name.titleize),
f,
field.association_name,
class: 'button',
Expand Down
3 changes: 3 additions & 0 deletions config/i18n-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ data:

ignore:
- 'administrate.fields.has_many.*'
- 'cocoon.defaults.*'
- 'cocoon.foo/students.*'
- 'cocoon.students.*'
9 changes: 4 additions & 5 deletions config/locales/administrate-field-nested_has_many.de.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
de:
administrate:
fields:
nested_has_many:
add: "%{resource} hinzufügen"
remove: "%{resource} entfernen"
cocoon:
defaults:
add: Datensatz hinzufügen
remove: Datensatz entfernen
13 changes: 8 additions & 5 deletions config/locales/administrate-field-nested_has_many.en.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
---
en:
administrate:
fields:
nested_has_many:
add: Add %{resource}
remove: Remove %{resource}
cocoon:
defaults:
add: Add record
remove: Remove record
foo/students:
remove: Remove Foo/Student
students:
add: Add Foo/Student
9 changes: 4 additions & 5 deletions config/locales/administrate-field-nested_has_many.fr.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
fr:
administrate:
fields:
nested_has_many:
add: Ajouter %{resource}
remove: Supprimer %{resource}
cocoon:
defaults:
add: Ajouter un enregistrement
remove: Supprimer un enregistrement
9 changes: 4 additions & 5 deletions config/locales/administrate-field-nested_has_many.ja.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
ja:
administrate:
fields:
nested_has_many:
add: "%{resource}を追加"
remove: "%{resource}を削除"
cocoon:
defaults:
add: レコードを追加
remove: レコードを削除
9 changes: 4 additions & 5 deletions config/locales/administrate-field-nested_has_many.pt.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
pt:
administrate:
fields:
nested_has_many:
add: Adicionar %{resource}
remove: Remover %{resource}
cocoon:
defaults:
add: Adicionar registro
remove: Remover registro
9 changes: 4 additions & 5 deletions config/locales/administrate-field-nested_has_many.ru.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
ru:
administrate:
fields:
nested_has_many:
add: Добавить %{resource}
remove: Удалить %{resource}
cocoon:
defaults:
add: Добавить запись
remove: Удалить запись