Search code examples
drupaldrupal-6

Drupal: how can I add transable text from my php template?


I'm using Drupal with international module for translations.

how can I add transable text from php template to my website ?

In other terms, I've customized my website adding some fixed content directly from php code. However I would like this content to appear as string in the languages translation search.

I've added this but it doesn't work so far (I've also refreshed the translation database):

<?php echo t('Some random description here, a bit longer ok. Some random description here.'); ?>

thanks


Solution

  • You need to visit the translated content at least once to add such strings to the translation interface.