Knowledgebase: Translation
How to translate the information about Membership Plans?
Posted by Lena Kosyakova on 26 May 2009 12:27 PM
1. the fields as Name, Descriptions, Price and Expiration Period in the subscription_page.tpl file should be within double square brackets as [[$membership_plan.name.caption]]

2. you need to add a new domain "Membership_Plan" to your default language file:
<page key="Membership_Plan">
</page>

3. go to subscription_page.tpl and add the following code after the {foreach from=$available_membership_plans item=membership_plan key=id name=mp} tag:

{capture assign="plan_name"}[[$membership_plan.name.element]]{/capture}
{capture assign="plan_description"}[[$membership_plan.description.element]]{/capture}


4. Put the domain Membership_Plan for $membership_plan.name.caption, $membership_plan.description.caption and $membership_plan.price.caption:

<table cellpadding="3">
<tr>
<td>[[Membership_Plan!$membership_plan.name.caption]]:</td><td>[[$membership_plan.name.element]]</td>
</tr>
<tr>
<td>[[Membership_Plan!$membership_plan.description.caption]]:</td><td>[[$membership_plan.description.element]]</td>
</tr>
<tr>
<td>[[Membership_Plan!$membership_plan.price.caption]]:</td><td>{$GLOBALS.custom_settings.transaction_currency}[[$membership_plan.price.element]]</td>
</tr>
</table>


5. Put the domain PhrasesInTemplates for $membership_plan.name.element and $membership_plan.description.element:

<table cellpadding="3">
<tr>
<td>[[Membership_Plan!$membership_plan.name.caption]]:</td><td>[[PhrasesInTemplates!$membership_plan.name.element]]</td>
</tr>
<tr>
<td>[[Membership_Plan!$membership_plan.description.caption]]:</td><td>[[PhrasesInTemplates!$membership_plan.description.element]]</td>
</tr>


6. enable "Highlight" for the "Mark Phrases That Are Not Translated" setting in the System Settings section in your Admin Panel

Now you can translate the information on the http://www.yoursite.com/subscription/ page from the front-end.
(256 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