aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/decorators/route_decorator.rb2
-rw-r--r--app/views/line_footnotes/_footnote_fields.html.slim6
-rw-r--r--config/locales/footnotes.en.yml7
-rw-r--r--config/locales/footnotes.fr.yml4
4 files changed, 10 insertions, 9 deletions
diff --git a/app/decorators/route_decorator.rb b/app/decorators/route_decorator.rb
index 801e139b0..ef4674649 100644
--- a/app/decorators/route_decorator.rb
+++ b/app/decorators/route_decorator.rb
@@ -90,7 +90,7 @@ class RouteDecorator < AF83::Decorator
end
instance_decorator.destroy_action_link do |l|
- l.data confirm: t('routes.actions.destroy_confirm')
+ l.data {{ confirm: h.t('routes.actions.destroy_confirm') }}
end
end
end
diff --git a/app/views/line_footnotes/_footnote_fields.html.slim b/app/views/line_footnotes/_footnote_fields.html.slim
index 28fcde5ab..acb772b00 100644
--- a/app/views/line_footnotes/_footnote_fields.html.slim
+++ b/app/views/line_footnotes/_footnote_fields.html.slim
@@ -1,10 +1,10 @@
.nested-fields.col-lg-4.col-md-4.col-sm-6.col-xs-12
.panel.panel-default
.panel-body
- = f.input :code, label: 'Titre'
- = f.input :label, label: 'Texte'
+ = f.input :code, label: Chouette::Footnote.tmf(:code)
+ = f.input :label, label: Chouette::Footnote.tmf(:label)
.text-right
- = link_to_remove_association f, class: 'btn btn-outline-danger', data: { confirm: 'Etes-vous sûr(e) ?' }, title: t('actions.delete') do
+ = link_to_remove_association f, class: 'btn btn-outline-danger', data: { confirm: t('are_you_sure') }, title: t('actions.delete') do
span.fa.fa-trash
/ span = t('actions.delete')
diff --git a/config/locales/footnotes.en.yml b/config/locales/footnotes.en.yml
index 5b86f0806..c0e29bdc2 100644
--- a/config/locales/footnotes.en.yml
+++ b/config/locales/footnotes.en.yml
@@ -15,6 +15,7 @@ en:
other: "notes"
attributes:
footnote:
- code: "number"
- checksum: checksum
- label: "line text"
+ code: "Number"
+ checksum: Checksum
+ label: "Line text"
+
diff --git a/config/locales/footnotes.fr.yml b/config/locales/footnotes.fr.yml
index 5169cfc11..2cf81d5b6 100644
--- a/config/locales/footnotes.fr.yml
+++ b/config/locales/footnotes.fr.yml
@@ -15,6 +15,6 @@ fr:
other: "notes"
attributes:
footnote:
- code: "titre"
+ code: "Titre"
checksum: Signature métier
- label: "texte"
+ label: "Texte"