Skip to content

Commit

Permalink
Scope our simple_form translations
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen committed Apr 3, 2018
1 parent 9402720 commit efe364f
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 152 deletions.
2 changes: 1 addition & 1 deletion config/initializers/simple_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,5 @@
# config.include_default_input_wrapper_class = true

# Defines which i18n scope will be used in Simple Form.
# config.i18n_scope = 'simple_form'
config.i18n_scope = 'alchemy.forms'
end
34 changes: 9 additions & 25 deletions config/locales/simple_form.de.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
de:
simple_form:
"yes": 'Ja'
"no": 'Nein'
required:
text: 'Pflichtfeld'
mark: '*'
# You can uncomment the line below if you need to overwrite the whole required html.
# When using html, text and mark won't be used.
# html: '<abbr title="required">*</abbr>'
error_notification:
default_message: "Es sind Fehler aufgetreten:"
# Labels and hints examples
# labels:
# defaults:
# password: 'Password'
# user:
# new:
# email: 'E-mail to sign in.'
# edit:
# email: 'E-mail.'
# hints:
# defaults:
# username: 'User name to sign in.'
# password: 'No special characters, please.'

alchemy:
forms:
"yes": 'Ja'
"no": 'Nein'
required:
text: 'Pflichtfeld'
mark: '*'
error_notification:
default_message: "Es sind Fehler aufgetreten:"
33 changes: 9 additions & 24 deletions config/locales/simple_form.en.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
en:
simple_form:
"yes": 'Yes'
"no": 'No'
required:
text: 'required'
mark: '*'
# You can uncomment the line below if you need to overwrite the whole required html.
# When using html, text and mark won't be used.
# html: '<abbr title="required">*</abbr>'
error_notification:
default_message: "Please review the problems below:"
# Labels and hints examples
# labels:
# defaults:
# password: 'Password'
# user:
# new:
# email: 'E-mail to sign in.'
# edit:
# email: 'E-mail.'
# hints:
# defaults:
# username: 'User name to sign in.'
# password: 'No special characters, please.'
alchemy:
forms:
"yes": 'Yes'
"no": 'No'
required:
text: 'required'
mark: '*'
error_notification:
default_message: "Please review the problems below:"
11 changes: 6 additions & 5 deletions config/locales/simple_form.es.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
es:
simple_form:
labels:
user:
login: Usuario
password: Contraseña
alchemy:
forms:
labels:
user:
login: Usuario
password: Contraseña
34 changes: 9 additions & 25 deletions config/locales/simple_form.fr.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
fr:
simple_form:
"yes": 'oui'
"no": 'non'
required:
text: 'champ obligatoire'
mark: '*'
# You can uncomment the line below if you need to overwrite the whole required html.
# When using html, text and mark won't be used.
# html: '<abbr title="required">*</abbr>'
error_notification:
default_message: "Il ya des erreurs:"
# Labels and hints examples
# labels:
# defaults:
# password: 'Password'
# user:
# new:
# email: 'E-mail to sign in.'
# edit:
# email: 'E-mail.'
# hints:
# defaults:
# username: 'User name to sign in.'
# password: 'No special characters, please.'

alchemy:
forms:
"yes": 'oui'
"no": 'non'
required:
text: 'champ obligatoire'
mark: '*'
error_notification:
default_message: "Il ya des erreurs:"
33 changes: 9 additions & 24 deletions config/locales/simple_form.it.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
it:
simple_form:
"yes": ''
"no": 'No'
required:
text: 'obbligatorio'
mark: '*'
# You can uncomment the line below if you need to overwrite the whole required html.
# When using html, text and mark won't be used.
# html: '<abbr title="required">*</abbr>'
error_notification:
default_message: "Correggi gli errori sottostanti:"
# Labels and hints examples
# labels:
# defaults:
# password: 'Password'
# user:
# new:
# email: 'E-mail to sign in.'
# edit:
# email: 'E-mail.'
# hints:
# defaults:
# username: 'User name to sign in.'
# password: 'No special characters, please.'
alchemy:
forms:
"yes": ''
"no": 'No'
required:
text: 'obbligatorio'
mark: '*'
error_notification:
default_message: "Correggi gli errori sottostanti:"
33 changes: 9 additions & 24 deletions config/locales/simple_form.nl.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
nl:
simple_form:
"yes": 'Ja'
"no": 'Nee'
required:
text: 'Verplicht'
mark: '*'
# You can uncomment the line below if you need to overwrite the whole required html.
# When using html, text and mark won't be used.
# html: '<abbr title="required">*</abbr>'
error_notification:
default_message: "Controleer de volgende problemen:"
# Labels and hints examples
# labels:
# defaults:
# password: 'Password'
# user:
# new:
# email: 'E-mail to sign in.'
# edit:
# email: 'E-mail.'
# hints:
# defaults:
# username: 'User name to sign in.'
# password: 'No special characters, please.'
alchemy:
forms:
"yes": 'Ja'
"no": 'Nee'
required:
text: 'Verplicht'
mark: '*'
error_notification:
default_message: "Controleer de volgende problemen:"
33 changes: 9 additions & 24 deletions config/locales/simple_form.ru.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
ru:
simple_form:
"yes": 'Да'
"no": 'Нет'
required:
text: 'обязательные поля'
mark: '*'
# You can uncomment the line below if you need to overwrite the whole required html.
# When using html, text and mark won't be used.
# html: '<abbr title="required">*</abbr>'
error_notification:
default_message: "Пожалуйста, исправьте эти ошибки:"
# Labels and hints examples
# labels:
# defaults:
# password: 'Password'
# user:
# new:
# email: 'E-mail to sign in.'
# edit:
# email: 'E-mail.'
# hints:
# defaults:
# username: 'User name to sign in.'
# password: 'No special characters, please.'
alchemy:
forms:
"yes": 'Да'
"no": 'Нет'
required:
text: 'обязательные поля'
mark: '*'
error_notification:
default_message: "Пожалуйста, исправьте эти ошибки:"

0 comments on commit efe364f

Please sign in to comment.