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';