2010/8/18 Henrik Nyh <[email protected]> > 2010/8/18 Andrés gutiérrez <[email protected]>: > > But,... > > es: > > meta: > > language: %{locale} > > How is the interpolation? > > If you pass :locale into I18n.t, it will use that locale rather than > the currently active one. So I18n.t("meta.language_name", :locale => > :es) will be es.meta.language_name, I18n.t("meta.language_name", > :locale => :en) will be en.meta.language_name. >
Oh!!! i did not that :O Very smart! Should not be meta.language in default .yml files? is very common and useful Thanks > > -- > You received this message because you are subscribed to the Google Groups > "rails-i18n" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<rails-i18n%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rails-i18n?hl=en. > > -- You received this message because you are subscribed to the Google Groups "rails-i18n" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-i18n?hl=en.
