Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The string "Enter a keyword." it's not translatable.
This line of the search-theme-form.tpl.php file:
$search['search_theme_form'] = '<div class="form-item" id="edit-search-theme-form-wrapper"><input type="text" maxlength="128" name="search_theme_form" id="edit-search-theme-form-1" size="15" value="Enter a keyword." title="Enter a keyword." onblur="this.value=this.value||this.defaultValue; this.style.color = \'#C6BBB3\';" onfocus="this.value=\'\'; this.style.color = \'#F1EAE5\';" class="form-text default-value" /></div>';
should be:
$search['search_theme_form'] = '<div class="form-item" id="edit-search-theme-form-wrapper"><input type="text" maxlength="128" name="search_theme_form" id="edit-search-theme-form-1" size="15" value="'.t('Enter a keyword.').'" title="Enter a keyword." onblur="this.value=this.value||this.defaultValue; this.style.color = \'#C6BBB3\';" onfocus="this.value=\'\'; this.style.color = \'#F1EAE5\';" class="form-text default-value" /></div>';
Comments
Comment #1
oriol_e9gComment #2
oriol_e9gMore strings with the t() function missing.
In node.tpl.php
line 19:
line 23:
line 25:
line 27:
line 30:
Comment #3
ktleow CreditAttribution: ktleow commentedThanks oriol_e9g =D
Added
t()
string.Committed the changes, please wait for Drupal to re-run the packaging script.