By matteoraggi on
On my site I have some strings included into views coming from .php files included into theme, and they don't dome from db or modules, in this case, how I can translate them?
On my site I have some strings included into views coming from .php files included into theme, and they don't dome from db or modules, in this case, how I can translate them?
Comments
Is this module of any help to
Is this module of any help to you? It allows you to extract text from various php files like template files.
http://drupal.org/project/potx
What will change if I use
What will change if I use this suggested module or if I follow these instructions? http://api.drupal.org/api/function/t/6
I tryed on this page: http://www.forniture-alberghiere.net/altea7-srl to change this string:
$node->content['files']['#title'] = '<A HREF="user">Login</A> o <A HREF="user/register">Registrati</A> per scaricare gli allegati';to this string:
$node->content['files']['#title'] = '<A HREF="user">Login</A> o <A HREF="user/register">t('Registrati')</A> t('per scaricare gli allegati')';But then I get thi error page:
Parse error: syntax error, unexpected T_STRING in /home/correre/forniture-alberghiere.net/sites/all/themes/framework/node-azienda.tpl.php on line 59
n/a
What I'm doin wrong?