Knowledgebase: Support
How to translate the Book Request email
Posted by Lena Kosyakova on 26 February 2010 12:05 PM
The owner of a listing gets an email when someone request to book owner's car or property.

In order to internationalize the content of this email you need to do the following:

  1. create a new phrase with ID "Book Request";

  2. go to book_request.tpl and take the code within {message} and {/message} tags to the translation of the phrase "Book Request".
    Now Book Request looks like:

    Dear {$listing.user.FirstName}, <br /><br />

    You have received a new booking request on {$GLOBALS.site_url} for the following listing of yours: <br/><br/>

    <a href="{$GLOBALS.site_url}/listing_details/{$listing.id}/">{$listing.Address} {$listing.City} {$listing.State}</a> <br/><br/>

    Here are the booking details: <br /><br />

    Sender's Name: {$sender_name}<br />
    Sender's Email: {$sender_email}<br />
    Booking from {$period_start} to {$period_end}<br />
    Comments and Instructions: <br/>{$comment}<br />


    And the book_request.tpl looks like:

    {subject}New Booking Request On {$GLOBALS.site_url} For the Property on {$listing.Address} {$listing.City} {$listing.State}{/subject}
    {message}
    [[Book Request]]
    {/message}



  3. Then in book_request.tpl you need to assign a value for all variables:

    {assign var='FirstName' value=$listing.user.FirstName}
    {assign var='site_url' value=$GLOBALS.site_url}
    {assign var='ListingId' value=$listing.id}
    {assign var='Address' value=$listing.Address}
    {assign var='City' value=$listing.City}
    {assign var='State' value=$listing.State}
    {subject}New Booking Request On {$GLOBALS.site_url} For the Property on {$listing.Address} {$listing.City} {$listing.State}{/subject}
    {message}
    [[Book Request]]
    {/message}


  4. Afterwards in the phrase [[Book Request]] you need to replace all variables from {$listing.Address} to $Address and {$GLOBALS.site_url} to site_url.
    The translation in the phrase now looks like:

    Dear $FirstName, <br /><br />

    You have received a new booking request on $site_url for the following listing of yours: <br/><br/>

    <a href="$site_url/listing_details/$ListingId/">$Address $City $State</a> <br/><br/>

    Here are the booking details: <br /><br />

    Sender's Name: $sender_name<br />
    Sender's Email: $sender_email<br />
    Booking from $period_start to $period_end<br />
    Comments and Instructions: <br/>$comment<br />




That's all.
(226 votes)
This article was helpful
This article was not helpful

Comments (0)
Post a new comment 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako Fusion