<?php if ($language == 'en') { ?> All rights reserved. All images belong to their
respective owners.<?php } ?>
<?php if ($language == 'es') { ?> Todos los derechos reservados. Todas las imágenes son propiedad de sus respectivos autores.<?php } ?>
I can't seem to get the php conditionals to work so that I can use them to translate pieces of my template when I use the language switcher:
respective owners.<?php } ?>
<?php if ($language == 'es') { ?> Todos los derechos reservados. Todas las imágenes son propiedad de sus respectivos autores.<?php } ?>
I can't seem to get the php conditionals to work so that I can use them to translate pieces of my template when I use the language switcher:
Code:
<div id="lang">
<a href="<?php echo htmlspecialchars(return_i18n_lang_url('es')); ?>">
<img src="" alt="es" /> Español</a>
<a href="<?php echo htmlspecialchars(return_i18n_lang_url('en')); ?>">
<img src="" alt="us" /> English</a>
</div>
Todo arde si le aplicas la chispa adecuada.