When I get errors in the model package, I always see the first line (English = not translated):
1 error prohibited this packet from being saved: Naam Gelieve het veld Naam in te vullen!
Found translations for error for one field!
So far I have the following in nl.yml
nl: activemodel: errors: template: header: one: "1 fout voorkwam dat dit %{model} kon bewaard worden" other: "%{count} fouten voorkwamen dat deze %{model} kon bewaard worden" body: "Er waren problemen met de volgende velden:" errors: template: body: "Controleer alstublieft de volgende velden:" header: one: "Kon dit {{model}} object niet opslaan: 1 fout." other: "Kon dit {{model}} niet opslaan: {{count}} fouten." activerecord: errors: template: header: one: "1 fout voorkwam dat dit %{model} kon bewaard worden" other: "%{count} fouten voorkwamen dat deze %{model} kon bewaard worden" body: "Er waren problemen met de volgende velden:" messages: blank: Gelieve het veld %{attribute} in te vullen! models: survey: test packet: woordenlijst user: gebruiker attributes: survey: name: Naam
If you look at a lot of things on rails-i18n, download them nl.yml, but nothing helps. Does anyone know why this is not working?
I thought this was a possible conflict with other files (I have localization files for two other gems), but deleting them temporarily did not change anything.
Does anyone know how to debug this?
Can I somehow remove the default translation so that I get an error whose translation was not found?
ruby-on-rails-3 internationalization
nathanvda
source share