mvlcek Wrote:Thanks, I guess the .htaccess caching 0_o that I had was causing the changes not to appear instantly. Still you are awesome as always! As a suggestion, on your website, it might be a good idea to mention these conditional tags considering there is often footer text or other text outside of the WYSIWYG editor, which doesn't automatically get translated.yurifanboy Wrote:<?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:
If you use this code directly in the template file, it should work. However, if you use this within a function, you need to tell PHP it's a global variable first:
Code:global $language;
...
Todo arde si le aplicas la chispa adecuada.