[Rails] Re: views w locale default template
Kad Kerforn wrote in post #999856:
> [RAILS3]
>
> I hesitate on how handling the locale view templates to default to
> one language only ..
>
> sending admin emails will go only to one locale 'en_GB'
>
> should I set it up into the template name and set I18n.locale to
> 'en_GB'
>
> membership_renew.en_GB.html.erb
>
> OR
>
> whatever locale is used , if I have :
>
> membership_renew.html
>
> it will be the default ?
Hi, at least I didn't completely get your problem.
The way I set a default locale is:
config.i18n.fallbacks = true
config.i18n.default_locale = :en
I have 3 languages and if one translation is not found it fallback to
english.
But again, I maybe didn't get your goal.
Cheers.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home