t

Events happening in the community are now at Drupal community events on www.drupal.org.
texas-bronius's picture

passing strings through drupal t() function from php snippet

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
Subscribe with RSS Syndicate content