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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -