passing strings through drupal t() function from php snippet
Posted by texas-bronius on August 14, 2010 at 4:50pm
I am trying to use the Drupal t() function to translate some strings provided in the view's header as php like this:
<h3 class="title"><?php print t('Choose a Country'); ?></h3>
...And yet, when I switch languages, this string is always in English. Any ideas why and whether there's a more proper way to implement this?
-Bronius
Read more