Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/09/2011, 01:27
sitosite
 
Fecha de Ingreso: abril-2011
Mensajes: 11
Antigüedad: 13 años
Puntos: 0
Busqueda Duda sentencia echo

Hola, quiero modificar una "frase" del carrito de virtuemart en php para que aparezca en varios idiomas segun cual este seleccionado.

Originalmente el trozo de codigo está así:

Código PHP:
Ver original
  1. <?php if($empty_cart) { ?>
  2.         <?php echo $VM_LANG->_('PHPSHOP_CART_EMPTY'); ?>. <a href="index.php?page=shop.cart&option=com_virtuemart"><?php echo $VM_LANG->_('PHPSHOP_CART_SHOW'); ?></a><?php
  3.         } else {
  4.             echo $VM_LANG->_('PHPSHOP_CART_FULL') .$total[0].$items.'.<a href="index.php?page=shop.cart&option=com_virtuemart">&nbsp;Show Cart</a>';
  5.         } ?>
I quiero que quede así, subtituyendo Show Cart por una variable[<?php echo $VM_LANG->_('PHPSHOP_CART_SHOW'); ?>], que contenga el texto según el idioma seleccionado:

Código PHP:
Ver original
  1. <?php if($empty_cart) { ?>
  2.         <?php echo $VM_LANG->_('PHPSHOP_CART_EMPTY'); ?>. <a href="index.php?page=shop.cart&option=com_virtuemart"><?php echo $VM_LANG->_('PHPSHOP_CART_SHOW'); ?></a><?php
  3.         } else {
  4.             echo $VM_LANG->_('PHPSHOP_CART_FULL') .$total[0].$items. ;?> <a href="index.php?page=shop.cart&option=com_virtuemart"><?php echo $VM_LANG->_('PHPSHOP_CART_SHOW'); ?></a>';
  5.         <?php } ?>
Pero Dreamweaver me detecta un error en la línea despues del "else" (línia 4). He mirado durante rato pero no veo donde esta el error. ¿Me dejo algo?

Gracias a todos por la ayuda!!