aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcedricnjanga2018-03-27 23:19:19 -0700
committerJohan Van Ryseghem2018-03-29 10:13:08 +0200
commit4ccd46329f84f75b11df6a65a64ab3a07eb6ad8b (patch)
tree5b61c7c9332e42da6da8620bb86300b0e620de27
parent2d10d344d64dba13ef8850f258671919a2496d7d (diff)
downloadchouette-core-4ccd46329f84f75b11df6a65a64ab3a07eb6ad8b.tar.bz2
Refs #6156 Add i18n to referential table builder selected elements
-rw-r--r--app/helpers/multiple_selection_toolbox_helper.rb4
-rw-r--r--config/locales/table_builders.en.yml3
-rw-r--r--config/locales/table_builders.fr.yml3
3 files changed, 8 insertions, 2 deletions
diff --git a/app/helpers/multiple_selection_toolbox_helper.rb b/app/helpers/multiple_selection_toolbox_helper.rb
index e0a1d2dd4..7e02c6d73 100644
--- a/app/helpers/multiple_selection_toolbox_helper.rb
+++ b/app/helpers/multiple_selection_toolbox_helper.rb
@@ -20,7 +20,7 @@ module MultipleSelectionToolboxHelper
data: {
path: delete_path,
# #5206 Missing Translations
- confirm: 'Etes-vous sûr(e) de vouloir effectuer cette action ?'
+ confirm: t('actions.are_you_sure')
},
title: t("actions.#{action}")
) do
@@ -34,7 +34,7 @@ module MultipleSelectionToolboxHelper
label = content_tag(
:span,
- ("<span>0</span> élément(s) sélectionné(s)").html_safe,
+ ("<span>0</span> #{t('table_builders.selected_elements')}").html_safe,
class: 'info-msg'
)
diff --git a/config/locales/table_builders.en.yml b/config/locales/table_builders.en.yml
new file mode 100644
index 000000000..9ee59a1e1
--- /dev/null
+++ b/config/locales/table_builders.en.yml
@@ -0,0 +1,3 @@
+en:
+ table_builders:
+ selected_elements: "selected element(s)" \ No newline at end of file
diff --git a/config/locales/table_builders.fr.yml b/config/locales/table_builders.fr.yml
new file mode 100644
index 000000000..3c92640fc
--- /dev/null
+++ b/config/locales/table_builders.fr.yml
@@ -0,0 +1,3 @@
+fr:
+ table_builders:
+ selected_elements: "élement(s) sélectionné(s)" \ No newline at end of file