Results 1 to 6 of 6

Thread: Translation Navbar

  1. #1
    Junior Member roberto's Avatar
    Join Date
    Jan 2012
    Posts
    21
    Thanks
    0
    Thanked 107 Times in 21 Posts

    Default Translation Navbar

    Hello,

    How do I translate the links below the navbar?

    Shop
    My Account Cart Contents Checkout

  2. The Following 6 Users Say Thank You to roberto For This Useful Post:

    asricksclesc (17-09-2013),aupeteeactea (05-11-2013),hersamuchpeich (22-11-2013),lrybuywejewe (22-11-2012),nbrregiordthor (29-11-2012),tasaraheache (01-12-2012)

  3. #2
    Developer Greystoke's Avatar
    Join Date
    Mar 2010
    Posts
    187
    Thanks
    2
    Thanked 499 Times in 113 Posts

    Default

    You will need to edit the Plugin oscshop Hook Location process_templates_complete

    Replace
    Code:
          $tablinks = '<ul class="floatcontainer">
                            <li><a href="osc_account.php">My Account</a></li>
                            <li><a href="osc_shopping_cart.php">Cart Contents</a></li>
                            <li><a href="osc_checkout_shipping.php">Checkout</a></li>
                            </ul> ';
    With
    Code:
          $tablinks = '<ul class="floatcontainer">
                            <li><a href="osc_account.php">" . $vbphrase['vbosc_myaccount'] . "</a></li>
                            <li><a href="osc_shopping_cart.php">" . $vbphrase['vbosc_cartcontents'] . "</a></li>
                            <li><a href="osc_checkout_shipping.php">" . $vbphrase['vbosc_checkout'] . "</a></li>
                            </ul> ';

    You will then need to add the phrase for each of the above to what ever languages you are using.
    To do this go to your Admincp-> Languages & Phrases -> Phrase Manager -> Add New Phrase

  4. The Following 6 Users Say Thank You to Greystoke For This Useful Post:

    asricksclesc (17-09-2013),aupeteeactea (05-11-2013),hersamuchpeich (22-11-2013),lrybuywejewe (22-11-2012),nbrregiordthor (29-11-2012),tasaraheache (01-12-2012)

  5. #3
    Junior Member roberto's Avatar
    Join Date
    Jan 2012
    Posts
    21
    Thanks
    0
    Thanked 107 Times in 21 Posts

    Default

    ok, thank you

  6. The Following 6 Users Say Thank You to roberto For This Useful Post:

    asricksclesc (17-09-2013),aupeteeactea (05-11-2013),hersamuchpeich (22-11-2013),lrybuywejewe (22-11-2012),nbrregiordthor (29-11-2012),tasaraheache (01-12-2012)

  7. #4
    Junior Member roberto's Avatar
    Join Date
    Jan 2012
    Posts
    21
    Thanks
    0
    Thanked 107 Times in 21 Posts

    Default

    Ok, I translate "My Account", "Cart Contents", "Checkout", is missing only translate "Shop"

  8. The Following 5 Users Say Thank You to roberto For This Useful Post:

    asricksclesc (17-09-2013),aupeteeactea (05-11-2013),lrybuywejewe (22-11-2012),nbrregiordthor (29-11-2012),tasaraheache (01-12-2012)

  9. #5
    Developer Greystoke's Avatar
    Join Date
    Mar 2010
    Posts
    187
    Thanks
    2
    Thanked 499 Times in 113 Posts

    Default

    Ok, in the Plugin oscshop Hook Location process_templates_complete

    Replace

    Code:
    $template_hook['navtab_middle'] .= '<li'.$tabselected.'><a class="navtab" href="osc_shop.php">Shop</a>'.$tablinks.'</li>';
    With

    Code:
    $template_hook['navtab_middle'] .= '<li'.$tabselected.'><a class="navtab" href="osc_shop.php">" . $vbphrase['vbosc_shoptab'] . "</a>'.$tablinks.'</li>';
    You will then need to add the phrase to what ever languages you are using.
    To do this go to your Admincp-> Languages & Phrases -> Phrase Manager -> Add New Phrase

  10. The Following 7 Users Say Thank You to Greystoke For This Useful Post:

    asricksclesc (17-09-2013),aupeteeactea (05-11-2013),ciojennacgalac (07-01-2013),hersamuchpeich (22-11-2013),lrybuywejewe (22-11-2012),nbrregiordthor (29-11-2012),tasaraheache (01-12-2012)

  11. #6
    Junior Member roberto's Avatar
    Join Date
    Jan 2012
    Posts
    21
    Thanks
    0
    Thanked 107 Times in 21 Posts

    Default

    thank you, solved

  12. The Following 6 Users Say Thank You to roberto For This Useful Post:

    asricksclesc (17-09-2013),aupeteeactea (05-11-2013),hersamuchpeich (22-11-2013),lrybuywejewe (22-11-2012),nbrregiordthor (29-11-2012),tasaraheache (01-12-2012)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •