How to translate the "Description" field?

Top  Previous  Next
1. Create the "CommentsRU" and "CommentsES" field at http://yoursite.com/admin/add_listing_field/ of the "text" type
 
2. Add this field to all related input forms
       <tr>
               <td ><h3>[[$form_fields.Comments.caption]]:</h3></td>
       </tr>
       <tr>
               <td>{input property=Comments}</td>
       </tr>
       <tr>
               <td>[[$form_fields.CommentsRU.caption]]:</td>
       </tr>
       <tr>
               <td>{input property=CommentsRU}</td>
       </tr>

       <tr>
               <td>{input property=CommentsES}</td>
       </tr>
       <tr>
               <td>[[$form_fields.CommentsES.caption]]:</td>
       </tr>
 

3. Put the following code to the listing_details.tpl file:
       {if $GLOBALS.current_language eq "en"}
       {$listing.Comments}
       {elseif $GLOBALS.current_language eq "ru"}
       {$listing.CommentsRU}
       {else}
       {$listing.CommentsES}
       {/if}