If a user enters in a string in the 'additional information' field in the Contact form settings (admin/build/contact/settings), the string is not translatable.

Pertinent modules in use: Locale, Content translation, Internationalization

To reproduce the bug, enter in a value in the 'additional information' field in the Contact form settings. Enable another language set (eg Spanish [es]). If you go to the contact form and switch between languages, the form will translate /except/ for that string. If you then go to the translate interface and run a search on the string, the only result that shows up is for the Admin interface. I would expect that that string should be translatable.

CommentFileSizeAuthor
#1 contact-tstring-addlinfo-727150.patch987 bytesawjrichards

Comments

awjrichards’s picture

Version: 6.15 » 6.x-dev
StatusFileSize
new987 bytes

Attached patch adjust location of t() to ensure that a user-inputted string can be translated (patched against 6.x-dev)
Originally:

$form['contact_information'] = array('#value' => filter_xss_admin(variable_get('contact_form_information', t('You can leave a message using the contact form below.'))));

After patch:

$form['contact_information'] = array('#value' => filter_xss_admin(t(variable_get('contact_form_information', 'You can leave a message using the contact form below.'))));
awjrichards’s picture

Status: Active » Needs review

Just updating status to 'needs review' for the patch in comment 1

dave reid’s picture

Status: Needs review » Closed (works as designed)

You can use the i18n_strings module to translate this.
See also http://drupal.org/node/83514