MailingList


Localized mailer templates

View: New views
4 Messages — Rating Filter:   Alert me  

Localized mailer templates

by Joshua Wehner-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm having a problem with localized mailer templates -- they are being ignored. I've looked through the documentation, and searched the mailing list archvies, and all the examples I've seen seem to be for HTML templates (eg, they use an html extension for content-type.)

Does anyone currently have this working? Can you share the filename format you're currently using?

Thanks!


-- Joshua

Re: Localized mailer templates

by ginger72 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Josh,
I have been using <template_name>.<locale>.text.[plain | html].rhtml

Example:
send_welcome.en-US.text.plain.rhtml

Seems to work fine with me.
Good luck,
Juergen



On Nov 6, 2007, at 1:33 AM, Joshua Wehner wrote:

> I'm having a problem with localized mailer templates -- they are  
> being ignored. I've looked through the documentation, and searched  
> the mailing list archvies, and all the examples I've seen seem to  
> be for HTML templates (eg, they use an html extension for content-
> type.)
>
> Does anyone currently have this working? Can you share the filename  
> format you're currently using?
>
> Thanks!
>
>
> -- Joshua


Re: Localized mailer templates

by flornet@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Doing the same here and works nice.

Florent Jaouali
--
Soy-salsero.com


Le 6 nov. 07 à 17:19, Jürgen Feßlmeier a écrit :

> Hi Josh,
> I have been using <template_name>.<locale>.text.[plain | html].rhtml
>
> Example:
> send_welcome.en-US.text.plain.rhtml
>
> Seems to work fine with me.
> Good luck,
> Juergen
>
>
>
> On Nov 6, 2007, at 1:33 AM, Joshua Wehner wrote:
>
>> I'm having a problem with localized mailer templates -- they are  
>> being ignored. I've looked through the documentation, and searched  
>> the mailing list archvies, and all the examples I've seen seem to  
>> be for HTML templates (eg, they use an html extension for content-
>> type.)
>>
>> Does anyone currently have this working? Can you share the  
>> filename format you're currently using?
>>
>> Thanks!
>>
>>
>> -- Joshua
>


Re: Localized mailer templates

by ginger72 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Since we are already on that topic, do you know if I can strip the  
country information from the template files, so it will apply to all  
languages under a certain language rather than an exact locale?

Example:

"send_welcome.en.text.plain.rhtml" (for all English speakers) instead  
of "send_welcome.en-US.text.plain.rhtml" (for just US English)

Thanks,
Juergen


On Nov 6, 2007, at 8:25 AM, Flornet wrote:

> Hi,
>
> Doing the same here and works nice.
>
> Florent Jaouali
> --
> Soy-salsero.com
>
>
> Le 6 nov. 07 à 17:19, Jürgen Feßlmeier a écrit :
>
>> Hi Josh,
>> I have been using <template_name>.<locale>.text.[plain | html].rhtml
>>
>> Example:
>> send_welcome.en-US.text.plain.rhtml
>>
>> Seems to work fine with me.
>> Good luck,
>> Juergen
>>
>>
>>
>> On Nov 6, 2007, at 1:33 AM, Joshua Wehner wrote:
>>
>>> I'm having a problem with localized mailer templates -- they are  
>>> being ignored. I've looked through the documentation, and  
>>> searched the mailing list archvies, and all the examples I've  
>>> seen seem to be for HTML templates (eg, they use an html  
>>> extension for content-type.)
>>>
>>> Does anyone currently have this working? Can you share the  
>>> filename format you're currently using?
>>>
>>> Thanks!
>>>
>>>
>>> -- Joshua
>>
>