On Monday, September 16, 2013 12:16:45 PM UTC+1, trekr67 wrote: > > > %section#download > %h1= t "section.title" > .content > %p > = I18n.t "section.first_box.first" > > in name.html.erb file. > > But I noticed that the css formatting that would apply to the %p tag no > longer applies because of the internationalization tag I18n.t. Does anyone > know how I can make sure that the text being translated > "section.first_box.first" will preserve it's css formatting and not have it > removed because of the I18n.t tag? > > This isn't related to the use of i18n ( as a shortcut you can use just 't' in views instead of I18n.t). As it stands the indentation in your haml file will put the internationalized text outside of the p tag, so the css rules for p tags won't be used.
Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d09bf5c9-1b89-400f-9c97-a668900b0f44%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.

