Greetings,
I'm using core contact.module to create a side-wide feedback page. There is a settings page where I can configure a message which will be displayed at the top of contact form. I would like to have it in several languages but I have found that it is impossible because contact.module won't translate it:
$form['contact_information'] = array(
'#value' => filter_xss_admin(variable_get('contact_form_information',
t('You can leave us a message using the contact form below.')))
);
As we can see only default message can be translated but if I store my own new message it won't be translated. May be this line should be changed to something like this:
$form['contact_information'] = array(
'#value' => filter_xss_admin(t(variable_get('contact_form_information',
'You can leave us a message using the contact form below.')))
);
or am I missing something ?
I think that this question concerns to all variables which is very important for multilingual sites.
variable_get() function also doesn't translate variables. So, I don't see a way to translate any variable.
Thanks.
Comments
That's the trick...
I tried your solution and wrote a patch for it for Drupal 5.
I've reported it as a bug and made an attempt at a patch.
http://drupal.org/node/207636#comment-1113390
EDIT - didn't notice I was replying to a deprecated forum thread.