Or you could try nesting a translation:
subject = I18n.t(:mail, :title => I18n.t("str_welcome"))
Your mail translation would look like:
mail: "Mail: %{title}"
2010/10/12 Andrés Mejía <[email protected]>:
> Try subject="Mail: #{I18n.t("str_welcome")}"
>
> On Tue, Oct 12, 2010 at 8:32 AM, Aruna Chinnamuthu <[email protected]>
> wrote:
>>
>> Hi , I am new to rails.. I am having a line in the mailing queue.rb file
>> as
>>
>> subject ="Mail : Welcome to app"
>>
>> I have added translation for Welcome to app as
>>
>> str_welcome: "Welcome to app"
>>
>> Now i am trying to replace Welcome to app in the file with the
>> str_welcome
>>
>> how to do that as i have another prefix ("Mail") also ..
>>
>> --
>> Posted via http://www.ruby-forum.com/.
>>
>> --
>> 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.
>>
>
> --
> 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.
>
--
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.