Commit 300429bf authored by Ruslan_SM's avatar Ruslan_SM Committed by pifagor
Browse files

Issue #949604 by boazr, webadpro, zilverdistel, TheRuslan, GaëlG, barraponto,...

Issue #949604 by boazr, webadpro, zilverdistel, TheRuslan, GaëlG, barraponto, jhodgdon, diqidoq, jcfiala, Gábor Hojtsy, colan, mErilainen, knalstaaf, mfernea, pifagor: Static link text cannot be translated
parent 26c50e3b
......@@ -1287,7 +1287,12 @@ function theme_link_formatter_link_label($vars) {
$link_options = $vars['element'];
unset($link_options['title']);
unset($link_options['url']);
return $vars['element']['url'] ? l($vars['field']['label'], $vars['element']['url'], $link_options) : '';
$label = $vars['field']['label'];
if (function_exists('i18n_string_translate')) {
$i18n_string_name = "field:{$vars['field']['field_name']}:{$vars['field']['bundle']}:label";
$label = i18n_string_translate($i18n_string_name, $label);
}
return $vars['element']['url'] ? l($label, $vars['element']['url'], $link_options) : '';
}
/**
......
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