I’ve read that using the t('text to translate') I can translate texts in drupal templates. The problem is, this function doesn’t do anything. It simply outputs the same text.
I already have a site and I have installed the proper modules so that’s not the problem.
I am using this to translate the titles for the blocks in block.tpl.php.
<h2><?php print t($block->subject); ?></h2>
So this outputs the same original text i’m defining in the title of the view as the block. Why? If I had an error shouldn’t Drupal output something or log that error at least?
Translation is not magic. You also need to set up the language of your site in something else than english and be sure that the string you display have a translation.
You can check this at this page :
exemple.com/?q=admin/build/translate/search(d6 url)