Page 1 of 1

translate "recalculate" "checkout" "continue shopping"

Posted: Sat Mar 26, 2011 5:16 pm
by alessiamarina
Hi... I need to translate in italian "recalculate" "checkout" "continue shopping" on CART.PHP

If i change the name, for example "recalculate"="ricalcola", the cart page doesn't work.

Can you help me?

thank you

Re: translate "recalculate" "checkout" "continue shopping"

Posted: Sat Mar 26, 2011 6:14 pm
by Pablo
If you chnage the button labels then you must also modify the PHP code.

For example:

Code: Select all

      case "RECAL": 
         RecalculateCart();
         break;
to

Code: Select all

      case "RICAL": 
         RecalculateCart();
         break;

Re: translate "recalculate" "checkout" "continue shopping"

Posted: Sun Mar 27, 2011 12:06 am
by alessiamarina
thank you! And for che checkout button? what should i modify? it doesn't work

Re: translate "recalculate" "checkout" "continue shopping"

Posted: Sun Mar 27, 2011 6:38 am
by Navaldesign
Look further down the code, it is the same concept.

The code uses the first 5 characters, all UPPER case.
So, depending on how you have named your buttons, you need to modify the code accordingly.

case "CONTI":
header("Location: ".$shopping_url);
break;

// recalculate
case "RECAL":
RecalculateCart();
break;

// proceed to checkout
case "CHECK":
header("Location: "."customer.php");
break;


For each of the 3 buttons, change the text (5 chrs, all upper case) to match your button Value(text) in Italian.

Re: translate "recalculate" "checkout" "continue shopping"

Posted: Sun Mar 27, 2011 8:42 am
by alessiamarina
perfect! ;-)