Commit 8f8add82 authored by joseph.olstad's avatar joseph.olstad

Issue #1717668 by gngn, joseph.olstad, gdaw: translation of string variables not working

parent 21c6b79e
......@@ -58,7 +58,7 @@ function template_preprocess_lightbox2_insert_image(&$vars) {
$vars['linkurl'] = insert_create_url($linkpath);
$vars['download_link'] = '';
$download_link_text = check_plain(variable_get('lightbox2_download_link_text', 'Download Original'));
$download_link_text = check_plain(t(variable_get('lightbox2_download_link_text', 'Download Original')));
if (!empty($download_link_text) && user_access('download original image')) {
$vars['download_link'] = '<br /><br />' . l($download_link_text, $vars['linkurl'], array('attributes' => array('target' => '_blank', 'id' => 'lightbox2-download-link-text')));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment