Rails internationalization issue -
i have following file structure:
models/modules/survey/survey.rb
and
controllers/modules/survey/surveys_controller.rb
i having internationalization survey
model working:
pl: activerecord: models: 'modules/survey/survey': one: ankieta few: ankiet #... errors: answers_required: 'wymagana liczba poprawnych odpowiedzi to: %{required_number}, liczba zaznaczonych odpowiedzi to: %{given_number}' attributes: 'modules/survey/survey': type: typ name: nazwa # more attributes
but can't controller's translation work.
neither this:
pl: 'modules/survey/surveys': index: header: lista ankiet # ...
nor this:
pl: modules: 'survey/surveys': index: header: lista ankiet # ...
works..
any suggestions?
ok, right after posting found solution - had nest 1 under another:
pl: modules: survey: surveys: index: header: lista ankiet # ...
Comments
Post a Comment