From f3f8f0c61e481cebfd4099837c31c893fd9e38c3 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Wed, 26 Jul 2017 14:46:29 +0200 Subject: [PATCH] Translate pending values --- sites/all/modules/custom_search/custom_search.module | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sites/all/modules/custom_search/custom_search.module b/sites/all/modules/custom_search/custom_search.module index 6625c7a..a4efdb0 100644 --- a/sites/all/modules/custom_search/custom_search.module +++ b/sites/all/modules/custom_search/custom_search.module @@ -158,11 +158,11 @@ function custom_search_form_alter(&$form, $form_state, $form_id) { if (user_access('use custom search')) { // Title. - $form[$form_id]['#title'] = variable_get('custom_search_' . $delta . 'label', CUSTOM_SEARCH_LABEL_DEFAULT); + $form[$form_id]['#title'] = t(variable_get('custom_search_' . $delta . 'label', CUSTOM_SEARCH_LABEL_DEFAULT)); if (!variable_get('custom_search_' . $delta . 'label_visibility', TRUE)) $form[$form_id]['#post_render'] = array('_custom_search_hide_label'); // Search box. - $form[$form_id]['#default_value'] = variable_get('custom_search_' . $delta . 'text', ''); + $form[$form_id]['#default_value'] = t(variable_get('custom_search_' . $delta . 'text', '')); $form[$form_id]['#weight'] = variable_get('custom_search_' . $delta . 'search_box_weight', 0); if (!isset($form[$form_id]['#attributes']['class'])) $form[$form_id]['#attributes']['class'] = ''; $form[$form_id]['#attributes']['class'] .= ' custom-search-default-value custom-search-box'; @@ -172,7 +172,7 @@ function custom_search_form_alter(&$form, $form_state, $form_id) { // Default text. $form['default_text'] = array( '#type' => 'hidden', - '#default_value' => variable_get('custom_search_' . $delta . 'text', ''), + '#default_value' => t(variable_get('custom_search_' . $delta . 'text', '')), '#attributes' => array('class' => 'default-text'), ); @@ -276,7 +276,7 @@ function custom_search_form_alter(&$form, $form_state, $form_id) { } // Submit button. - $form['submit']['#value'] = variable_get('custom_search_' . $delta . 'submit_text', CUSTOM_SEARCH_SUBMIT_TEXT_DEFAULT); + $form['submit']['#value'] = t(variable_get('custom_search_' . $delta . 'submit_text', CUSTOM_SEARCH_SUBMIT_TEXT_DEFAULT)); if (variable_get('custom_search_' . $delta . 'image_path', '') != '') { $form['submit']['#type'] = 'image_button';