diff --git a/link_text_options.module b/link_text_options.module index 2be787916bb6508ccb77212c47a5a04461cb3567..83bed552898ddd3ee8cc0ae2dd018e9a114bd006 100644 --- a/link_text_options.module +++ b/link_text_options.module @@ -67,7 +67,7 @@ function link_text_options_field_widget_single_element_link_default_form_alter(a $options = link_text_options_get_allowed_values($context['widget']); if (count($options)) { if (count($options) === 1) { - $element['title']['#default_value'] = $options[0]; + $element['title']['#default_value'] = t($options[0]); $element['title']['#disabled'] = TRUE; if (!$element['#required']) { // Remove the state that forces the URI to required of title set. @@ -83,7 +83,7 @@ function link_text_options_field_widget_single_element_link_default_form_alter(a } else { $element['title']['#type'] = 'select'; - $element['title']['#options'] = array_combine($options, $options); + $element['title']['#options'] = array_map('t', array_combine($options, $options)); } } }