Signup page not completely translated

Discussion in 'Troubleshooting' started by twholycross, Oct 6, 2008.

  1. twholycross

    twholycross aMember Pro Customer

    Joined:
    Jan 30, 2007
    Messages:
    63
    I just changed amember to Spanish, but the price portion of the signup page still says ($29.95 for one month) rather than ($29.95 por mes). I have searched for the textstring and looked in the language files but cannot find where to change it. Anyone?

    Thanks
  2. jon_sand

    jon_sand New Member

    Joined:
    Aug 22, 2006
    Messages:
    2
    This is a shortcoming of the amember language system. Go into the member/admin CP section with a web browser and select "Manage Products" then edit your product. What its doing is taking the Price and the Duration fields and outputting them. There's nothing you can do about it.

    What we did was edit the signup.html page as follows:

    First we added 2 new fields in the products table title_esp and description_esp to accommodate spanish info. Then we did this:


    {php}
    //check for language
    $ll=$GLOBALS['_LANG_SELECTED'];
    if ($ll=='es') {
    // echo 'es';
    $es=1;
    }
    {/php}

    then under the output areas we put the cost/term under the title (i.e., product name - $29.95 por mes) and removed the $p.term variable whenever the usr chose Spanish:

    {php}
    if ($es) {
    //display spanish title + terms and spanish description
    {/php}

    <label for="product{$p.product_id}"><b>{$p.title_esp}</b><br />
    <span class="small">{$p.description_esp}</span></label><br />
    {php}
    } else {
    // display original english info
    {/php}
    <label for="product{$p.product_id}"><b>{$p.title} ({$p.terms})</b><br />
    <span class="small">{$p.description}</span></label><br />
    {php}
    }
    {/php}

    not the most effective way to do it for many languages, but if you're just using english plus another like spanish, it works. now have to figure out how to work around the custom field problem.

Share This Page