Helpful Docs to read before posting: (All Docs) | Config Docs | General FAQ | Mailing List Sending FAQ | Error FAQ

Save translated templates before upgrade?

How do I...

Re: Save translated templates before upgrade?

Postby moyiize » Sun May 27, 2012 6:01 am

Thank you,
I used the "wrapper" (option=com_wrapper) feature of Joomla to get Dada mai embedded in my Joomla site. That is working coorectly for the time being.
I am still reading through dcoumentation as I am new to Dada mail and really love its features. Where can we find and customize (localize) the page with Lists and archives?

Regards
moyiize
 
Posts: 23
Joined: Tue May 22, 2012 7:36 am

Re: Save translated templates before upgrade?

Postby moyiize » Tue May 29, 2012 9:06 am

Hi,
I am trying to find the template where it says "Your Request For Subscription is Complete " for translation. Where can I find it?
Also wanted to know whre the <!-- tmpl_var PROGRAM_NAME --> variable is located?
Regards
moyiize
 
Posts: 23
Joined: Tue May 22, 2012 7:36 am

Re: Save translated templates before upgrade?

Postby justin » Tue May 29, 2012 10:23 am

I am trying to find the template where it says "Your Request For Subscription is Complete " for translation. Where can I find it?


The default text looks like it's in the, $HTML_SUBSCRIPTION_REQUEST_MESSAGE variable, in the Config.pm

Also wanted to know whre the <!-- tmpl_var PROGRAM_NAME --> variable is located?


Also in the Config.pm. Variables all in UPPERcase are config variables.

With any Config.pm variables, it's best to put these in your .dada_config file - for the first variable, since it's actually used in the %LIST_SETUP_DEFAULTS variable, you'll want to add it there. Find these lines in your .dada_config file:

Code: Select all
# start cut for list settings defaults
=cut

%LIST_SETUP_INCLUDE = (
   set_smtp_sender              => 1, # For SMTP
   add_sendmail_f_flag          => 1, # For Sendmail Command
   admin_email                  => 'bounces@example.com',
);

=cut
# end cut for list settings defaults


Remove those cut lines and the key/vals that are already in there:


Code: Select all

%LIST_SETUP_INCLUDE = (


);



And put that key/val in, perhaps with a temp variable, just to keep things clean, like I do in the Config.pm file:

Code: Select all
my $html_subscription_request_message = <<EOF
<!-- tmpl_set name="title" value="Your Request For Subscription is Complete" -->

<p>The List Owner for:</p>

<blockquote>
<p>
  <strong>
   <!-- tmpl_var list_settings.list_name -->
  </strong>
</p>
</blockquote>

<p>has been notified that you have requested a subscription for:</p>

<blockquote> 
<p>
  <strong>
  <!-- tmpl_var subscriber.email -->
  </strong>
</p>
</blockquote>

<p>An email message will be sent to your address when you have been approved or denied a subscription</p>

EOF
;

%LIST_SETUP_INCLUDE = (
        html_subscription_request_message => $html_subscription_request_message,
);



The $PROGRAM_NAME variable can simply be added to the .dada_config file,

Code: Select all
$PROGRAM_NAME = 'My App';
User avatar
justin
 
Posts: 4583
Joined: Wed Feb 13, 2008 8:41 pm
Location: Denver, CO

Re: Save translated templates before upgrade?

Postby moyiize » Tue Jun 05, 2012 5:30 am

That was very helpful Justin.
Thank you.
Regards
moyiize
 
Posts: 23
Joined: Tue May 22, 2012 7:36 am

Previous

Return to Upgrading Dada Mail

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Loading